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", "@ably-labs/react-hooks": "^2.1.1",
"@auth/prisma-adapter": "^1.0.0", "@auth/prisma-adapter": "^1.0.0",
"@prisma/client": "4.15.0", "@prisma/client": "4.15.0",
"@react-email/components": "^0.0.7",
"@tanstack/react-query": "^4.29.14", "@tanstack/react-query": "^4.29.14",
"@trpc/client": "10.30.0", "@trpc/client": "10.30.0",
"@trpc/next": "10.30.0", "@trpc/next": "10.30.0",
@ -30,6 +31,7 @@
"preact": "^10.15.1", "preact": "^10.15.1",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-email": "^1.9.4",
"react-icons": "^4.9.0", "react-icons": "^4.9.0",
"redicache-ts": "^0.1.1", "redicache-ts": "^0.1.1",
"resend": "^0.15.3", "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 * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps { interface EmailTemplateProps {
name: string; name: string;
} }
export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => ( export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div> <Html>
<h1>Farewell, {name}...</h1> <Head />
<p>{"We're sorry to see you go."}</p> <Preview>Sorry to see you go... 😭</Preview>
<p> <Body>
Your data has been deleted, including all room history, user data, votes, <Container>
etc. <Heading className="text-4xl">Farewell, {name}...</Heading>
</p> <Text>We're sorry to see you go.</Text>
<br /> <Text>
<p>Sprint Padawan Admin - Atridad</p> Your data has been deleted, including all room history, user data,
</div> 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 * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps { interface EmailTemplateProps {
name: string; name: string;
} }
export const Welcome: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => ( export const Welcome: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div> <Html>
<h1>Welcome, {name}!</h1> <Head />
<p>Thank you for signing up for Sprint Padawan!</p> <Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview>
<p> <Body>
If at any point you encounter issues, please let me know at <Container>
support@sprintpadawan.dev. <Heading className="text-4xl">Welcome, {name}!</Heading>
</p> <Text>Thank you for signing up for Sprint Padawan!</Text>
<br /> <Text>
<p>Sprint Padawan Admin - Atridad</p> If at any point you encounter issues, please let me know at
</div> support@sprintpadawan.dev.
</Text>
<Hr />
<Text>Sprint Padawan Admin - Atridad</Text>
</Container>
</Body>
</Html>
); );