style: redesign hero section and auth split layout

This commit is contained in:
zetaloop
2026-02-20 21:26:52 +08:00
parent c49ba63d1f
commit b0e2728aa9
4 changed files with 62 additions and 25 deletions
+22 -3
View File
@@ -1,8 +1,27 @@
import { Gamepad2 } from "lucide-react"
export default function AuthLayout({ children }: { children: React.ReactNode }) {
return (
<div className="flex min-h-screen items-center justify-center bg-muted/30">
<div className="w-full max-w-md rounded-lg border bg-background p-6 shadow-sm">
{children}
<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-white/10 blur-[120px]" />
<div className="absolute bottom-[-10%] right-[-10%] w-[60%] h-[60%] rounded-full bg-white/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-white/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 md:bg-background">
<div className="w-full max-w-md">{children}</div>
</div>
</div>
)
+10 -5
View File
@@ -35,11 +35,16 @@ export default function LoginPage() {
}
return (
<div className="space-y-6">
<div className="flex flex-col items-center gap-2">
<Gamepad2 className="h-8 w-8" />
<h1 className="text-2xl font-bold"></h1>
<p className="text-sm text-muted-foreground"></p>
<div className="space-y-8 bg-background p-8 rounded-xl border shadow-sm md:border-0 md:shadow-none md:p-0">
<div className="flex flex-col gap-2">
<div className="flex items-center gap-2 md:hidden mb-4">
<div className="rounded-lg bg-primary/10 p-2">
<Gamepad2 className="h-6 w-6 text-primary" />
</div>
<span className="text-xl font-bold"></span>
</div>
<h1 className="text-2xl font-bold tracking-tight"></h1>
<p className="text-sm text-muted-foreground"></p>
</div>
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
<div className="space-y-2">
+9 -4
View File
@@ -42,10 +42,15 @@ export default function RegisterPage() {
}
return (
<div className="space-y-6">
<div className="flex flex-col items-center gap-2">
<Gamepad2 className="h-8 w-8" />
<h1 className="text-2xl font-bold"></h1>
<div className="space-y-8 bg-background p-8 rounded-xl border shadow-sm md:border-0 md:shadow-none md:p-0">
<div className="flex flex-col gap-2">
<div className="flex items-center gap-2 md:hidden mb-4">
<div className="rounded-lg bg-primary/10 p-2">
<Gamepad2 className="h-6 w-6 text-primary" />
</div>
<span className="text-xl font-bold"></span>
</div>
<h1 className="text-2xl font-bold tracking-tight"></h1>
<p className="text-sm text-muted-foreground"></p>
</div>
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">