mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-08 04:54:58 +02:00
62 lines
2.1 KiB
TypeScript
62 lines
2.1 KiB
TypeScript
|
import {
|
|||
|
Body,
|
|||
|
Container,
|
|||
|
Head,
|
|||
|
Heading,
|
|||
|
Html,
|
|||
|
Preview,
|
|||
|
Section,
|
|||
|
Text,
|
|||
|
Tailwind,
|
|||
|
} from "@react-email/components";
|
|||
|
import * as React from "react";
|
|||
|
|
|||
|
interface VerifyEmailProps {
|
|||
|
username?: string;
|
|||
|
verificationCode: string;
|
|||
|
}
|
|||
|
|
|||
|
export const VerifyEmail = ({
|
|||
|
username,
|
|||
|
verificationCode,
|
|||
|
}: VerifyEmailProps) => {
|
|||
|
const previewText = `Verify your email, ${username}`;
|
|||
|
|
|||
|
return (
|
|||
|
<Html>
|
|||
|
<Head />
|
|||
|
<Preview>{previewText}</Preview>
|
|||
|
<Tailwind>
|
|||
|
<Body className="font-sans">
|
|||
|
<Container className="bg-white border border-solid border-gray-200 p-6 max-w-lg mx-auto my-8">
|
|||
|
<Heading className="text-2xl font-semibold text-gray-800 text-center">
|
|||
|
Verify Your Email
|
|||
|
</Heading>
|
|||
|
<Text className="text-base text-gray-700 mt-4">
|
|||
|
Hi {username || "there"},
|
|||
|
</Text>
|
|||
|
<Text className="text-base text-gray-700 mt-2">
|
|||
|
You’ve requested to verify your email. Please use
|
|||
|
the verification code below:
|
|||
|
</Text>
|
|||
|
<Section className="text-center my-6">
|
|||
|
<Text className="inline-block bg-gray-100 text-xl font-bold text-gray-900 py-2 px-4 border border-gray-300 rounded-md">
|
|||
|
{verificationCode}
|
|||
|
</Text>
|
|||
|
</Section>
|
|||
|
<Text className="text-base text-gray-700 mt-2">
|
|||
|
If you didn’t request this, you can safely ignore
|
|||
|
this email.
|
|||
|
</Text>
|
|||
|
<Text className="text-sm text-gray-500 mt-6">
|
|||
|
Best regards,
|
|||
|
<br />
|
|||
|
Fossorial
|
|||
|
</Text>
|
|||
|
</Container>
|
|||
|
</Body>
|
|||
|
</Tailwind>
|
|||
|
</Html>
|
|||
|
);
|
|||
|
};
|