sign-up.tsx 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { Card } from '@/components/ui/card'
  2. import { SignUpForm } from './components/sign-up-form'
  3. import { Link } from 'react-router-dom'
  4. export default function SignUp() {
  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-lg font-semibold tracking-tight'>
  27. Create an account
  28. </h1>
  29. <p className='text-sm text-muted-foreground'>
  30. Enter your email and password to create an account. <br />
  31. Already have an account?{' '}
  32. <Link
  33. to='/sign-in'
  34. className='underline underline-offset-4 hover:text-primary'
  35. >
  36. Sign In
  37. </Link>
  38. </p>
  39. </div>
  40. <SignUpForm />
  41. <p className='mt-4 px-8 text-center text-sm text-muted-foreground'>
  42. By creating an account, you agree to our{' '}
  43. <a
  44. href='/terms'
  45. className='underline underline-offset-4 hover:text-primary'
  46. >
  47. Terms of Service
  48. </a>{' '}
  49. and{' '}
  50. <a
  51. href='/privacy'
  52. className='underline underline-offset-4 hover:text-primary'
  53. >
  54. Privacy Policy
  55. </a>
  56. .
  57. </p>
  58. </Card>
  59. </div>
  60. </div>
  61. </>
  62. )
  63. }