From 5f56b21823bae68e4e10ee16b3e1d87b40b708e6 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Fri, 1 May 2026 03:57:09 +0530 Subject: [PATCH] style: add additional fonts for editor and update metadada --- frontend/bun.lock | 12 ++++++++ frontend/index.html | 4 +-- frontend/package.json | 4 +++ frontend/public/site.webmanifest | 34 +++++++++++----------- frontend/src/components/editor/ToolBar.tsx | 19 +++++++++--- frontend/src/index.css | 5 ++++ frontend/src/main.tsx | 3 ++ frontend/src/pages/Editor.tsx | 6 ++++ 8 files changed, 64 insertions(+), 23 deletions(-) diff --git a/frontend/bun.lock b/frontend/bun.lock index 56066a0..4c04d85 100644 --- a/frontend/bun.lock +++ b/frontend/bun.lock @@ -8,8 +8,12 @@ "@fontsource-variable/jost": "^5.2.8", "@fontsource-variable/playfair-display": "^5.2.8", "@fontsource-variable/playwrite-hr-lijeva": "^5.2.7", + "@fontsource/architects-daughter": "^5.2.7", "@fontsource/cutive-mono": "^5.2.8", + "@fontsource/kavivanar": "^5.2.8", "@fontsource/knewave": "^5.2.7", + "@fontsource/redacted-script": "^5.2.8", + "@fontsource/space-mono": "^5.2.9", "@hookform/resolvers": "^5.2.2", "@phosphor-icons/react": "^2.1.10", "@tailwindcss/vite": "^4.2.2", @@ -119,10 +123,18 @@ "@fontsource-variable/playwrite-hr-lijeva": ["@fontsource-variable/playwrite-hr-lijeva@5.2.7", "", {}, "sha512-cQqbD8HHZDpiKdtgwUxgwAY76TC+GI9iZOxHSW0XkV/L8lA0X18z1wzR+J8yv9XZQYgLJ5WfzBGwzMSLnSLdPA=="], + "@fontsource/architects-daughter": ["@fontsource/architects-daughter@5.2.7", "", {}, "sha512-W7tHXduV9kRQZDTqcU4Rnc/GtSq9cYUHOnhvcRPjy87u5x/oRqKXPU2PghqbktTECOIh1N0qVZLt9rwqa+aWhg=="], + "@fontsource/cutive-mono": ["@fontsource/cutive-mono@5.2.8", "", {}, "sha512-Y8PKAYfbpl9Empbb1HZBoirlj4W7RtU+G4EhvX27pHzO6RE1sO0I1ElZQH5DMCTS+MSJkMmQT33sJ0+Ji9U8eQ=="], + "@fontsource/kavivanar": ["@fontsource/kavivanar@5.2.8", "", {}, "sha512-wbr/9vQ2da9aabUngCpWLbbHM08XZK3nkLDuQ0eX/BhdVvoJx0MSPzaKJ0WIiKpVHy3fUL8ewOqpCyidGZlvEg=="], + "@fontsource/knewave": ["@fontsource/knewave@5.2.7", "", {}, "sha512-uzx8jgcTiQgAwKvQ/hWdX7lOQPwS+K74Eij/WCVzYvAkCX7GRTnWnbxXXx0XsKR6UIN16kH/u40LW4K8aHJb1w=="], + "@fontsource/redacted-script": ["@fontsource/redacted-script@5.2.8", "", {}, "sha512-NOEGJyurXvCx5egCha9yUQB+Tt0IxXriacykYiRlohUvhdbKvisHbucAHQaK8N5/LLB6rlX62SrX8C9+t41PYQ=="], + + "@fontsource/space-mono": ["@fontsource/space-mono@5.2.9", "", {}, "sha512-b61faFOHEISQ/pD25G+cfGY9o/WW6lRv6hBQQfpWvEJ4y1V+S4gmth95EVyBE2VL3qDYHeVQ8nBzrplzdXTDDg=="], + "@hookform/resolvers": ["@hookform/resolvers@5.2.2", "", { "dependencies": { "@standard-schema/utils": "^0.3.0" }, "peerDependencies": { "react-hook-form": "^7.55.0" } }, "sha512-A/IxlMLShx3KjV/HeTcTfaMxdwy690+L/ZADoeaTltLx+CVuzkeVIPuybK3jrRfw7YZnmdKsVVHAlEPIAEUNlA=="], "@inquirer/ansi": ["@inquirer/ansi@1.0.2", "", {}, "sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ=="], diff --git a/frontend/index.html b/frontend/index.html index 8d26cb5..e0d323a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -9,9 +9,9 @@ - Pi. Ku. | A safe haven for your unsent letters + Pi. Ku. | A safe haven for your unsaid and unsent letters + content="Pi. Ku. is a minimal, secure, and beautiful way to write and seal your unsaid words into digital letters." /> diff --git a/frontend/package.json b/frontend/package.json index c240185..ba7b412 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -22,8 +22,12 @@ "@fontsource-variable/jost": "^5.2.8", "@fontsource-variable/playfair-display": "^5.2.8", "@fontsource-variable/playwrite-hr-lijeva": "^5.2.7", + "@fontsource/architects-daughter": "^5.2.7", "@fontsource/cutive-mono": "^5.2.8", + "@fontsource/kavivanar": "^5.2.8", "@fontsource/knewave": "^5.2.7", + "@fontsource/redacted-script": "^5.2.8", + "@fontsource/space-mono": "^5.2.9", "@hookform/resolvers": "^5.2.2", "@phosphor-icons/react": "^2.1.10", "@tailwindcss/vite": "^4.2.2", diff --git a/frontend/public/site.webmanifest b/frontend/public/site.webmanifest index 55603b8..368f680 100644 --- a/frontend/public/site.webmanifest +++ b/frontend/public/site.webmanifest @@ -1,19 +1,19 @@ { - "name": "Pi. Ku.", - "short_name": "Pi. Ku.", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#d4a24f", - "background_color": "#3b1d13", - "display": "standalone" + "name": "Pi. Ku.", + "short_name": "Pi. Ku.", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#d4a24f", + "background_color": "#3b1d13", + "display": "standalone" } diff --git a/frontend/src/components/editor/ToolBar.tsx b/frontend/src/components/editor/ToolBar.tsx index df2f70d..9fc5b75 100644 --- a/frontend/src/components/editor/ToolBar.tsx +++ b/frontend/src/components/editor/ToolBar.tsx @@ -8,6 +8,7 @@ import { TextAUnderlineIcon, TrayIcon, VaultIcon, + XCircleIcon, } from "@phosphor-icons/react"; import { Modal } from "../ui/Modal"; import type { CanvasStyle } from "./ComposeCanvas.tsx"; @@ -26,6 +27,11 @@ const FONT_FAMILIES: Map = new Map([ ["Serif", "Playfair Display Variable"], ["Sans", "Jost Variable"], ["Cursive", "Playwrite HR Lijeva Variable"], + ["Handwriting", "Architects Daughter"], + ["Slab", "Cutive Mono"], + ["Mono", "Space Mono"], + ["Tamil", "Kavivanar"], + ["Crazy(pls no)", "Redacted Script"], ]); const FONT_COLORS: Map = new Map([ ["Black", "#000"], @@ -166,7 +172,7 @@ export function ToolBar({
- +