Files
juwan-frontend/app/(auth)/layout.tsx
T
zetaloop b6002f5691 refactor: remove hardcoded display values and unused lib/id.ts
Delete hardcoded marketing stats in auth layout and ¥12,800
placeholder in owner dashboard. Remove lib/id.ts which is no
longer referenced by any module.
2026-05-01 17:33:05 +08:00

54 lines
2.2 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"
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>
<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>
)
}