feat: 添加 AboutMedia 组件,替换签名部分并实现图层映射功能;新增 ImageLayers 组件以支持 WebGL 图像层

This commit is contained in:
2026-09-01 01:09:46 +08:00
parent 4599a49879
commit 91ba27ffc0
5 changed files with 560 additions and 5 deletions
+27
View File
@@ -0,0 +1,27 @@
"use client";
import SvgSignature from "@/components/dom/SvgSignature";
import { imageLayerTargets } from "@/lib/imageLayers";
/**
* About-section left cell — exact original markup:
* <div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2">
* <SvgSignature className="-top-1/32 -left-1/12 absolute w-3/4 pointer-events-none" />
* <div ref={n} className="aspect-square" />
* </div>
* The aspect-square div is the tracked target ("about" layer) that the
* WebGL image layer projects /img/m3.png onto.
*/
export default function AboutMedia() {
return (
<div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2">
<SvgSignature className="-top-1/32 -left-1/12 absolute w-3/4 pointer-events-none" />
<div
ref={(el) => {
imageLayerTargets.about.current = el;
}}
className="aspect-square"
/>
</div>
);
}