-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtemplate.tsx
53 lines (52 loc) · 1 KB
/
template.tsx
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
import React from 'react';
export default (text: string, domain: string) => (
<div
style={{
width: '1200px',
height: '627px',
padding: '20px',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'flex-start',
background: 'linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%)',
color: '#333',
fontSize: '32px',
fontWeight: '600',
textAlign: 'center',
boxShadow: '0 0 10px rgba(0, 0, 0, 0.1)',
borderRadius: '10px',
position: 'relative',
}}
>
<div
style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
flexGrow: 1, // Expand the container
}}
>
<h1
style={{
fontSize: '48px',
fontWeight: '700',
maxWidth: '90%',
wordWrap: 'break-word',
}}
>
{text}
</h1>
</div>
<p
style={{
fontSize: '24px',
color: '#666',
position: 'absolute',
bottom: '20px',
}}
>
{domain}
</p>
</div>
);