@@ -14,21 +14,18 @@ import {
1414 Text ,
1515} from "@react-email/components" ;
1616
17- export type TemplateProps = {
18- email : string ;
19- name : string ;
20- } ;
21-
22- interface VercelInviteUserEmailProps {
17+ interface InvitationEmailProps {
2318 inviteLink : string ;
2419 toEmail : string ;
20+ organizationName : string ;
2521}
2622
2723export const InvitationEmail = ( {
2824 inviteLink,
2925 toEmail,
30- } : VercelInviteUserEmailProps ) => {
31- const previewText = "Join to Dokploy" ;
26+ organizationName = "an organization" ,
27+ } : InvitationEmailProps ) => {
28+ const previewText = `You've been invited to join ${ organizationName } on Dokploy` ;
3229 return (
3330 < Html >
3431 < Head />
@@ -44,50 +41,67 @@ export const InvitationEmail = ({
4441 } ,
4542 } }
4643 >
47- < Body className = "bg-white my-auto mx-auto font-sans px-2" >
48- < Container className = "border border-solid border-[#eaeaea] rounded-lg my-[40px] mx-auto p-[20px] max-w-[465px]" >
49- < Section className = "mt-[32px]" >
44+ < Body className = "bg-[#f4f4f5] my-auto mx-auto font-sans" >
45+ < Container className = "my-[40px] mx-auto max-w-[520px]" >
46+ { /* Header */ }
47+ < Section className = "bg-[#09090b] rounded-t-xl px-[40px] py-[32px] text-center" >
5048 < Img
51- src = {
52- "https://raw.githubusercontent.com/Dokploy/dokploy/refs/heads/canary/apps/dokploy/logo.png"
53- }
54- width = "100"
55- height = "50"
49+ src = "https://raw.githubusercontent.com/Dokploy/website/refs/heads/main/apps/docs/public/logo-dokploy-blackpng.png"
50+ width = "190"
51+ height = "120"
5652 alt = "Dokploy"
5753 className = "my-0 mx-auto"
5854 />
5955 </ Section >
60- < Heading className = "text-black text-[24px] font-normal text-center p-0 my-[30px] mx-0" >
61- Join to < strong > Dokploy</ strong >
62- </ Heading >
63- < Text className = "text-black text-[14px] leading-[24px]" >
64- Hello,
65- </ Text >
66- < Text className = "text-black text-[14px] leading-[24px]" >
67- You have been invited to join < strong > Dokploy</ strong > , a platform
68- that helps for deploying your apps to the cloud.
69- </ Text >
70- < Section className = "text-center mt-[32px] mb-[32px]" >
71- < Button
72- href = { inviteLink }
73- className = "bg-[#000000] rounded text-white text-[12px] font-semibold no-underline text-center px-5 py-3"
74- >
75- Join the team 🚀
76- </ Button >
56+
57+ { /* Body */ }
58+ < Section className = "bg-white px-[40px] py-[32px]" >
59+ < Heading className = "text-[#09090b] text-[22px] font-semibold m-0 mb-[8px]" >
60+ You've been invited to join { organizationName }
61+ </ Heading >
62+ < Text className = "text-[#71717a] text-[14px] leading-[22px] m-0 mb-[24px]" >
63+ You have been invited to join{ " " }
64+ < strong className = "text-[#09090b]" > { organizationName } </ strong > { " " }
65+ on Dokploy, the platform for deploying your apps to the cloud.
66+ Click the button below to accept the invitation.
67+ </ Text >
68+
69+ { /* CTA Button */ }
70+ < Section className = "text-center mb-[24px]" >
71+ < Button
72+ href = { inviteLink }
73+ className = "bg-[#09090b] rounded-lg text-white text-[14px] font-semibold no-underline text-center px-[24px] py-[12px]"
74+ >
75+ Accept Invitation
76+ </ Button >
77+ </ Section >
78+
79+ < Text className = "text-[#a1a1aa] text-[13px] leading-[20px] m-0 text-center mb-[16px]" >
80+ If the button above doesn't work, copy and paste the following
81+ link into your browser:
82+ </ Text >
83+ < Text className = "text-[#71717a] text-[12px] leading-[18px] m-0 text-center break-all" >
84+ { inviteLink }
85+ </ Text >
86+ </ Section >
87+
88+ { /* Footer */ }
89+ < Section className = "bg-[#fafafa] rounded-b-xl px-[40px] py-[24px] text-center border-t border-solid border-[#e4e4e7]" >
90+ < Hr className = "border border-solid border-[#e4e4e7] my-0 mb-[16px] mx-0 w-full" />
91+ < Text className = "text-[#a1a1aa] text-[12px] leading-[18px] m-0" >
92+ This invitation was intended for{ " " }
93+ < span className = "text-[#71717a]" > { toEmail } </ span > . This invite
94+ was sent from{ " " }
95+ < Link
96+ href = "https://dokploy.com"
97+ className = "text-[#71717a] underline"
98+ >
99+ Dokploy Cloud
100+ </ Link >
101+ . If you were not expecting this invitation, you can safely
102+ ignore this email.
103+ </ Text >
77104 </ Section >
78- < Text className = "text-black text-[14px] leading-[24px]" >
79- or copy and paste this URL into your browser:{ " " }
80- < Link href = { inviteLink } className = "text-blue-600 no-underline" >
81- https://dokploy.com
82- </ Link >
83- </ Text >
84- < Hr className = "border border-solid border-[#eaeaea] my-[26px] mx-0 w-full" />
85- < Text className = "text-[#666666] text-[12px] leading-[24px]" >
86- This invitation was intended for { toEmail } . This invite was sent
87- from < strong className = "text-black" > dokploy.com</ strong > . If you
88- were not expecting this invitation, you can ignore this email. If
89- you are concerned about your account's safety, please reply to
90- </ Text >
91105 </ Container >
92106 </ Body >
93107 </ Tailwind >
0 commit comments