Skip to content

Commit c9bf9c8

Browse files
committed
refactor(header): 更新顶部导航以对齐当前信息架构
- 去掉"首页":BrandMark 点击已回首页,避免冗余 - 去掉"特点":旧 Features 组件 2026-04 重构时删除,/#features 已失效 - 新增"文档"→ /docs 和"排行榜"→ /rank,把主要产品路由提到顶 - 保留"社区"→ /#community(DispatchNetwork bar) - "联系我们"缩写为"联系"→ /#contact(Footer 还在)
1 parent ba3bc64 commit c9bf9c8

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

app/components/Header.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,32 @@ export function Header() {
3030
</div>
3131

3232
<div className="flex items-center justify-between h-10">
33+
{/*
34+
导航对齐当前信息架构(2026-04 重构后):
35+
- 去掉"首页":左上角 BrandMark 已经是回首页入口,避免冗余
36+
- 去掉"特点":Features 组件已经删除,旧的 /#features 锚点不存在
37+
- 文档 / 排行榜:站点两大主路由,提到顶
38+
- 社区:保留 /#community 锚点(指向首页底部 DispatchNetwork 的 GitHub/Discord/Zotero bar)
39+
- 联系:缩写自"联系我们",/#contact 还在 Footer 里
40+
*/}
3341
<nav className="hidden md:flex items-center gap-8 font-sans text-xs font-bold uppercase tracking-widest text-[var(--foreground)]">
3442
<Link
35-
href="/"
43+
href="/docs"
3644
className="hover:text-[#CC0000] transition-colors"
3745
data-umami-event="navigation_click"
3846
data-umami-event-region="header"
39-
data-umami-event-label="home"
47+
data-umami-event-label="docs"
4048
>
41-
首页
49+
文档
4250
</Link>
4351
<Link
44-
href="/#features"
52+
href="/rank"
4553
className="hover:text-[#CC0000] transition-colors"
4654
data-umami-event="navigation_click"
4755
data-umami-event-region="header"
48-
data-umami-event-label="features"
56+
data-umami-event-label="rank"
4957
>
50-
特点
58+
排行榜
5159
</Link>
5260
<Link
5361
href="/#community"
@@ -65,7 +73,7 @@ export function Header() {
6573
data-umami-event-region="header"
6674
data-umami-event-label="contact"
6775
>
68-
联系我们
76+
联系
6977
</Link>
7078
</nav>
7179

0 commit comments

Comments
 (0)