auth-layout.tsx 929 B

12345678910111213141516171819202122232425262728
  1. interface Props {
  2. children: React.ReactNode
  3. }
  4. export default function AuthLayout({ children }: Props) {
  5. return (
  6. <div className='bg-primary-foreground container grid h-svh max-w-none items-center justify-center'>
  7. <div className='mx-auto flex w-full flex-col justify-center space-y-2 py-8 sm:w-[480px] sm:p-8'>
  8. <div className='mb-4 flex items-center justify-center'>
  9. <svg
  10. xmlns='http://www.w3.org/2000/svg'
  11. viewBox='0 0 24 24'
  12. fill='none'
  13. stroke='currentColor'
  14. strokeWidth='2'
  15. strokeLinecap='round'
  16. strokeLinejoin='round'
  17. className='me-2 h-6 w-6'
  18. >
  19. <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' />
  20. </svg>
  21. <h1 className='text-xl font-medium'>Shadcn Admin</h1>
  22. </div>
  23. {children}
  24. </div>
  25. </div>
  26. )
  27. }