← full-stack-fastapi-template  /  frontend/src/components/Common/AuthLayout.tsx

1
import { Appearance } from "@/components/Common/Appearance"
2
import { Logo } from "@/components/Common/Logo"
3
import { Footer } from "./Footer"
4
5
interface AuthLayoutProps {
6
  children: React.ReactNode
7
}
8
9
export function AuthLayout({ children }: AuthLayoutProps) {
10
  return (
11
    <div className="grid min-h-svh lg:grid-cols-2">
12
      <div className="bg-muted dark:bg-zinc-900 relative hidden lg:flex lg:items-center lg:justify-center">
13
        <Logo variant="full" className="h-16" asLink={false} />
14
      </div>
15
      <div className="flex flex-col gap-4 p-6 md:p-10">
16
        <div className="flex justify-end">
17
          <Appearance />
18
        </div>
19
        <div className="flex flex-1 items-center justify-center">
20
          <div className="w-full max-w-xs">{children}</div>
21
        </div>
22
        <Footer />
23
      </div>
24
    </div>
25
  )
26
}
27