Skip to content

Commit d25c25b

Browse files
committed
✨ Add AuthLayout component
1 parent 5c81055 commit d25c25b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import Logo from "/assets/images/fastapi-logo.svg"
2+
3+
interface AuthLayoutProps {
4+
children: React.ReactNode
5+
}
6+
7+
export function AuthLayout({ children }: AuthLayoutProps) {
8+
return (
9+
<div className="grid min-h-svh lg:grid-cols-2">
10+
<div className="bg-muted relative hidden lg:flex lg:items-center lg:justify-center">
11+
<img
12+
src={Logo}
13+
alt="Logo"
14+
className="h-16 w-auto dark:brightness-[0.8] dark:grayscale"
15+
/>
16+
</div>
17+
<div className="flex flex-col gap-4 p-6 md:p-10">
18+
<div className="flex flex-1 items-center justify-center">
19+
<div className="w-full max-w-xs">{children}</div>
20+
</div>
21+
</div>
22+
</div>
23+
)
24+
}

0 commit comments

Comments
 (0)