mailer/src/template.tsx

28 lines
559 B
TypeScript
Raw Normal View History

2024-03-28 22:32:46 +01:00
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 />))