From ad5224820be1666bfafb22cd4612f8fe99777893 Mon Sep 17 00:00:00 2001
From: Alan Khalili
Date: Wed, 15 Jan 2025 16:46:35 -0800
Subject: [PATCH 1/8] feat: Add Zoom reminder email component
---
src/components/emails/ZoomReminder.tsx | 118 +++++++++++++++++++++++++
1 file changed, 118 insertions(+)
create mode 100644 src/components/emails/ZoomReminder.tsx
diff --git a/src/components/emails/ZoomReminder.tsx b/src/components/emails/ZoomReminder.tsx
new file mode 100644
index 0000000..b9f3ac8
--- /dev/null
+++ b/src/components/emails/ZoomReminder.tsx
@@ -0,0 +1,118 @@
+import {
+ Body,
+ Button,
+ Container,
+ Head,
+ Hr,
+ Html,
+ Img,
+ Link,
+ Preview,
+ Section,
+ Text,
+} from "@react-email/components";
+
+import imgurLogoImageUrl from "@/utils/constants/imgurLogoImageUrl";
+
+type ZoomReminderEmailProps = {
+ meetingName?: string;
+};
+
+export default function ZoomReminderEmail({
+ meetingName = "Healthy Habits",
+}: ZoomReminderEmailProps) {
+ return (
+
+
+ Reminder: You have an upcoming {meetingName} meeting
+
+
+
+
+
+ Please click the link below to join the zoom call for{" "}
+ {meetingName} for the Long Haul
+
+
+
+ If you have any questions or concerns, please reach out to us at
+ our{" "}
+
+ contact page.
+
+
+
+
+ St. Christopher Truckers Relief Fund, Phone: (865) 202-9428
+
+
+
+
+
+ );
+}
+
+const main = {
+ backgroundColor: "#f6f9fc",
+ fontFamily:
+ '-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Ubuntu,sans-serif',
+};
+
+const container = {
+ backgroundColor: "#ffffff",
+ margin: "0 auto",
+ padding: "20px 0 48px",
+ marginBottom: "64px",
+ marginTop: "64px",
+};
+
+const box = {
+ padding: "0 48px",
+};
+
+const hr = {
+ borderColor: "#e6ebf1",
+ margin: "20px 0",
+};
+
+const paragraph = {
+ color: "#525f7f",
+ fontSize: "16px",
+ lineHeight: "24px",
+ textAlign: "left" as const,
+};
+
+const anchor = {
+ color: "#556cd6",
+};
+
+const button = {
+ backgroundColor: "#183766",
+ borderRadius: "5px",
+ color: "#fff",
+ fontSize: "16px",
+ fontWeight: "bold",
+ textDecoration: "none",
+ textAlign: "center" as const,
+ display: "block",
+ width: "100%",
+ padding: "10px",
+};
+
+const footer = {
+ color: "#8898aa",
+ fontSize: "12px",
+ lineHeight: "16px",
+};
+
+const image = {
+ margin: "0 auto",
+};
From f6c7f0989830b45d618c8539b40abcfdb8cbf7c9 Mon Sep 17 00:00:00 2001
From: Alan Khalili
Date: Wed, 15 Jan 2025 16:50:31 -0800
Subject: [PATCH 2/8] fix: Changed default name for meetingName, added
meetingLink prop
---
src/components/emails/ZoomReminder.tsx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/components/emails/ZoomReminder.tsx b/src/components/emails/ZoomReminder.tsx
index b9f3ac8..26fb791 100644
--- a/src/components/emails/ZoomReminder.tsx
+++ b/src/components/emails/ZoomReminder.tsx
@@ -16,10 +16,12 @@ import imgurLogoImageUrl from "@/utils/constants/imgurLogoImageUrl";
type ZoomReminderEmailProps = {
meetingName?: string;
+ meetingLink?: string;
};
export default function ZoomReminderEmail({
- meetingName = "Healthy Habits",
+ meetingName = "your SCF program",
+ meetingLink = "https://www.google.com",
}: ZoomReminderEmailProps) {
return (
@@ -37,9 +39,9 @@ export default function ZoomReminderEmail({
/>
Please click the link below to join the zoom call for{" "}
- {meetingName} for the Long Haul
+ {meetingName}.
-