feat(templates): add styles to Message
This commit is contained in:
parent
f3918321bd
commit
8194fd3aa3
|
@ -1,18 +1,19 @@
|
|||
import { Body, Html, Markdown, Preview, Section, Text } from 'jsx-email'
|
||||
import { Body, Container, Html, Markdown, Preview } from 'jsx-email'
|
||||
import { Signature } from './components/Signature.tsx'
|
||||
import type { Template } from '../types.ts'
|
||||
import { BaseStyle, bodyCss, messageCss, textCss } from './styles/base.tsx'
|
||||
|
||||
function Message(
|
||||
{ summary, body }: { summary?: string; body: string },
|
||||
) {
|
||||
return (
|
||||
<Html lang='fr'>
|
||||
<Html lang='fr' style={{ fontSize: '14px' }}>
|
||||
<BaseStyle />
|
||||
<Preview>{summary}</Preview>
|
||||
<Body>
|
||||
<Markdown>{body}</Markdown>
|
||||
<Section>
|
||||
<Text>Coh@bit</Text>
|
||||
</Section>
|
||||
<Body style={bodyCss}>
|
||||
<Container style={messageCss}>
|
||||
<Markdown style={textCss}>{body}</Markdown>
|
||||
</Container>
|
||||
<Signature />
|
||||
</Body>
|
||||
</Html>
|
||||
|
|
Loading…
Reference in a new issue