29 lines
1.5 KiB
TypeScript
29 lines
1.5 KiB
TypeScript
import { Gamepad2 } from "lucide-react"
|
||
|
||
export default function AuthLayout({ children }: { children: React.ReactNode }) {
|
||
return (
|
||
<div className="flex min-h-screen">
|
||
<div className="hidden md:flex w-1/2 relative overflow-hidden bg-primary items-center justify-center p-12 text-primary-foreground">
|
||
<div className="absolute inset-0 bg-linear-to-br from-primary via-primary/90 to-primary/80" />
|
||
<div className="absolute top-[-10%] left-[-10%] w-[60%] h-[60%] rounded-full bg-primary-foreground/10 blur-[120px]" />
|
||
<div className="absolute bottom-[-10%] right-[-10%] w-[60%] h-[60%] rounded-full bg-primary-foreground/10 blur-[120px]" />
|
||
<div className="relative z-10 max-w-md space-y-6">
|
||
<div className="flex items-center gap-3">
|
||
<div className="rounded-2xl bg-primary-foreground/20 p-3 backdrop-blur-sm">
|
||
<Gamepad2 className="h-10 w-10" />
|
||
</div>
|
||
<span className="text-3xl font-bold tracking-tighter">聚玩 JuWan</span>
|
||
</div>
|
||
<div className="space-y-2">
|
||
<h2 className="text-4xl font-bold leading-tight">找到你的游戏搭档</h2>
|
||
<p className="text-lg text-primary-foreground/80">找人一起打游戏,从这里开始</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div className="flex-1 flex items-center justify-center p-6 bg-muted/30">
|
||
<div className="w-full max-w-md">{children}</div>
|
||
</div>
|
||
</div>
|
||
)
|
||
}
|