Skip to content

Commit

Permalink
feat: Add Zoom reminder email component
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanKha committed Jan 16, 2025
1 parent 5c9e945 commit ad52248
Showing 1 changed file with 118 additions and 0 deletions.
118 changes: 118 additions & 0 deletions src/components/emails/ZoomReminder.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Html>
<Head />
<Preview>Reminder: You have an upcoming {meetingName} meeting</Preview>
<Body style={main}>
<Container style={container}>
<Section style={box}>
<Img
src={imgurLogoImageUrl}
width="128"
height="128"
alt="St. Christopher Truckers Relief Fund"
style={image}
/>
<Text style={paragraph}>
Please click the link below to join the zoom call for{" "}
{meetingName} for the Long Haul
</Text>
<Button style={button} href="https://www.google.com">
Join Meeting
</Button>
<Text style={paragraph}>
If you have any questions or concerns, please reach out to us at
our{" "}
<Link style={anchor} href="https://truckersfund.org/contact-us">
contact page.
</Link>
</Text>
<Hr style={hr} />
<Text style={footer}>
St. Christopher Truckers Relief Fund, Phone: (865) 202-9428
</Text>
</Section>
</Container>
</Body>
</Html>
);
}

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",
};

0 comments on commit ad52248

Please sign in to comment.