refactor: improve news and email handling, style, folder structure (#16)
This commit is contained in:
32
components/email/Template.tsx
Normal file
32
components/email/Template.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import Footer from './components/Footer';
|
||||
|
||||
interface TemplateProps {
|
||||
title: string;
|
||||
body: JSX.Element;
|
||||
}
|
||||
|
||||
export default function Template({ title, body }: TemplateProps) {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
maxWidth: '720px',
|
||||
alignContent: 'center',
|
||||
alignItems: 'center',
|
||||
backgroundColor: '#F9FBFB'
|
||||
}}
|
||||
>
|
||||
<h2
|
||||
style={{
|
||||
padding: '20px',
|
||||
textAlign: 'center',
|
||||
color: 'white',
|
||||
backgroundColor: `#8230CC`
|
||||
}}
|
||||
>
|
||||
{title}
|
||||
</h2>
|
||||
<div style={{ margin: '20px', padding: '20px' }}>{body}</div>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user