feat: 首页改为脚本市场,创建页移至 /create

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 14:16:40 +08:00
parent e6e4357a28
commit 58a80cb196
3 changed files with 7 additions and 7 deletions

View File

@@ -13,16 +13,16 @@ export default function App() {
<span className="text-blue-500"></span> ScriptForge
</Link>
<nav className="flex gap-4 text-sm">
<Link to="/" className="text-gray-400 hover:text-blue-400 transition-colors"></Link>
<Link to="/market" className="text-gray-400 hover:text-blue-400 transition-colors"></Link>
<Link to="/" className="text-gray-400 hover:text-blue-400 transition-colors"></Link>
<Link to="/create" className="text-gray-400 hover:text-blue-400 transition-colors"></Link>
</nav>
</div>
</header>
<main className="flex-1 max-w-4xl mx-auto px-4 py-8 w-full">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/market" element={<Market />} />
<Route path="/" element={<Market />} />
<Route path="/create" element={<Home />} />
<Route path="/s/:id" element={<ScriptDetail />} />
<Route path="/s/:id/delete" element={<DeleteScript />} />
</Routes>

View File

@@ -62,7 +62,7 @@ export default function Market() {
) : items.length === 0 ? (
<div className="text-center py-10">
<p className="text-gray-500"></p>
<Link to="/" className="text-blue-400 hover:underline text-sm mt-2 block"></Link>
<Link to="/create" className="text-blue-400 hover:underline text-sm mt-2 block"></Link>
</div>
) : (
<div className="grid gap-4 sm:grid-cols-2">

View File

@@ -31,7 +31,7 @@ export default function ScriptDetail() {
<div className="text-6xl mb-4">😕</div>
<h2 className="text-xl font-bold mb-2"></h2>
<p className="text-gray-400 mb-6">{error}</p>
<Link to="/" className="text-blue-400 hover:underline"></Link>
<Link to="/create" className="text-blue-400 hover:underline"></Link>
</div>
)
}
@@ -59,7 +59,7 @@ export default function ScriptDetail() {
return (
<div>
<div className="mb-6">
<Link to="/" className="text-sm text-gray-500 hover:text-blue-400 transition-colors">&larr; </Link>
<Link to="/create" className="text-sm text-gray-500 hover:text-blue-400 transition-colors">&larr; </Link>
<Link to="/market" className="text-sm text-gray-500 hover:text-blue-400 transition-colors ml-4"></Link>
</div>