From fb53883866ed813df7f8ce2da1ee3d83ae9a0be0 Mon Sep 17 00:00:00 2001 From: Riccardo Senica <46839416+RiccardoSenica@users.noreply.github.com> Date: Thu, 21 Nov 2024 19:12:26 +0100 Subject: [PATCH] style: complete redo of the email layouts (#20) --- app/confirmation/page.tsx | 6 +- components/email/Confirmation.tsx | 28 +- components/email/Newsletter.tsx | 52 +- components/email/Template.tsx | 69 +- components/email/Unsubscribe.tsx | 33 +- components/email/components/Footer.tsx | 160 ++- components/email/components/Note.tsx | 11 +- package.json | 3 +- utils/extractMainTopic.ts | 65 ++ utils/getSayings.ts | 13 - utils/summarize.ts | 2 +- yarn.lock | 1430 ++++++++++++------------ 12 files changed, 1087 insertions(+), 785 deletions(-) create mode 100644 utils/extractMainTopic.ts delete mode 100644 utils/getSayings.ts diff --git a/app/confirmation/page.tsx b/app/confirmation/page.tsx index e0f93ae..695187a 100644 --- a/app/confirmation/page.tsx +++ b/app/confirmation/page.tsx @@ -63,7 +63,11 @@ function ConfirmationPage() { ); } - return 'Just a second...'; + return ( + + Just a second... + + ); }; return ( diff --git a/components/email/Confirmation.tsx b/components/email/Confirmation.tsx index 6bdccd7..7baf299 100644 --- a/components/email/Confirmation.tsx +++ b/components/email/Confirmation.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import Note from './components/Note'; import Template from './Template'; @@ -8,21 +9,32 @@ export default function ConfirmationTemplate(code: string) {