feat: route structure, providers, layouts, and placeholder pages
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export default function CommunityPage() {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-2xl font-bold">社区</h1>
|
||||
<p className="mt-2 text-muted-foreground">浏览帖子、秀单、讨论</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
export default function MainLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col">
|
||||
<header className="border-b">
|
||||
<nav className="container mx-auto flex h-16 items-center justify-between px-4">
|
||||
<span className="text-xl font-bold">聚玩</span>
|
||||
<div className="flex items-center gap-4">
|
||||
<span className="text-sm text-muted-foreground">导航占位</span>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main className="flex-1">{children}</main>
|
||||
<footer className="border-t py-6">
|
||||
<div className="container mx-auto px-4 text-center text-sm text-muted-foreground">
|
||||
© 聚玩 - 游戏陪玩服务平台
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-3xl font-bold">聚玩</h1>
|
||||
<p className="mt-2 text-lg text-muted-foreground">游戏陪玩服务平台</p>
|
||||
<div className="mt-8 grid gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||
<div className="rounded-lg border p-6">
|
||||
<h2 className="font-semibold">游戏分类</h2>
|
||||
<p className="mt-1 text-sm text-muted-foreground">按游戏浏览陪玩服务</p>
|
||||
</div>
|
||||
<div className="rounded-lg border p-6">
|
||||
<h2 className="font-semibold">推荐打手</h2>
|
||||
<p className="mt-1 text-sm text-muted-foreground">热门打手推荐</p>
|
||||
</div>
|
||||
<div className="rounded-lg border p-6">
|
||||
<h2 className="font-semibold">热门店铺</h2>
|
||||
<p className="mt-1 text-sm text-muted-foreground">优质店铺推荐</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function PlayerDetailPage({ params: _params }: { params: Promise<{ id: string }> }) {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-2xl font-bold">打手详情</h1>
|
||||
<p className="mt-2 text-muted-foreground">评分、服务列表、评价、所属店铺</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function PostDetailPage({ params: _params }: { params: Promise<{ id: string }> }) {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-2xl font-bold">帖子详情</h1>
|
||||
<p className="mt-2 text-muted-foreground">帖子内容、评论区</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function NewPostPage() {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-2xl font-bold">发帖</h1>
|
||||
<p className="mt-2 text-muted-foreground">发布普通帖、秀单帖或引用帖</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function SearchPage() {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-2xl font-bold">搜索</h1>
|
||||
<p className="mt-2 text-muted-foreground">搜索打手、店铺和服务</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
export default function ShopDetailPage({ params: _params }: { params: Promise<{ id: string }> }) {
|
||||
return (
|
||||
<div className="container mx-auto py-8 px-4">
|
||||
<h1 className="text-2xl font-bold">店铺详情</h1>
|
||||
<p className="mt-2 text-muted-foreground">店铺主页、服务列表、打手列表</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user