index.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Link } from '@tanstack/react-router'
  2. import {
  3. Card,
  4. CardContent,
  5. CardDescription,
  6. CardFooter,
  7. CardHeader,
  8. CardTitle,
  9. } from '@/components/ui/card'
  10. import { AuthLayout } from '../auth-layout'
  11. import { ForgotPasswordForm } from './components/forgot-password-form'
  12. export function ForgotPassword() {
  13. return (
  14. <AuthLayout>
  15. <Card className='max-w-sm gap-4 sm:min-w-sm'>
  16. <CardHeader>
  17. <CardTitle className='text-lg tracking-tight'>
  18. Forgot Password
  19. </CardTitle>
  20. <CardDescription>
  21. Enter your registered email and <br /> we will send you a link to
  22. reset your password.
  23. </CardDescription>
  24. </CardHeader>
  25. <CardContent>
  26. <ForgotPasswordForm />
  27. </CardContent>
  28. <CardFooter>
  29. <p className='mx-auto px-8 text-center text-sm text-balance text-muted-foreground'>
  30. Don't have an account?{' '}
  31. <Link
  32. to='/sign-up'
  33. className='underline underline-offset-4 hover:text-primary'
  34. >
  35. Sign up
  36. </Link>
  37. .
  38. </p>
  39. </CardFooter>
  40. </Card>
  41. </AuthLayout>
  42. )
  43. }