sign-in-2.tsx 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { Logo } from '@/assets/logo'
  2. import { cn } from '@/lib/utils'
  3. import dashboardDark from './assets/dashboard-dark.png'
  4. import dashboardLight from './assets/dashboard-light.png'
  5. import { UserAuthForm } from './components/user-auth-form'
  6. export function SignIn2() {
  7. return (
  8. <div className='relative container grid h-svh flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0'>
  9. <div className='lg:p-8'>
  10. <div className='mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:w-[480px] sm:p-8'>
  11. <div className='mb-4 flex items-center justify-center'>
  12. <Logo className='me-2' />
  13. <h1 className='text-xl font-medium'>Shadcn Admin</h1>
  14. </div>
  15. </div>
  16. <div className='mx-auto flex w-full max-w-sm flex-col justify-center space-y-2'>
  17. <div className='flex flex-col space-y-2 text-start'>
  18. <h2 className='text-lg font-semibold tracking-tight'>Sign in</h2>
  19. <p className='text-sm text-muted-foreground'>
  20. Enter your email and password below <br />
  21. to log into your account
  22. </p>
  23. </div>
  24. <UserAuthForm />
  25. <p className='px-8 text-center text-sm text-muted-foreground'>
  26. By clicking sign in, you agree to our{' '}
  27. <a
  28. href='/terms'
  29. className='underline underline-offset-4 hover:text-primary'
  30. >
  31. Terms of Service
  32. </a>{' '}
  33. and{' '}
  34. <a
  35. href='/privacy'
  36. className='underline underline-offset-4 hover:text-primary'
  37. >
  38. Privacy Policy
  39. </a>
  40. .
  41. </p>
  42. </div>
  43. </div>
  44. <div
  45. className={cn(
  46. 'relative h-full overflow-hidden bg-muted max-lg:hidden',
  47. '[&>img]:absolute [&>img]:top-[15%] [&>img]:left-20 [&>img]:h-full [&>img]:w-full [&>img]:object-cover [&>img]:object-top-left [&>img]:select-none'
  48. )}
  49. >
  50. <img
  51. src={dashboardLight}
  52. className='dark:hidden'
  53. width={1024}
  54. height={1151}
  55. alt='Shadcn-Admin'
  56. />
  57. <img
  58. src={dashboardDark}
  59. className='hidden dark:block'
  60. width={1024}
  61. height={1138}
  62. alt='Shadcn-Admin'
  63. />
  64. </div>
  65. </div>
  66. )
  67. }