实现贴纸粒子系统,添加 HeroScene 组件,优化 Next.js 配置,更新依赖

This commit is contained in:
2026-08-31 22:06:36 +08:00
parent 77b928c442
commit 836239beca
9 changed files with 756 additions and 3 deletions
+2
View File
@@ -4,6 +4,7 @@ import "./globals.css";
import SmoothScroller from "@/components/dom/SmoothScroller";
import Header from "@/components/dom/Header";
import BackgroundGrid from "@/components/dom/BackgroundGrid";
import { HeroScene } from "@/components/canvas/HeroScene";
const tiktokSans = localFont({
src: "./fonts/TikTokSans.ttf",
@@ -37,6 +38,7 @@ export default function RootLayout({
<html lang="en" className={`${tiktokSans.variable} ${geistMono.variable} ${departureMono.variable}`}>
<body className="min-h-screen relative">
<BackgroundGrid />
<HeroScene />
<SmoothScroller />
<Header />
{children}
+14 -2
View File
@@ -4,7 +4,7 @@ export default function Home() {
<div>
{/* Hero 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">
<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>
@@ -20,7 +20,7 @@ export default function Home() {
</span>
</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"
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>
@@ -28,6 +28,18 @@ export default function Home() {
<span>to digital work</span>
</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.
</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>
</div>
</div>
</div>
</main>
);