2025-02-18 19:34:07 +00:00
|
|
|
import {
|
|
|
|
|
Body,
|
|
|
|
|
Container,
|
|
|
|
|
Img,
|
|
|
|
|
Link,
|
|
|
|
|
Preview,
|
|
|
|
|
Section,
|
|
|
|
|
Tailwind,
|
|
|
|
|
Text,
|
|
|
|
|
} from '@react-email/components';
|
2025-02-25 01:50:31 +00:00
|
|
|
import { EmailFooter } from './emailFooter';
|
2025-02-18 19:34:07 +00:00
|
|
|
|
|
|
|
|
interface MagicLinkEmailProps {
|
|
|
|
|
magicLink: string,
|
|
|
|
|
baseUrl: string,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const MagicLinkEmail = ({
|
|
|
|
|
magicLink: url,
|
|
|
|
|
baseUrl: baseUrl,
|
|
|
|
|
}: MagicLinkEmailProps) => (
|
|
|
|
|
<Tailwind>
|
|
|
|
|
<Preview>Log in to Sourcebot</Preview>
|
|
|
|
|
<Body className="bg-white my-auto mx-auto font-sans px-2">
|
2025-02-25 01:50:31 +00:00
|
|
|
<Container className="border border-solid border-[#eaeaea] rounded my-[40px] mx-auto p-[20px] max-w-[465px]">
|
2025-02-18 19:34:07 +00:00
|
|
|
<Section className="mt-[32px]">
|
|
|
|
|
<Img
|
|
|
|
|
src={`${baseUrl}/sb_logo_light_large.png`}
|
|
|
|
|
height="60"
|
|
|
|
|
width="auto"
|
|
|
|
|
alt="Sourcebot Logo"
|
|
|
|
|
className="my-0 mx-auto"
|
|
|
|
|
/>
|
|
|
|
|
</Section>
|
|
|
|
|
<Text className="text-black text-[14px] leading-[24px]">
|
2025-02-25 01:50:31 +00:00
|
|
|
Hello,
|
2025-02-18 19:34:07 +00:00
|
|
|
</Text>
|
|
|
|
|
<Text className="text-black text-[14px] leading-[24px]">
|
|
|
|
|
You can log in to your Sourcebot account by clicking the link below.
|
|
|
|
|
</Text>
|
|
|
|
|
<Link
|
|
|
|
|
href={url}
|
|
|
|
|
className="text-blue-600 no-underline"
|
|
|
|
|
target="_blank"
|
|
|
|
|
style={{
|
|
|
|
|
display: 'block',
|
|
|
|
|
marginBottom: '16px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Click here to log in
|
|
|
|
|
</Link>
|
|
|
|
|
<Text className="text-black text-[14px] leading-[24px]">
|
|
|
|
|
If you didn't try to login, you can safely ignore this email.
|
|
|
|
|
</Text>
|
2025-02-25 01:50:31 +00:00
|
|
|
<EmailFooter />
|
2025-02-18 19:34:07 +00:00
|
|
|
</Container>
|
|
|
|
|
</Body>
|
|
|
|
|
</Tailwind>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
MagicLinkEmail.PreviewProps = {
|
|
|
|
|
magicLink: 'https://example.com/login',
|
|
|
|
|
baseUrl: 'http://localhost:3000',
|
|
|
|
|
} as MagicLinkEmailProps;
|
|
|
|
|
|
|
|
|
|
export default MagicLinkEmail;
|