style: redesign hero section and auth split layout
This commit is contained in:
+22
-3
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user