refactor: improve news and email handling, style, folder structure (#16)
This commit is contained in:
37
components/email/Confirmation.tsx
Normal file
37
components/email/Confirmation.tsx
Normal file
@@ -0,0 +1,37 @@
|
||||
import Note from './components/Note';
|
||||
import Template from './Template';
|
||||
|
||||
export default function ConfirmationTemplate(code: string) {
|
||||
return {
|
||||
subject: 'Welcome!',
|
||||
template: (
|
||||
<Template
|
||||
title='Welcome!'
|
||||
body={
|
||||
<div style={{ fontSize: '1rem', color: '#4a5568' }}>
|
||||
<p>Dear subscriber,</p>
|
||||
<p style={{ marginTop: '0.5rem' }}>
|
||||
thank you for subscribing to our newsletter! Please click the link
|
||||
below to confirm your subscription.
|
||||
</p>
|
||||
<div
|
||||
style={{
|
||||
margin: '2rem 0',
|
||||
display: 'flex',
|
||||
justifyContent: 'center'
|
||||
}}
|
||||
>
|
||||
<a href={`${process.env.HOME_URL}/confirmation?code=${code}`}>
|
||||
{'Confirm subscription'}
|
||||
</a>
|
||||
</div>
|
||||
<Note>
|
||||
If you didn't subscribe to our newsletter, please ignore this
|
||||
email.
|
||||
</Note>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
)
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user