diff --git a/app/(main)/page.tsx b/app/(main)/page.tsx index 21d32e9..f39233f 100644 --- a/app/(main)/page.tsx +++ b/app/(main)/page.tsx @@ -15,15 +15,11 @@ export default function HomePage() { return (
找人一起打游戏,从这里开始 @@ -50,7 +46,12 @@ export default function HomePage() { 游戏分类 - + 查看全部 @@ -61,7 +62,7 @@ export default function HomePage() { {game.name} @@ -73,32 +74,28 @@ export default function HomePage() { 推荐内容 - + 综合排序 - | 评分最高 - | 接单最多 - | 价格最低 - | ( @@ -124,13 +121,13 @@ export default function HomePage() { {player.user.nickname} - + {player.rating} {player.totalOrders} 单 {player.status === "available" ? "可接单" @@ -142,19 +139,31 @@ export default function HomePage() { - + {player.tags.map((tag) => ( - + {tag} ))} {player.shopName && ( - 所属店铺: {player.shopName} + 所属店铺: {player.shopName} )} - - + + + + {player.services?.[0]?.price ?? 35} + + + 元/{player.services?.[0]?.unit ?? "时"} + + + 查看详情 @@ -162,7 +171,7 @@ export default function HomePage() { ))} {/* Community Teaser */} - + 逛逛社区 发现更多有趣的游戏日常和讨论 @@ -173,7 +182,7 @@ export default function HomePage() { - + 进入社区 @@ -181,7 +190,10 @@ export default function HomePage() { {/* Shops */} {shops.map((shop) => ( - + {shop.name} {shop.description} @@ -189,7 +201,7 @@ export default function HomePage() { - + {shop.rating} @@ -200,7 +212,7 @@ export default function HomePage() { - + 进入店铺 diff --git a/components/header.tsx b/components/header.tsx index 0ed1179..0430598 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -105,10 +105,10 @@ export function Header() { key={link.href} href={link.href} className={cn( - "px-3 py-1.5 rounded-full text-sm font-medium transition-colors", + "rounded-lg px-4 py-2 text-sm font-medium transition-colors", pathname === link.href || (link.href !== "/" && pathname.startsWith(link.href)) - ? "bg-primary/10 text-primary" - : "text-muted-foreground hover:text-foreground hover:bg-accent/50", + ? "bg-secondary text-foreground" + : "text-muted-foreground hover:bg-secondary/60 hover:text-foreground", )} > {link.label}
所属店铺: {player.shopName}
发现更多有趣的游戏日常和讨论
{shop.description}