-
Notifications
You must be signed in to change notification settings - Fork 115
/
kitchenSink.jsx
28 lines (24 loc) · 1.01 KB
/
kitchenSink.jsx
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
import React from 'react'
import { Box, Email, Image, Item, Span, A } from '../src/index'
const css = `
@media only screen and (max-device-width: 480px) {
font-size: 20px !important;
}`.trim()
const sourceURL = 'https://raw.githubusercontent.com/chromakode/react-html-email/master/examples/kitchenSink.js'
const email = (
<Email title="Test Email" headCSS={css}>
<Item>
<Span fontSize={15}>Hello, world!</Span>
</Item>
<Item>
<Box cellSpacing={20} width="100%" style={{ borderTop: '3px solid black' }}>
<Item>
<Span color="gray" lineHeight={20}>Generated by <A href="https://github.com/chromakode/react-html-email">react-html-email</A></Span>
<Image data-mc-bar="bar" data-mc-baz="baz" alt="react" src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/React.js_logo.svg/100px-React.js_logo.svg.png" width={100} height={100} />
<A download={sourceURL} href={sourceURL}>Source code</A>
</Item>
</Box>
</Item>
</Email>
)
export default email