Repository navigation
docs: 官网改为深色科技风并加入 GSAP 动画 - #3
Merged
Merged
Conversation
- 配色改为近黑底 + 紫青渐变,默认深色,浅色仍可切换;token 全部通过 WCAG AA 检查 - 样式重做:玻璃质感卡片、首屏极光与网格背景、渐变标题、终端窗口栏、鼠标跟随高光 - 新增 js/motion.js:Lenis 平滑滚动、首屏逐行/逐字入场、插画分层拼装与连线流动、 滚动入场、条形图生长与数字滚动、终端逐行打出、卡片 3D 倾斜、按钮磁吸、导航滑块、 阅读进度条、页眉滚动收起、页脚大字标 - 主题切换用 View Transitions 圆形展开;同站跳转加跨页面转场 - GSAP 3.15.1 与 Lenis 1.3.27 放在 docs/js/vendor 本地加载,由 sync_docs_chrome.py 写入各页 - 无脚本、脚本加载失败、减少动态效果时都退回静态页面,内容不会被藏住 - check_design_layer.py 放宽为:@Keyframes 内与白名单里的装饰伪元素可以用 opacity, 静态内容仍然不允许 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdLhesahBsuQSbGntwoQFN
JiTianYu391
pushed a commit
that referenced
this pull request
Nov 8, 2026
…his branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdLhesahBsuQSbGntwoQFN
This was referenced Nov 8, 2026
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.
改了什么
把
docs/官网 11 个页面的视觉整体改成深色科技风,并加入一套滚动和交互动画。样式
check_tokens_contrast.py)动画(新文件
docs/js/motion.js,基于 GSAP + ScrollTrigger + SplitText + Lenis)依赖
docs/js/vendor/本地加载,不依赖 CDN;版本与许可见docs/js/vendor/README.md(GSAP 为其 Standard "No Charge" License,Lenis 为 MIT)tools/sync_docs_chrome.py新增VENDOR_SCRIPTS,统一写入各页页脚CI 规则调整
tools/checks/check_design_layer.py:@keyframes内和白名单中的装饰伪元素(.spot高光)可以使用opacity;静态内容使用透明度仍然会被拦下兜底
验证
check_tokens_contrast.py、check_design_layer.py、check_docs_html.py、check_ota_manifest.py、sync_docs_chrome.py --check、ruff check tools/全部通过Generated by Claude Code