-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloWorld.tsx
More file actions
147 lines (133 loc) · 3.29 KB
/
Copy pathHelloWorld.tsx
File metadata and controls
147 lines (133 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
import {
Body,
Container,
Head,
Heading,
Html,
Link,
Preview,
Section,
Text,
} from '@react-email/components';
import * as React from 'react';
export const HelloWorld = () => (
<Html>
<Head />
<Preview>Hello There!</Preview>
<Body style={main}>
<Container style={container}>
<Section style={logoContainer}>A Logo Here</Section>
<Heading style={h1}>A Title</Heading>
<Text style={heroText}>I am a helpful, short, introduction.</Text>
<Section style={codeBox}>
<Text style={confirmationCodeText}>Hello World!</Text>
</Section>
<Text style={text}>More text could be added under here too.</Text>
<Section>
<Link
style={footerLink}
href="https://dholmes.co.uk/blog"
target="_blank"
rel="noopener noreferrer"
>
Des Holmes Blog
</Link>
|
<Link
style={footerLink}
href="https://github.com/desholmes"
target="_blank"
rel="noopener noreferrer"
>
Des Holmes GitHub
</Link>
|
<Link
style={footerLink}
href="https://react.email/"
target="_blank"
rel="noopener noreferrer"
>
React Email
</Link>
|
<Link
style={footerLink}
href="https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview"
target="_blank"
rel="noopener noreferrer"
data-auth="NotApplicable"
data-linkindex="6"
>
Azure Functions
</Link>
<Text style={footerText}>
©2025 Some company, 1234 Some Street, Some City, Some Country
</Text>
</Section>
</Container>
</Body>
</Html>
);
export default HelloWorld;
const footerText = {
fontSize: '12px',
color: '#b7b7b7',
lineHeight: '15px',
textAlign: 'left' as const,
marginBottom: '50px',
};
const footerLink = {
color: '#b7b7b7',
textDecoration: 'underline',
};
const main = {
backgroundColor: '#ffffff',
margin: '0 auto',
fontFamily:
"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",
};
const container = {
margin: '0 auto',
padding: '0px 20px',
};
const logoContainer = {
marginTop: '32px',
backgroundColor: '#000',
color: '#fff',
height: '80px',
padding: '10px',
textAlign: 'center' as const,
textTransform: 'uppercase' as const,
fontSize: '32px',
fontWeight: '700',
};
const h1 = {
color: '#1d1c1d',
fontSize: '36px',
fontWeight: '700',
margin: '30px 0',
padding: '0',
lineHeight: '42px',
};
const heroText = {
fontSize: '20px',
lineHeight: '28px',
marginBottom: '30px',
};
const codeBox = {
background: 'rgb(245, 244, 245)',
borderRadius: '4px',
marginBottom: '30px',
padding: '40px 10px',
};
const confirmationCodeText = {
fontSize: '30px',
textAlign: 'center' as const,
verticalAlign: 'middle',
};
const text = {
color: '#000',
fontSize: '14px',
lineHeight: '24px',
};