2025-05-20 12:07:50 +08:00
|
|
|
'use client'
|
2024-10-21 09:23:20 +08:00
|
|
|
import Header from '../signin/_header'
|
|
|
|
|
|
|
|
import cn from '@/utils/classnames'
|
2025-05-20 12:07:50 +08:00
|
|
|
import { useGlobalPublicStore } from '@/context/global-public-context'
|
2024-10-21 09:23:20 +08:00
|
|
|
|
2025-05-20 12:07:50 +08:00
|
|
|
export default function SignInLayout({ children }: any) {
|
|
|
|
const { systemFeatures } = useGlobalPublicStore()
|
2024-10-21 09:23:20 +08:00
|
|
|
return <>
|
2025-03-31 15:44:04 +08:00
|
|
|
<div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
|
|
|
|
<div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
|
2024-10-21 09:23:20 +08:00
|
|
|
<Header />
|
|
|
|
<div className={
|
|
|
|
cn(
|
2025-03-21 17:41:03 +08:00
|
|
|
'flex w-full grow flex-col items-center justify-center',
|
2024-10-21 09:23:20 +08:00
|
|
|
'px-6',
|
|
|
|
'md:px-[108px]',
|
|
|
|
)
|
|
|
|
}>
|
|
|
|
<div className='flex flex-col md:w-[400px]'>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
2025-05-20 12:07:50 +08:00
|
|
|
{!systemFeatures.branding.enabled && <div className='system-xs-regular px-8 py-6 text-text-tertiary'>
|
2024-10-21 09:23:20 +08:00
|
|
|
© {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
|
2025-05-20 12:07:50 +08:00
|
|
|
</div>}
|
2024-10-21 09:23:20 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
}
|