This commit is contained in:
Atridad Lahiji 2023-08-22 21:52:38 -06:00 committed by atridadl
parent bd8231912c
commit 21001e2f86
No known key found for this signature in database
2 changed files with 8 additions and 13 deletions

View file

@ -8,7 +8,6 @@ import {
Img, Img,
Preview, Preview,
Section, Section,
// Tailwind,
Text, Text,
} from "@react-email/components"; } from "@react-email/components";
import * as React from "react"; import * as React from "react";
@ -25,33 +24,28 @@ export const Welcome = ({ name }: WelcomeTemplateProps) => (
<Html> <Html>
<Head /> <Head />
<Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview> <Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview>
{/* <Tailwind> */} <Body>
<Body className="bg-white my-auto mx-auto font-sans"> <Container>
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] w-[465px]"> <Section>
<Section className="mt-[32px]">
<Img <Img
src={`${baseUrl}/logo.webp`} src={`${baseUrl}/logo.webp`}
width="40" width="40"
height="37" height="37"
alt={`Sprint Padawan Logo`} alt={`Sprint Padawan Logo`}
className="my-0 mx-auto"
/> />
</Section> </Section>
<Heading className="text-black text-[24px] font-normal text-center p-0 my-[30px] mx-0"> <Heading>
🎉 Welcome to Sprint Padawan, <strong>{name}</strong>! 🎉 🎉 Welcome to Sprint Padawan, <strong>{name}</strong>! 🎉
</Heading> </Heading>
<Text className="text-black text-[14px] leading-[24px]"> <Text>Hello {name},</Text>
Hello {name},
</Text>
<Text>Thank you for signing up for Sprint Padawan!</Text> <Text>Thank you for signing up for Sprint Padawan!</Text>
<Text> <Text>
If at any point you encounter issues, please let me know at If at any point you encounter issues, please let me know at
support@sprintpadawan.dev. support@sprintpadawan.dev.
</Text> </Text>
<Hr className="border border-solid border-[#eaeaea] my-[26px] mx-0 w-full" /> <Hr />
<Text> The Sprint Padawan team</Text> <Text> Atridad Lahiji</Text>
</Container> </Container>
</Body> </Body>
{/* </Tailwind> */}
</Html> </Html>
); );

View file

@ -17,6 +17,7 @@ export const config = {
export default async function handler(req: NextRequest) { export default async function handler(req: NextRequest) {
try { try {
const eventBody = (await req.json()) as WebhookEventBody; const eventBody = (await req.json()) as WebhookEventBody;
console.log(eventBody);
const { data, type } = WebhookEventBodySchema.parse(eventBody); const { data, type } = WebhookEventBodySchema.parse(eventBody);
let success = false; let success = false;