From ee926ac3934188135a70342a21437b3a78951cfe Mon Sep 17 00:00:00 2001 From: zetaloop Date: Wed, 25 Feb 2026 03:04:08 +0800 Subject: [PATCH] feat(discover): proto2 layout and on-page search module --- app/(main)/page.tsx | 102 +++++++++++++++++++++++++++----------------- 1 file changed, 62 insertions(+), 40 deletions(-) diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx index 070f346..215bd04 100644 --- a/app/(main)/page.tsx +++ b/app/(main)/page.tsx @@ -3,6 +3,7 @@ import Link from "next/link" import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" import { Badge } from "@/components/ui/badge" import { Button } from "@/components/ui/button" +import { Input } from "@/components/ui/input" import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card" import { listGames, listPlayers, listShops } from "@/lib/api" import { GameIcon } from "@/lib/game-icons" @@ -19,21 +20,27 @@ export default function HomePage() {
-
-

找到你的游戏搭档

-

- 找人一起打游戏,从这里开始 -

-
- - +
+
+

找到你的游戏搭档

+

+ 找人一起打游戏,从这里开始 +

+
+ +
@@ -47,30 +54,38 @@ export default function HomePage() {
-
+
{games.map((game) => ( - - {game.name} + + {game.name} ))}
-
-
-

推荐打手

- +
+
+

推荐内容

+
+ 综合排序 + | + 评分最高 + | + 接单最多 + | + 价格最低 + | + 价格最高 +
+
+ {/* Players */} {players.map((player) => ( ))} -
-
-
-
-

热门店铺

- -
-
+ {/* Community Teaser */} + + + 逛逛社区 +

发现更多有趣的游戏日常和讨论

+
+ +
+ +
+
+ + + +
+ + {/* Shops */} {shops.map((shop) => ( @@ -154,7 +176,7 @@ export default function HomePage() {
-