28 lines
910 B
TypeScript
28 lines
910 B
TypeScript
"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>
|
|
);
|
|
}
|