-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Zoom reminder email component
- Loading branch information
Showing
1 changed file
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}; |