feat: 首页改为脚本市场,创建页移至 /create
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user