layout.tsx 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import Header from '../signin/_header'
  2. import style from '../signin/page.module.css'
  3. import cn from '@/utils/classnames'
  4. export default async function SignInLayout({ children }: any) {
  5. return <>
  6. <div className={cn(
  7. style.background,
  8. 'flex w-full min-h-screen',
  9. 'sm:p-4 lg:p-8',
  10. 'gap-x-20',
  11. 'justify-center lg:justify-start',
  12. )}>
  13. <div className={
  14. cn(
  15. 'flex w-full flex-col bg-white shadow rounded-2xl shrink-0',
  16. 'space-between',
  17. )
  18. }>
  19. <Header />
  20. <div className={
  21. cn(
  22. 'flex flex-col items-center w-full grow justify-center',
  23. 'px-6',
  24. 'md:px-[108px]',
  25. )
  26. }>
  27. <div className='flex flex-col md:w-[400px]'>
  28. {children}
  29. </div>
  30. </div>
  31. <div className='px-8 py-6 system-xs-regular text-text-tertiary'>
  32. © {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
  33. </div>
  34. </div>
  35. </div>
  36. </>
  37. }