Repository navigation
nav 顶栏改版:整条毛玻璃 + 移除分类锚点栏 + 标题移入顶栏 - #25
Merged
Merged
Conversation
header 改用 glass-bar(复用玻璃 token:半透明底 + blur + 底边分隔线,全宽、内容仍居中); 删除 CategoryAnchorBar 及其死代码;标题(含 Logo 变体)移入顶栏并保留 h1 语义, 搜索区大标题删除、搜索框随之上移;补 2 条顶栏回归测试并同步 README / 设计规范描述。 Checkpoint: 6-odGmwVkA2y8_s5CaACI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
h1语义,搜索区上方的大标题删除,搜索框随之上移。Changes
web/src/index.css— 新增.glass-bar:复用现有--glass-*token 做半透明底 +backdrop-blur,只留底边 1px 分隔线(无圆角、无四边框),适配全宽顶栏。web/src/components/public-page.tsx—header改用glass-bar并固定 56px 栏高,内容仍居中max-w-7xl;左侧新增h1标题:logoUrl有值时渲染 32px 高 Logo(max-w-[200px]),否则渲染siteTitle,超长标题截断;移除CategoryAnchorBar与搜索区大标题,搜索框随之上移。web/src/components/link-grid.tsx— 删除CategoryAnchorBar组件及不再使用的React/cn引入;CategorySection与链接网格未动。web/test/public-page.test.tsx— 新增 2 条回归测试:标题位于header内且顶栏带毛玻璃类名;不再渲染分类锚点导航、分类区块与链接照旧。README.md/web/design-system/nav/MASTER.md— 同步页面结构描述,去掉「分类锚点栏」。.github/assets/imgs/home.webp)仍是改动前的界面,本 PR 未重新生成该截图。Testing
pnpm lint、pnpm format:check、pnpm typecheck、pnpm build、pnpm test全部通过:worker 115 条 + 前端 78 条测试通过(lint 仅剩 27 条components/ui既有 warning,无 error)。