您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

layout.tsx 1.0KB

123456789101112131415161718192021222324252627282930
  1. 'use client'
  2. import Header from '@/app/signin/_header'
  3. import cn from '@/utils/classnames'
  4. import { useGlobalPublicStore } from '@/context/global-public-context'
  5. export default function SignInLayout({ children }: any) {
  6. const { systemFeatures } = useGlobalPublicStore()
  7. return <>
  8. <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
  9. <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
  10. <Header />
  11. <div className={
  12. cn(
  13. 'flex w-full grow flex-col items-center justify-center',
  14. 'px-6',
  15. 'md:px-[108px]',
  16. )
  17. }>
  18. <div className='flex w-[400px] flex-col'>
  19. {children}
  20. </div>
  21. </div>
  22. {!systemFeatures.branding.enabled && <div className='system-xs-regular px-8 py-6 text-text-tertiary'>
  23. © {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
  24. </div>}
  25. </div>
  26. </div>
  27. </>
  28. }