mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
* chore: fix conflicts * chore: fix conflicts * chore: pause marquee * chore: fix conflicts * chore: fix conflicts * chore: address review comments * chore: fix conflicts * chore: other bug fixes * chore: fix conflicts * chore: fix radius * chore: fix review changes * chore: fix conflicts * chore: revert other * chore: fix conflicts * chore: fix review changes * chore: fix conflicts * chore: fix review changes * chore: fix button state * chore: fix button state * chore: fix review changes * chore: fix lint * chore: fix conflicts * chore: add metadata * chore: fix things * chore: fix overwritten states * chore: fix warnings * chore: fix button state * chore: fix review changes * chore: fix review changes * chore: fix hover state * chore: fix popover * chore: fix review changes * chore: fix review changes
28 lines
907 B
TypeScript
28 lines
907 B
TypeScript
'use client'
|
|
|
|
import { useEffect } from 'react'
|
|
import AuthBackground from '@/app/(auth)/components/auth-background'
|
|
import Navbar from '@/app/(home)/components/navbar/navbar'
|
|
|
|
export default function AuthLayoutClient({ children }: { children: React.ReactNode }) {
|
|
useEffect(() => {
|
|
document.documentElement.classList.add('dark')
|
|
return () => {
|
|
document.documentElement.classList.remove('dark')
|
|
}
|
|
}, [])
|
|
|
|
return (
|
|
<AuthBackground className='dark font-[430] font-season'>
|
|
<main className='relative flex min-h-full flex-col text-[var(--landing-text)]'>
|
|
<header className='shrink-0 bg-[var(--landing-bg)]'>
|
|
<Navbar logoOnly />
|
|
</header>
|
|
<div className='relative z-30 flex flex-1 items-center justify-center px-4 pb-24'>
|
|
<div className='w-full max-w-lg px-4'>{children}</div>
|
|
</div>
|
|
</main>
|
|
</AuthBackground>
|
|
)
|
|
}
|