forgot-password.tsx 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { Card } from '@/components/ui/card'
  2. import { ForgotForm } from './components/forgot-form'
  3. import { Link } from 'react-router-dom'
  4. export default function ForgotPassword() {
  5. return (
  6. <>
  7. <div className='container grid h-svh flex-col items-center justify-center bg-primary-foreground lg:max-w-none lg:px-0'>
  8. <div className='mx-auto flex w-full flex-col justify-center space-y-2 sm:w-[480px] lg:p-8'>
  9. <div className='mb-4 flex items-center justify-center'>
  10. <svg
  11. xmlns='http://www.w3.org/2000/svg'
  12. viewBox='0 0 24 24'
  13. fill='none'
  14. stroke='currentColor'
  15. strokeWidth='2'
  16. strokeLinecap='round'
  17. strokeLinejoin='round'
  18. className='mr-2 h-6 w-6'
  19. >
  20. <path d='M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3' />
  21. </svg>
  22. <h1 className='text-xl font-medium'>Admin Dashboard</h1>
  23. </div>
  24. <Card className='p-6'>
  25. <div className='mb-2 flex flex-col space-y-2 text-left'>
  26. <h1 className='text-md font-semibold tracking-tight'>
  27. Forgot Password
  28. </h1>
  29. <p className='text-sm text-muted-foreground'>
  30. Enter your registered email and <br /> we will send you a link
  31. to reset your password.
  32. </p>
  33. </div>
  34. <ForgotForm />
  35. <p className='mt-4 px-8 text-center text-sm text-muted-foreground'>
  36. Don't have an account?{' '}
  37. <Link
  38. to='/sign-up'
  39. className='underline underline-offset-4 hover:text-primary'
  40. >
  41. Sign up
  42. </Link>
  43. .
  44. </p>
  45. </Card>
  46. </div>
  47. </div>
  48. </>
  49. )
  50. }