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"; import PasscodeRevealText from "@/components/dom/PasscodeRevealText"; import { PersonJsonLd } from "@/components/dom/PersonJsonLd"; import { getSiteConfig, listWorks } from "@/lib/siteConfig"; import type { WorkItem } from "@/lib/workItems"; /** * 首页 — 结构复刻原站(haoqi_body.html),文案全部来自 site_config *(/virtheart 后台「配置」可改,保存即生效);作品来自 works 表。 */ export default async function Home() { const config = getSiteConfig(); const items: WorkItem[] = listWorks(true) .filter((w) => w.name && (w.image_url || w.href)) .map((w) => ({ name: w.name, imageUrl: w.image_url, hoverImageUrl: w.hover_image_url, href: w.href || `/work/${w.slug}`, year: w.year, type: w.type, gridClass: w.grid_class || "col-span-12 lg:col-span-6 xl:col-span-4", codingProject: w.coding_project === 1, passcodeProtected: w.passcode_protected === 1, })); return ( // NOTE: the original scrolls INSIDE
(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.
{/* 结构化数据:个人实体(SEO 富结果) */}
{/* Banner Section */}

{/* Signature / About Section */}

{config.about_p1}

{config.about_p2} {config.about_p2_link_label} {config.about_p2.endsWith(";") || config.about_p2.endsWith(",") ? "里记录了这些探索的痕迹。" : ""}

{/* Selected Work grid (id="selected-work", WebGL image layers) */} {/* 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. */} {/* Contact / Footer Section (#contact, data-section="footer") */}
); }