6b1f329231
- HyperspaceModel.tsx:1:1 移植原站 cx——cursor.glb 合并几何、屏幕矩形追踪(12 帧缓存+滚动增量修正)、restScale 0.1→峰值 hypot(vw,vh)×1.64/radius 的吞噬缩放(damp 32/s)、shrink 折叠、条纹 shader(uStripeReveal 蓝底→黑底星空放射)、scaleSpinDegrees 180 收拢自旋、指针跟随高光 - HyperSpaceSection.tsx:8 视口高 + sticky,段位推进 seg0-primary/secondary(Innovate with purpose / human touch)→ seg1(进度环 + 四段主张)→ end(FUTURE-FIRST/ALWAYS);逐字符哈希延迟 stagger(hsstFadeIn/Out) - arrowFullscreen.ts:原站 module 1111 进度 store(setDampedScaleT 阈值翻转订阅,header 0.5 阈值白模式、section 0.5 白模式同步) - Header:箭头过阈值后整体转白(ARROW_FULLSCREEN_DOM_COLOR_TRANSITION) - 修复:main 不再是滚动容器(原站 sticky 依赖内部滚动,我们的 Lenis 是窗口级,sticky 永不钉住导致末段文案不出现) - scrollBus 增加 subscribeScroll/notifyScroll 供 DOM 侧响应式读取;useLightController 从 GlassModels 导出复用 - 验证:glError=0 无反馈环;段位推进/白模式触发与回落/区块顺序 全部 CDP 行为探针通过;build+tsc 通过
125 lines
5.8 KiB
TypeScript
125 lines
5.8 KiB
TypeScript
import ScrambleReveal from "@/components/dom/ScrambleReveal";
|
||
import AboutMedia from "@/components/dom/AboutMedia";
|
||
import FooterSection from "@/components/dom/FooterSection";
|
||
import WorkSection from "@/components/dom/WorkSection";
|
||
import HyperSpaceSection from "@/components/dom/HyperSpaceSection";
|
||
|
||
/**
|
||
* 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 (
|
||
// NOTE: the original scrolls INSIDE <main> (its Lenis wraps the main
|
||
// container), which is what lets its position:sticky children pin. Our
|
||
// Lenis is window-level, so main must NOT be a scroll container —
|
||
// otherwise sticky (hyper-space section) never pins.
|
||
<main className="w-full">
|
||
<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 />
|
||
|
||
{/* Hyper-space scroll section (id="hyper-space"): the WebGL
|
||
hyperspace arrow (cursor.glb stripes) tracks this section's
|
||
screen rect and engulfs the viewport mid-scroll. */}
|
||
<HyperSpaceSection />
|
||
|
||
{/* Contact / Footer Section (#contact, data-section="footer") */}
|
||
<FooterSection />
|
||
</div>
|
||
</main>
|
||
);
|
||
}
|