The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add reset password skelton
Kiran K947e50fe287f
diff --git a/apps/web/app/app.dub.co/(auth)/auth/reset-password/page.tsx b/apps/web/app/app.dub.co/(auth)/auth/reset-password/page.tsxnew file mode 100644index 0000000000..e69de29bb2diff --git a/apps/web/emails/reset-password-link.tsx b/apps/web/emails/reset-password-link.tsxnew file mode 100644index 0000000000..93d1a5b004--- /dev/null+++ b/apps/web/emails/reset-password-link.tsx@@ -0,0 +1,68 @@+import { DUB_WORDMARK } from "@dub/utils";+import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+} from "@react-email/components";+import Footer from "./components/footer";++export default function ResetPasswordLink({+ email = "[email protected]",+ url = "http://localhost:8888/api/auth/callback/email?callbackUrl=http%3A%2F%2Fapp.localhost%3A3000%2Flogin&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&[email protected]",+}: {+ email: string;+ url: string;+}) {+ return (+ <Html>+ <Head />+ <Preview>Your Dub.co Login Link</Preview>+ <Tailwind>+ <Body className="mx-auto my-auto bg-white font-sans">+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">+ <Section className="mt-8">+ <Img+ src={DUB_WORDMARK}+ height="40"+ alt="Dub"+ className="mx-auto my-0"+ />+ </Section>+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">+ Your Login Link+ </Heading>+ <Text className="text-sm leading-6 text-black">+ Welcome to Dub.co!+ </Text>+ <Text className="text-sm leading-6 text-black">+ Please click the magic link below to sign in to your account.+ </Text>+ <Section className="my-8 text-center">+ <Link+ className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"+ href={url}+ >+ Sign in+ </Link>+ </Section>+ <Text className="text-sm leading-6 text-black">+ or copy and paste this URL into your browser:+ </Text>+ <Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">+ {url.replace(/^https?:\/\//, "")}+ </Text>+ <Footer email={email} />+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+}