diff --git a/frontend/src/pages/ComposePage.tsx b/frontend/src/pages/ComposePage.tsx index 8ae5b51..72bc733 100644 --- a/frontend/src/pages/ComposePage.tsx +++ b/frontend/src/pages/ComposePage.tsx @@ -52,7 +52,11 @@ export function ComposePage() { try { const payload = mode === 'relative' - ? { title: title.trim(), content: content.trim(), send_after: sendAfter.trim() } + ? { + title: title.trim(), + content: content.trim(), + send_after: sendAfter.trim(), + } : { title: title.trim(), content: content.trim(), @@ -64,7 +68,9 @@ export function ComposePage() { setTitle(''); setContent(''); } catch (err) { - setError(err instanceof ApiError ? err.message : 'Could not schedule letter.'); + setError( + err instanceof ApiError ? err.message : 'Could not schedule letter.', + ); } finally { setLoading(false); } diff --git a/src/constants/index.ts b/src/constants/index.ts index 3ba8e7b..d9e9e61 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -15,6 +15,7 @@ export enum ENVIRONMENT { export enum EMAIL_TEMPLATES { SIGNIN_MAGIC_LINK = 'signin_magic_link', MESSAGE_TO_FUTURE = 'message_to_future', + MESSAGE_TO_FUTURE_RELAXED = 'message_to_future_relaxed', FORGET_PASSWORD = 'forget_password', TEST = 'test', } diff --git a/templates/message_to_future.hbs b/templates/message_to_future.hbs index 80e576f..065acc7 100644 --- a/templates/message_to_future.hbs +++ b/templates/message_to_future.hbs @@ -2,82 +2,156 @@ Message from the past + + + - + - +
- - + - + - @@ -88,4 +162,4 @@
+ - - - - - + - - + - - + - - +
- - A MESSAGE FROM YOUR PAST - -
-

- Written on {{writtenOn}} -

+
+
-

- {{title}} -

-
- -
-
-
- - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- {{content}} -
+ A Message from Your Past +
+
+
+ Written on {{writtenOn}} +
+

{{title}}

+
+ ✦ ✦ ✦ +
+ {{content}} +
+ — {{senderName}}, your past self +
+
+

Sent Across Time

+
- -
-
- - - {{senderName}}, your past self
- Sent across time + +
- \ No newline at end of file +