email better yes

This commit is contained in:
Atridad Lahiji 2023-06-18 01:27:47 -06:00
parent fc3e0e3a58
commit 8f6d4099fa
No known key found for this signature in database
4 changed files with 1417 additions and 99 deletions

View file

@ -16,6 +16,7 @@
"@ably-labs/react-hooks": "^2.1.1",
"@auth/prisma-adapter": "^1.0.0",
"@prisma/client": "4.15.0",
"@react-email/components": "^0.0.7",
"@tanstack/react-query": "^4.29.14",
"@trpc/client": "10.30.0",
"@trpc/next": "10.30.0",
@ -30,6 +31,7 @@
"preact": "^10.15.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-email": "^1.9.4",
"react-icons": "^4.9.0",
"redicache-ts": "^0.1.1",
"resend": "^0.15.3",

1442
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,18 +1,34 @@
import * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps {
name: string;
}
export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div>
<h1>Farewell, {name}...</h1>
<p>{"We're sorry to see you go."}</p>
<p>
Your data has been deleted, including all room history, user data, votes,
etc.
</p>
<br />
<p>Sprint Padawan Admin - Atridad</p>
</div>
<Html>
<Head />
<Preview>Sorry to see you go... 😭</Preview>
<Body>
<Container>
<Heading className="text-4xl">Farewell, {name}...</Heading>
<Text>We're sorry to see you go.</Text>
<Text>
Your data has been deleted, including all room history, user data,
votes, etc.
</Text>
<Hr />
<Text>Sprint Padawan Admin - Atridad</Text>
</Container>
</Body>
</Html>
);

View file

@ -1,18 +1,34 @@
import * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps {
name: string;
}
export const Welcome: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div>
<h1>Welcome, {name}!</h1>
<p>Thank you for signing up for Sprint Padawan!</p>
<p>
<Html>
<Head />
<Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview>
<Body>
<Container>
<Heading className="text-4xl">Welcome, {name}!</Heading>
<Text>Thank you for signing up for Sprint Padawan!</Text>
<Text>
If at any point you encounter issues, please let me know at
support@sprintpadawan.dev.
</p>
<br />
<p>Sprint Padawan Admin - Atridad</p>
</div>
</Text>
<Hr />
<Text>Sprint Padawan Admin - Atridad</Text>
</Container>
</Body>
</Html>
);