Files
personal/app/page.tsx
T
virtheart eac0785cf6 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
2026-09-01 16:37:19 +08:00

115 lines
5.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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):
* - banner section (h-dvh) with meta row + big title, all scramble-revealed
* - signature/about section (kept simple)
*/
const PASSCODE_LENGTH = 6;
export default function Home() {
return (
<main className="w-full h-full overflow-y-auto overscroll-contain no-scrollbar">
<div>
{/* Banner Section */}
<div
data-section="banner"
className="grid grid-cols-12 grid-rows-[auto_1fr] px-4 lg:px-14 py-18 lg:py-24 w-full h-dvh lg:h-screen"
>
<div className="flex flex-col order-2 lg:order-1 lg:grid lg:grid-cols-12 col-span-12 font-mono text-base relative z-30">
<span className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-1 xl:col-start-1 p-2 font-sans font-medium text-[4svw] sm:text-2xl lg:text-3xl leading-tight">
<ScrambleReveal text="Design &" startDelayMs={300} letterDelayMs={10} />
<br />
<ScrambleReveal text="Engineering" startDelayMs={300} letterDelayMs={10} />
</span>
<ScrambleReveal
className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-4 xl:col-start-5 p-2 text-balance"
text="Thinking in systems. Designing with care."
startDelayMs={300}
letterDelayMs={10}
/>
<ScrambleReveal
className="col-span-12 lg:col-span-6 xl:col-span-4 lg:col-start-7 xl:col-start-9 mt-auto lg:mt-0 p-2"
startDelayMs={300}
letterDelayMs={10}
parts={[
"I'm Haoqi Wen, leading Design Engineering and AI exploration at ",
"■".repeat(PASSCODE_LENGTH),
", engineering, and AI at scale. Outside work, I build design tools for team efficiency.",
]}
/>
</div>
<div
className="flex flex-col self-end order-1 lg:order-2 col-span-12 px-2 font-bold text-[7.2svw] lg:text-[6svw] 2xl:text-[5svw] xl:text-[5.6svw] uppercase leading-none relative z-30"
style={{ fontVariationSettings: '"wdth" 120' }}
>
<ScrambleReveal text="I bring" startDelayMs={300} />
<ScrambleReveal text="craft & taste" startDelayMs={500} />
<ScrambleReveal text="to digital work" startDelayMs={700} />
</div>
</div>
{/* Signature / About Section */}
<div className="grid grid-cols-12 px-4 lg:px-14 py-18 lg:py-24 lg:pb-28 w-full relative z-30">
<AboutMedia />
<div className="flex flex-col justify-start items-start gap-6 col-span-12 sm:col-span-7 lg:col-span-8 sm:col-start-6 lg:col-start-5 text-base lg:text-xl leading-none">
<p
className="p-2 w-full text-l1 md:text-[4.2svw] text-xl leading-[1.3] md:leading-none select-text"
style={{ fontFamily: "var(--font-tiktok), sans-serif" }}
>
<span>
I explore how to shape AI-era workflows with craft and taste,
building the next generation of digital products.
</span>
</p>
<p
className="p-2 w-full text-l2 md:text-[4.2svw] text-xl leading-[1.3] md:leading-none select-text"
style={{ fontFamily: "var(--font-tiktok), sans-serif" }}
>
<span>
I’m building{" "}
<a
href="https://reunimos.cc"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
reunimos™
</a>
, and previously worked on Alibaba{" "}
<a
href="https://www.alipan.com/"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
aDrive
</a>
,{" "}
<a
href="https://www.teambition.com/"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
Teambition
</a>
, and 100offer.
</span>
</p>
</div>
</div>
{/* Selected Work grid (id="selected-work", WebGL image layers) */}
<WorkSection />
{/* Contact / Footer Section (#contact, data-section="footer") */}
<FooterSection />
</div>
</main>
);
}