@@ -9,8 +9,10 @@ import {
99 Link ,
1010 Preview ,
1111 Section ,
12+ Tailwind ,
1213 Text ,
1314} from '@react-email/components' ;
15+ import tailwindConfig from '../tailwind.config' ;
1416
1517interface AWSVerifyEmailProps {
1618 verificationCode ?: string ;
@@ -26,150 +28,80 @@ export default function AWSVerifyEmail({
2628 return (
2729 < Html >
2830 < Head />
29- < Body style = { main } >
30- < Preview > AWS Email Verification</ Preview >
31- < Container style = { container } >
32- < Section style = { coverSection } >
33- < Section style = { imageSection } >
34- < Img
35- src = { `${ baseUrl } /static/aws-logo.png` }
36- width = "75"
37- height = "45"
38- alt = "AWS's Logo"
39- />
40- </ Section >
41- < Section style = { upperSection } >
42- < Heading style = { h1 } > Verify your email address</ Heading >
43- < Text style = { mainText } >
44- Thanks for starting the new AWS account creation process. We
45- want to make sure it's really you. Please enter the following
46- verification code when prompted. If you don't want to
47- create an account, you can ignore this message.
48- </ Text >
49- < Section style = { verificationSection } >
50- < Text style = { verifyText } > Verification code</ Text >
51-
52- < Text style = { codeText } > { verificationCode } </ Text >
53- < Text style = { validityText } >
54- (This code is valid for 10 minutes)
31+ < Tailwind config = { tailwindConfig } >
32+ < Body className = "bg-white font-aws text-[#212121]" >
33+ < Preview > AWS Email Verification</ Preview >
34+ < Container className = "p-5 mx-auto bg-[#eee]" >
35+ < Section className = "bg-white" >
36+ < Section className = "bg-[#252f3d] flex py-5 items-center justify-center" >
37+ < Img
38+ src = { `${ baseUrl } /static/aws-logo.png` }
39+ width = "75"
40+ height = "45"
41+ alt = "AWS's Logo"
42+ />
43+ </ Section >
44+ < Section className = "py-[25px] px-[35px]" >
45+ < Heading className = "text-[#333] text-[20px] font-bold mb-[15px]" >
46+ Verify your email address
47+ </ Heading >
48+ < Text className = "text-[#333] text-[14px] leading-[24px] mt-6 mb-[14px] mx-0" >
49+ Thanks for starting the new AWS account creation process. We
50+ want to make sure it's really you. Please enter the following
51+ verification code when prompted. If you don't want to
52+ create an account, you can ignore this message.
53+ </ Text >
54+ < Section className = "flex items-center justify-center" >
55+ < Text className = "text-[#333] m-0 font-bold text-center text-[14px]" >
56+ Verification code
57+ </ Text >
58+
59+ < Text className = "text-[#333] text-[36px] my-[10px] mx-0 font-bold text-center" >
60+ { verificationCode }
61+ </ Text >
62+ < Text className = "text-[#333] text-[14px] m-0 text-center" >
63+ (This code is valid for 10 minutes)
64+ </ Text >
65+ </ Section >
66+ </ Section >
67+ < Hr />
68+ < Section className = "py-[25px] px-[35px]" >
69+ < Text className = "text-[#333] text-[14px] m-0" >
70+ Amazon Web Services will never email you and ask you to
71+ disclose or verify your password, credit card, or banking
72+ account number.
5573 </ Text >
5674 </ Section >
5775 </ Section >
58- < Hr />
59- < Section style = { lowerSection } >
60- < Text style = { cautionText } >
61- Amazon Web Services will never email you and ask you to disclose
62- or verify your password, credit card, or banking account number.
63- </ Text >
64- </ Section >
65- </ Section >
66- < Text style = { footerText } >
67- This message was produced and distributed by Amazon Web Services,
68- Inc., 410 Terry Ave. North, Seattle, WA 98109. © 2022, Amazon Web
69- Services, Inc.. All rights reserved. AWS is a registered trademark
70- of{ ' ' }
71- < Link href = "https://amazon.com" target = "_blank" style = { link } >
72- Amazon.com
73- </ Link >
74- , Inc. View our{ ' ' }
75- < Link href = "https://amazon.com" target = "_blank" style = { link } >
76- privacy policy
77- </ Link >
78- .
79- </ Text >
80- </ Container >
81- </ Body >
76+ < Text className = "text-[#333] text-[12px] my-[24px] mx-0 px-5 py-0" >
77+ This message was produced and distributed by Amazon Web Services,
78+ Inc., 410 Terry Ave. North, Seattle, WA 98109. © 2022, Amazon Web
79+ Services, Inc.. All rights reserved. AWS is a registered trademark
80+ of{ ' ' }
81+ < Link
82+ href = "https://amazon.com"
83+ target = "_blank"
84+ className = "text-[#2754C5] underline text-[14px]"
85+ >
86+ Amazon.com
87+ </ Link >
88+ , Inc. View our{ ' ' }
89+ < Link
90+ href = "https://amazon.com"
91+ target = "_blank"
92+ className = "text-[#2754C5] underline text-[14px]"
93+ >
94+ privacy policy
95+ </ Link >
96+ .
97+ </ Text >
98+ </ Container >
99+ </ Body >
100+ </ Tailwind >
82101 </ Html >
83102 ) ;
84103}
85104
86105AWSVerifyEmail . PreviewProps = {
87106 verificationCode : '596853' ,
88107} satisfies AWSVerifyEmailProps ;
89-
90- const main = {
91- backgroundColor : '#fff' ,
92- color : '#212121' ,
93- } ;
94-
95- const container = {
96- padding : '20px' ,
97- margin : '0 auto' ,
98- backgroundColor : '#eee' ,
99- } ;
100-
101- const h1 = {
102- color : '#333' ,
103- fontFamily :
104- "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif" ,
105- fontSize : '20px' ,
106- fontWeight : 'bold' ,
107- marginBottom : '15px' ,
108- } ;
109-
110- const link = {
111- color : '#2754C5' ,
112- fontFamily :
113- "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif" ,
114- fontSize : '14px' ,
115- textDecoration : 'underline' ,
116- } ;
117-
118- const text = {
119- color : '#333' ,
120- fontFamily :
121- "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif" ,
122- fontSize : '14px' ,
123- margin : '24px 0' ,
124- } ;
125-
126- const imageSection = {
127- backgroundColor : '#252f3d' ,
128- display : 'flex' ,
129- padding : '20px 0' ,
130- alignItems : 'center' ,
131- justifyContent : 'center' ,
132- } ;
133-
134- const coverSection = { backgroundColor : '#fff' } ;
135-
136- const upperSection = { padding : '25px 35px' } ;
137-
138- const lowerSection = { padding : '25px 35px' } ;
139-
140- const footerText = {
141- ...text ,
142- fontSize : '12px' ,
143- padding : '0 20px' ,
144- } ;
145-
146- const verifyText = {
147- ...text ,
148- margin : 0 ,
149- fontWeight : 'bold' ,
150- textAlign : 'center' as const ,
151- } ;
152-
153- const codeText = {
154- ...text ,
155- fontWeight : 'bold' ,
156- fontSize : '36px' ,
157- margin : '10px 0' ,
158- textAlign : 'center' as const ,
159- } ;
160-
161- const validityText = {
162- ...text ,
163- margin : '0px' ,
164- textAlign : 'center' as const ,
165- } ;
166-
167- const verificationSection = {
168- display : 'flex' ,
169- alignItems : 'center' ,
170- justifyContent : 'center' ,
171- } ;
172-
173- const mainText = { ...text , marginBottom : '14px' } ;
174-
175- const cautionText = { ...text , margin : '0px' } ;
0 commit comments