feat: 移植 Selected Work 区块(10 个作品卡片 + WebGL 图像层注册表),修复 canvas 吞掉 DOM 悬停
- WorkSection.tsx:1:1 还原原站 work 区块(selected-work 网格、rowGap=clientWidth/12、纵横比缓存、Coding Project 徽章、元数据行、外链/内链卡片) - workItems.ts:从 d59f7a97 数据文件提取的 10 个作品条目(passcode 保护的 /2026 TikTok 条目按原站默认过滤) - imageLayers.ts:重构为注册表(defs/targets/订阅版本号),ImageLayers 通过 useSyncExternalStore 响应 DOM 卡片注册 - HeroScene:Canvas 容器强制 pointer-events:none,指针跟踪全部走窗口级,避免吞掉 work 卡片悬停 - Header:Work 按钮滚动至 selected-work
This commit is contained in:
@@ -194,7 +194,7 @@ export default function Header() {
|
||||
<button
|
||||
type="button"
|
||||
className={`${dotted} p-2 uppercase cursor-pointer`}
|
||||
onClick={() => scrollEnv.scrollToSection('[data-section="about"]')}
|
||||
onClick={() => scrollEnv.scrollToSection("#selected-work")}
|
||||
>
|
||||
<ScrambleReveal text="Work" startDelayMs={300} scrambleColors={false} />
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user