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:
@@ -1,6 +1,7 @@
|
||||
import ScrambleReveal from "@/components/dom/ScrambleReveal";
|
||||
import AboutMedia from "@/components/dom/AboutMedia";
|
||||
import FooterSection from "@/components/dom/FooterSection";
|
||||
import WorkSection from "@/components/dom/WorkSection";
|
||||
|
||||
/**
|
||||
* Page content matching the original DOM (haoqi_body.html):
|
||||
@@ -102,6 +103,9 @@ export default function Home() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Selected Work grid (id="selected-work", WebGL image layers) */}
|
||||
<WorkSection />
|
||||
|
||||
{/* Contact / Footer Section (#contact, data-section="footer") */}
|
||||
<FooterSection />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user