style: email tweaking

This commit is contained in:
Riccardo
2023-12-19 20:04:32 +01:00
parent c0d6b73aca
commit 3af079a0f5
17 changed files with 155 additions and 110 deletions

View File

@@ -1,24 +1,30 @@
import { Link } from '../custom/link';
import { Note } from './components/note';
import Email from './template';
import Template from './template';
export default function ConfirmationTemplate(code: string) {
return {
subject: 'Welcome!',
template: (
<Email
title={'Welcome!'}
<Template
title='Welcome!'
body={
<div className='text-base text-gray-700 dark:text-gray-400'>
<div style={{ fontSize: '1rem', color: '#4a5568' }}>
<p>Dear subscriber,</p>
<p className='mt-2 '>
thank you for subscribing to our newsletter! Please click the
button below to confirm your subscription.
<p style={{ marginTop: '0.5rem' }}>
thank you for subscribing to our newsletter! Please click the link
below to confirm your subscription.
</p>
<div className='my-8 flex justify-center'>
<div
style={{
margin: '2rem 0',
display: 'flex',
justifyContent: 'center'
}}
>
<Link
path={`${process.env.HOME_URL}/confirmation?code=${code}`}
text='Confirm Subscription'
text='Confirm subscription'
/>
</div>
<Note>