feat: add glass models with advanced refractive shader and integrate into hero scene

- Introduced GlassModels component with custom vertex and fragment shaders for realistic glass effects.
- Updated HeroScene to include HelloModel and CursorStar components, utilizing the new glass shader.
- Enhanced Header component with ScrambleReveal for dynamic text display and local clock functionality.
- Implemented useIsMobile hook to adapt rendering based on screen size.
- Adjusted StickerLayer to ensure falling stickers are captured in the glass models' FBO pass.
This commit is contained in:
2026-08-31 23:39:58 +08:00
parent 836239beca
commit 744ec0becc
8 changed files with 905 additions and 44 deletions
+83 -25
View File
@@ -1,42 +1,100 @@
import ScrambleReveal from "@/components/dom/ScrambleReveal";
/**
* 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>
{/* Hero Section */}
{/* Banner Section */}
<div 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">
Design &<br />Engineering
</span>
<span className="hidden lg:block lg:col-span-3 xl:col-span-2 lg:col-start-4 xl:col-start-5 p-2 text-balance">
Thinking in systems. Designing with care.
</span>
<span 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">
I'm Haoqi Wen, leading Design Engineering and AI exploration at
<span className="inline-flex items-baseline gap-[0.12em] mx-[0.06em] align-baseline cursor-pointer select-text mx-1">
■■■■■■
</span>
, engineering, and AI at scale. Outside work, I build design tools for team efficiency.
<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"
<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' }}
>
<span>I bring</span>
<span>craft & taste</span>
<span>to digital work</span>
<ScrambleReveal text="I bring" startDelayMs={300} />
<ScrambleReveal text="craft & taste" startDelayMs={500} />
<ScrambleReveal text="to digital work" startDelayMs={700} />
</div>
</div>
{/* About Section Placeholder */}
<div className="grid grid-cols-12 grid-rows-1 px-4 lg:px-14 py-24 w-full min-h-screen relative z-30">
<div className="col-span-12 lg:col-span-10 xl:col-span-8 lg:col-start-2 xl:col-start-3 flex flex-col justify-center font-medium text-[5svw] lg:text-[4svw] leading-snug">
<p className="mb-12">
I explore how to shape AI-era workflows with craft and taste, building the next generation of digital products.
{/* 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">
<div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2">
<div className="aspect-square" />
</div>
<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>
I’m building <a href="https://reunimos.cc/" target="_blank" rel="noreferrer" className="underline decoration-1 underline-offset-4 hover:opacity-70 transition-opacity">reunimos™</a>, and previously worked on Alibaba <a href="https://www.alipan.com/" target="_blank" rel="noreferrer" className="underline decoration-1 underline-offset-4 hover:opacity-70 transition-opacity">aDrive</a>, <a href="https://www.teambition.com/" target="_blank" rel="noreferrer" className="underline decoration-1 underline-offset-4 hover:opacity-70 transition-opacity">Teambition</a>, and 100offer.
<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-l3 transition-[text-decoration-color] duration-150 ease-out lg:hover:decoration-l1"
>
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-l3 transition-[text-decoration-color] duration-150 ease-out lg:hover:decoration-l1"
>
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-l3 transition-[text-decoration-color] duration-150 ease-out lg:hover:decoration-l1"
>
Teambition
</a>
, and 100offer.
</span>
</p>
</div>
</div>