From 7bab2937bc41ac6358cdb00c05dbc7b42a66d273 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Sun, 19 Apr 2026 19:49:01 +0530 Subject: [PATCH] feat: implement EnvelopeReveal component for letter interactions and integrate into reader workflow --- frontend/src/components/SplashScreen.tsx | 4 +- frontend/src/components/ui/DrawerSection.tsx | 10 +- frontend/src/components/ui/EnvelopeReveal.tsx | 56 +++++++++++ frontend/src/components/ui/LetterItem.tsx | 2 +- frontend/src/pages/Drawer.tsx | 2 +- frontend/src/pages/Editor.tsx | 4 +- frontend/src/pages/Reader.tsx | 93 ++++++++++--------- 7 files changed, 119 insertions(+), 52 deletions(-) create mode 100644 frontend/src/components/ui/EnvelopeReveal.tsx diff --git a/frontend/src/components/SplashScreen.tsx b/frontend/src/components/SplashScreen.tsx index e2e4bf6..af912bd 100644 --- a/frontend/src/components/SplashScreen.tsx +++ b/frontend/src/components/SplashScreen.tsx @@ -1,11 +1,13 @@ +import { EnvelopeOpenIcon } from "@phosphor-icons/react"; import Logo from "./Logo"; export default function SplashScreen() { return ( -
+
+

Unsealing... diff --git a/frontend/src/components/ui/DrawerSection.tsx b/frontend/src/components/ui/DrawerSection.tsx index ba3b8bf..c528297 100644 --- a/frontend/src/components/ui/DrawerSection.tsx +++ b/frontend/src/components/ui/DrawerSection.tsx @@ -20,12 +20,12 @@ export function DrawerSection({ return (

@@ -35,11 +35,11 @@ export function DrawerSection({ -
- - {/* The Letter */} -
-
- -
-
- -
- - {metadata?.recipient && ( -

- For {metadata.recipient} -

- )}
+ )} +
+ setRevealState("revealed")} + />
- {/* Atmospheric Footer */}