mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
* fix(sidebar): show icon-sized skeletons in collapsed settings sidebar * fix(sidebar): hide expanded skeletons during pre-hydration in collapsed settings * fix(sidebar): align collapsed settings skeletons with actual icon positions * fix(sidebar): match collapsed skeleton section grouping with loaded layout * fix(sidebar): hoist skeleton section counts to module constant * improvement(ui): align all public pages with dark landing theme and improve whitelabeling * fix(ui): address PR review comments - restore StatusPageLayout wrapper, improve whitelabel detection * fix(ui): add missing dark class to 404 page, add relative positioning to invite layout * fix(ui): fallback to white button when whitelabeled without primary color * improvement(seo): add x-default hreflang, speakable schema to landing and blog posts * fix(ui): fix OTP/input light-mode styles and add missing header classes on standalone auth pages * undo hardcoded ff config * update old components/ui usage to emcn * fix(ui): add SupportFooter to InviteLayout, remove duplicates from unsubscribe page * fix(ui): fix invite layout flex centering, use BrandedButton on 404 page * fix(ui): fix OTP group styling, props spread order in BrandedButton, invite header shrink-0 * fix: enterprise hydration error --------- Co-authored-by: Emir Karabeg <emirkarabeg@berkeley.edu>
28 lines
885 B
TypeScript
28 lines
885 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-[#ECECEC]'>
|
|
<header className='shrink-0 bg-[#1C1C1C]'>
|
|
<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>
|
|
)
|
|
}
|