import { ArrowRight, Search, ShoppingBag, Star } from "lucide-react" 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" export default function HomePage() { const games = listGames() const players = listPlayers() const shops = listShops() return (

找到你的游戏搭档

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

游戏分类

{games.map((game) => ( {game.name} ))}

推荐内容

综合排序 | 评分最高 | 接单最多 | 价格最低 | 价格最高
{/* Players */} {players.map((player) => ( {player.user.nickname[0]}
{player.user.nickname}
{player.rating}
{player.totalOrders} 单 {player.status === "available" ? "可接单" : player.status === "busy" ? "忙碌" : "离线"}
{player.tags.map((tag) => ( {tag} ))}
{player.shopName && (

所属店铺: {player.shopName}

)}
))} {/* Community Teaser */} 逛逛社区

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

{/* Shops */} {shops.map((shop) => ( {shop.name}

{shop.description}

{shop.rating}
{shop.totalOrders} 单
{shop.playerCount} 名打手
))}
) }