style: redesign hero section and auth split layout
This commit is contained in:
+21
-13
@@ -10,19 +10,27 @@ import { mockGames, mockPlayers, mockShops } from "@/lib/mock-data"
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4 space-y-12">
|
||||
<section className="text-center space-y-4 py-8">
|
||||
<h1 className="text-4xl font-bold tracking-tight">找到你的游戏搭档</h1>
|
||||
<p className="text-lg text-muted-foreground max-w-xl mx-auto">找人一起打游戏,从这里开始</p>
|
||||
<div className="flex justify-center gap-2 pt-2">
|
||||
<Button size="lg" asChild>
|
||||
<Link href="/search">
|
||||
<Search className="mr-2 h-4 w-4" />
|
||||
找人陪玩
|
||||
</Link>
|
||||
</Button>
|
||||
<Button size="lg" variant="outline" asChild>
|
||||
<Link href="/community">逛逛社区</Link>
|
||||
</Button>
|
||||
<section className="relative overflow-hidden rounded-3xl bg-linear-to-b from-primary/10 via-primary/5 to-transparent px-6 py-16 md:py-24 text-center">
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full h-full -z-10">
|
||||
<div className="absolute top-[-10%] left-[-10%] w-[40%] h-[40%] rounded-full bg-primary/10 blur-[100px]" />
|
||||
<div className="absolute bottom-[-10%] right-[-10%] w-[40%] h-[40%] rounded-full bg-primary/10 blur-[100px]" />
|
||||
</div>
|
||||
<div className="relative z-10 space-y-6">
|
||||
<h1 className="text-4xl md:text-6xl font-extrabold tracking-tight">找到你的游戏搭档</h1>
|
||||
<p className="text-lg md:text-xl text-muted-foreground max-w-xl mx-auto">
|
||||
找人一起打游戏,从这里开始
|
||||
</p>
|
||||
<div className="flex flex-col sm:flex-row justify-center gap-3 pt-2">
|
||||
<Button size="lg" className="rounded-full px-8" asChild>
|
||||
<Link href="/search">
|
||||
<Search className="mr-2 h-4 w-4" />
|
||||
找人陪玩
|
||||
</Link>
|
||||
</Button>
|
||||
<Button size="lg" variant="outline" className="rounded-full px-8" asChild>
|
||||
<Link href="/community">逛逛社区</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user