forked from DA0-DA0/dao-dao-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
JoinedDao.tsx
76 lines (71 loc) · 1.64 KB
/
JoinedDao.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import {
Button,
Column,
Img,
Link,
Row,
Section,
Text,
} from '@react-email/components'
import { EmailRenderer, EmailWrapper, styles } from '../common'
const Template = () => (
<EmailWrapper>
<Text
style={{
...styles.text,
marginTop: 0,
marginBottom: '1.5rem',
}}
>
{"You've"} been added to {`{{name}}`}. Follow it to receive updates.
</Text>
<Section>
<Row>
<Column align="center">
<div
style={{
display: 'inline-block',
padding: '0.25rem',
border: 2,
borderStyle: 'solid',
borderColor: styles.border.primary,
borderRadius: '999px',
}}
>
<Link
href="{{url}}"
style={{
marginLeft: 'auto',
marginRight: 'auto',
}}
>
<Img
alt="logo"
height={96}
src="{{imageUrl}}"
style={{
borderRadius: 96,
overflow: 'hidden',
objectFit: 'cover',
}}
width={96}
/>
</Link>
</div>
</Column>
</Row>
<Row style={{ marginTop: '1rem' }}>
<Column align="center">
<Button href="{{url}}" {...styles.buttonProps}>
Visit {`{{name}}`}
</Button>
</Column>
</Row>
</Section>
</EmailWrapper>
)
export const JoinedDao: EmailRenderer = {
name: 'inbox-joined_dao',
subject: 'You joined {{name}}',
Template,
}