1- import { Body , Container , Head , Html , Link , Preview , Text } from "@react-email/components" ;
1+ import {
2+ Body ,
3+ Button ,
4+ Container ,
5+ Head ,
6+ Html ,
7+ Link ,
8+ Preview ,
9+ Section ,
10+ Tailwind ,
11+ Text ,
12+ } from "@react-email/components" ;
213import { z } from "zod" ;
314import { Footer } from "./components/Footer" ;
415import { Image } from "./components/Image" ;
@@ -20,30 +31,46 @@ export default function Email({
2031} : z . infer < typeof InviteEmailSchema > ) {
2132 return (
2233 < Html >
23- < Head />
2434 < Preview > { `You've been invited to ${ orgName } ` } </ Preview >
25- < Body style = { main } >
26- < Container style = { container } >
27- < Text style = { h1 } > { `You've been invited to ${ orgName } ` } </ Text >
28- < Text style = { paragraphLight } >
29- { inviterName ?? inviterEmail } has invited you to join their organization on Trigger.dev.
30- </ Text >
31- < Link
32- href = { inviteLink }
33- target = "_blank"
34- style = { {
35- ...anchor ,
36- display : "block" ,
37- marginBottom : "50px" ,
38- } }
39- >
40- Click here to view the invitation
41- </ Link >
42-
43- < Image path = "/emails/logo-mono.png" width = "120" height = "22" alt = "Trigger.dev" />
44- < Footer />
45- </ Container >
46- </ Body >
35+ < Tailwind >
36+ < Body className = "bg-[#121317] my-auto mx-auto font-sans" >
37+ < Container className = "my-[40px] mx-auto p-[20px] max-w-[600px]" >
38+ < Section className = "mt-[32px]" >
39+ < Image
40+ path = "/emails/logo.png"
41+ width = "180px"
42+ height = "32px"
43+ alt = "Trigger.dev"
44+ className = "mt-0 mb-12"
45+ />
46+ < Text className = "text-[24px] font-bold text-[#D7D9DD] mb-8" > { `You've been invited to ${ orgName } ` } </ Text >
47+ < Text style = { paragraphLight } >
48+ { inviterName ?? inviterEmail } has invited you to join their organization on
49+ Trigger.dev.
50+ </ Text >
51+ < Button
52+ href = { inviteLink }
53+ className = "bg-[#A8FF53] rounded text-[#121317] text-[16px] no-underline text-center px-4 py-3 mb-8"
54+ >
55+ View the invitation
56+ </ Button >
57+ </ Section >
58+ < Section className = "mb-6" >
59+ < Text className = "text-[14px] text-[#878C99]" >
60+ Can't see the button? Copy and paste this link into your browser:
61+ </ Text >
62+ < Link
63+ href = { inviteLink }
64+ target = "_blank"
65+ className = "text-[#6366F1] text-[14px] no-underline"
66+ >
67+ { inviteLink }
68+ </ Link >
69+ </ Section >
70+ < Footer />
71+ </ Container >
72+ </ Body >
73+ </ Tailwind >
4774 </ Html >
4875 ) ;
4976}
0 commit comments