refactor: improve news and email handling, style, folder structure (#16)

This commit is contained in:
Riccardo Senica
2024-06-04 18:04:54 +08:00
committed by GitHub
parent bc5e0cc195
commit acc10bf5fd
62 changed files with 1737 additions and 1553 deletions

View 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>
);
}