diff --git a/public-frontend/index.html b/public-frontend/index.html index 6382ebc..cb94942 100644 --- a/public-frontend/index.html +++ b/public-frontend/index.html @@ -3,7 +3,18 @@ - 天工商品档案公共仓 + + + 天工 · 商品档案公共仓 + + +
diff --git a/public-frontend/src/App.tsx b/public-frontend/src/App.tsx index dfb27db..764db53 100644 --- a/public-frontend/src/App.tsx +++ b/public-frontend/src/App.tsx @@ -14,6 +14,13 @@ type View = | { name: "api" } | { name: "account" }; +const NAV: { key: View["name"]; label: string; icon: typeof Search }[] = [ + { key: "home", label: "检索", icon: Search }, + { key: "contribute", label: "贡献档案", icon: PlusCircle }, + { key: "api", label: "API", icon: Code2 }, + { key: "account", label: "API 密钥", icon: KeyRound }, +]; + export default function App() { const [view, setView] = useState({ name: "home" }); const [qualified, setQualified] = useState(null); @@ -27,53 +34,46 @@ export default function App() { return (
-
-
+
+
-
-
+
{view.name === "home" && ( setView({ name: "product", id })} @@ -91,22 +91,27 @@ export default function App() { {view.name === "account" && }
-