28 lines
559 B
TypeScript
28 lines
559 B
TypeScript
|
import { Body, Column, Html, render, Section } from 'jsx-email'
|
||
|
|
||
|
function Email() {
|
||
|
return (
|
||
|
<Html lang='en'>
|
||
|
<Body style={{ backgroundColor: '#61dafb' }}>
|
||
|
<Section>
|
||
|
<Column style={{ width: '50%' }}>First column</Column>
|
||
|
<Column style={{ width: '50%' }}>Second column</Column>
|
||
|
</Section>
|
||
|
</Body>
|
||
|
</Html>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
// console.log(await render(Email))
|
||
|
// import { render } from 'npm:preact-render-to-string'
|
||
|
|
||
|
// function Email() {
|
||
|
// return (
|
||
|
// <html>
|
||
|
// <p>Test</p>
|
||
|
// </html>
|
||
|
// )
|
||
|
// }
|
||
|
|
||
|
console.log(await render(<Email />))
|