Files
personal/app/page.tsx
T
virtheart 744ec0becc 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.
2026-08-31 23:39:58 +08:00

105 lines
4.9 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";
/**
* 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 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">
<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
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>
</div>
</main>
);
}