Files
juwan-frontend/app/(auth)/layout.tsx
T

69 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { ArrowLeft, Gamepad2 } from "lucide-react"
import Link from "next/link"
const stats = [
{ value: "12,000+", label: "认证打手" },
{ value: "98.6%", label: "好评率" },
{ value: "50,000+", label: "完成订单" },
]
export default function AuthLayout({ children }: { children: React.ReactNode }) {
return (
<div className="flex min-h-screen bg-background">
{/* Left: Brand Panel */}
<div className="hidden w-1/2 flex-col justify-between bg-card p-12 lg:flex">
<Link href="/" className="flex items-center gap-2">
<div className="flex h-9 w-9 items-center justify-center rounded-lg bg-primary">
<Gamepad2 className="h-4 w-4 text-primary-foreground" />
</div>
<span className="text-xl font-bold tracking-tight"></span>
</Link>
<div className="max-w-md">
<h1 className="text-4xl font-bold leading-tight">
<br />
<span className="text-gradient-brand"></span>
</h1>
<p className="mt-4 text-base leading-relaxed text-muted-foreground">
</p>
<div className="mt-10 grid grid-cols-3 gap-6">
{stats.map((stat) => (
<div key={stat.label}>
<div className="text-2xl font-bold">{stat.value}</div>
<div className="mt-1 text-xs text-muted-foreground">{stat.label}</div>
</div>
))}
</div>
</div>
<div className="text-xs text-muted-foreground">&copy; 2025 . All rights reserved.</div>
</div>
{/* Right: Auth Form */}
<div className="flex w-full flex-col items-center justify-center px-6 py-12 lg:w-1/2 lg:px-16">
{/* Mobile header */}
<div className="mb-8 flex w-full max-w-sm items-center justify-between lg:hidden">
<Link
href="/"
className="flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground"
>
<ArrowLeft className="h-4 w-4" />
</Link>
<div className="flex items-center gap-2">
<div className="flex h-7 w-7 items-center justify-center rounded-md bg-primary">
<Gamepad2 className="h-3.5 w-3.5 text-primary-foreground" />
</div>
<span className="text-lg font-bold"></span>
</div>
</div>
<div className="w-full max-w-sm">{children}</div>
</div>
</div>
)
}