Skip to content

Commit

Permalink
Finish login code email
Browse files Browse the repository at this point in the history
  • Loading branch information
quick007 committed Jan 17, 2024
1 parent 1494754 commit a29855d
Showing 1 changed file with 39 additions and 22 deletions.
61 changes: 39 additions & 22 deletions emails/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,61 @@ import {
Section,
Tailwind,
Text,
Preview,
Font,
Column,
Row,
} from "@react-email/components";
import * as React from "react";
import config from "../tailwind.config.ts"
import config from "../tailwind.config.ts";

export default function LoginEmail({ otp = "123456" }: { otp: string }) {
return (
<Html>
<Head />
<Tailwind config={{
theme: config.theme
}}>
<Body className="bg-white">
<Container className="">
<Head>
<Font
fontFamily="Inter"
fallbackFontFamily="sans-serif"
webFont={{
url: "https://github.com/google/fonts/raw/main/ofl/inter/Inter%5Bslnt,wght%5D.ttf",
format: "woff2",
}}
fontWeight={400}
fontStyle="normal"
/>
</Head>
<Tailwind
config={{
theme: config.theme,
}}
>
<Body className="bg-white text-gray-800 text-center">
<Preview>Your autorication code to log in to Events</Preview>
<Container className="my-8">
<Img
src={`https://events.deno.dev/orange-logo.svg`}
width="212"
height="88"
width="40"
height="40"
alt="Plaid"
className="mx-auto"
/>
<Text >Verify Your Identity</Text>
<Heading >
Enter the following code to finish linking Venmo.
<Heading className="text mt-2 text-2xl font-bold">Events</Heading>
<Heading className="mt-10 mb-2">Verify Your Identity</Heading>
<Heading className="text-lg font-medium mt-0">
Enter the following code to finish logging in.
</Heading>
<Section>
<Text>{otp}</Text>
</Section>
<Text>Not expecting this email?</Text>
{/* Some of the more jank classes I've written */}
<Text className="text-2xl font-medium mt-20 mb-44 bg-gray-200 rounded-md w-max mx-auto tracking-[1em] pl-6 pr-[calc(1.5rem-1em)] py-3 ">
{otp}
</Text>

<Text>
Contact{" "}
<Link href="mailto:[email protected]">
[email protected]
</Link>{" "}
if you did not request this code.
You can safly ignore this email if you did not request this login
code.
</Text>
</Container>
</Body>
</Tailwind>
</Html>
);
}

0 comments on commit a29855d

Please sign in to comment.