Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions emails/verificationmail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import {
Html,
Head,
Font,
Preview,
Heading,
Row,
Section,
Text,
Button,
} from '@react-email/components';

export default function VerificationEmail({ username, otp }) {
return (
<Html lang="en" dir="ltr">
<Head>
<title>Verification Code</title>
<Font
fontFamily="Roboto"
fallbackFontFamily="Verdana"
webFont={{
url: 'https://fonts.gstatic.com/s/roboto/v27/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2',
format: 'woff2',
}}
fontWeight={400}
fontStyle="normal"
/>
</Head>
<Preview>Here's your verification code: {otp}</Preview>
<Section>
<Row>
<Heading as="h2">Hello {username},</Heading>
</Row>
<Row>
<Text>
Thank you for registering. Please use the following verification
code to complete your registration:
</Text>
</Row>
<Row>
<Text>{otp}</Text>
</Row>
<Row>
<Text>
If you did not request this code, please ignore this email.
</Text>
</Row>
{/* <Row>
<Button
href={`http://localhost:3000/verify/${username}`}
style={{ color: '#61dafb' }}
>
Verify here
</Button>
</Row> */}
</Section>
</Html>
);
}

Loading