diff --git a/app/layout.tsx b/app/layout.tsx index 908e0ee..6541ee2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,9 +4,12 @@ import "./globals.css"; import SmoothScroller from "@/components/dom/SmoothScroller"; import Header from "@/components/dom/Header"; import BackgroundGrid from "@/components/dom/BackgroundGrid"; +import CustomScrollbar from "@/components/dom/CustomScrollbar"; import LoadingOverlay from "@/components/dom/LoadingOverlay"; import { HeroScene } from "@/components/canvas/HeroScene"; import { PasscodeAccessProvider } from "@/components/dom/PasscodeAccess"; +import { FullscreenTransitionProvider } from "@/lib/routeTransition"; +import RouteTransitionOverlay from "@/components/dom/RouteTransitionOverlay"; import { getPasscodeAccessServer } from "@/lib/passcodeServer"; const tiktokSans = localFont({ @@ -39,15 +42,26 @@ export default async function RootLayout({ }>) { const initialAccess = await getPasscodeAccessServer(); return ( - + - - - -
- {children} - + + {/* Original stacking (1:1): the WebGL canvas host is a plain `fixed` + z-auto element first in the body; the grid overlay (z-20) comes + AFTER it in DOM order so it paints above the canvas, exactly like + the original's main > canvas + z-20 grid sibling. */} + + + +
+ {children} + + + + diff --git a/app/page.tsx b/app/page.tsx index caaf99c..ccde5a3 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -24,7 +24,7 @@ export default function Home() { 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" > -
+

@@ -39,7 +39,7 @@ export default function Home() {
@@ -49,7 +49,7 @@ export default function Home() {
{/* Signature / About Section */} -
+

+ *

+ *
+ *
h1 + date + hr + year
+ *
blocks
+ *
+ * + * Content comes from content/workArticles.ts (extracted from the live + * pages). Passcode-protected scopes (/2026) render the unlock screen when + * locked, exactly like the original. + */ +import { Suspense, useMemo } from "react"; +import Link from "next/link"; +import { useParams } from "next/navigation"; +import { + WORK_ARTICLES, + type ArticleBlock, + type InlineSeg, +} from "@/content/workArticles"; +import { usePasscodeAllowed } from "@/components/dom/PasscodeAccess"; +import { useRouteTransitionController } from "@/lib/routeTransition"; +import { PasscodeUnlockScreen } from "@/components/dom/PasscodeUnlockScreen"; +import { buildPasscodeUnlockHref, primaryPasscodePath, scopeToPath } from "@/lib/passcode"; +import CustomScrollbar from "@/components/dom/CustomScrollbar"; + +const PROSE_CLASS = + "[&_p+p]:mt-3 [&_p]:mb-0 text-l2 [&_p]:text-sm [&_p]:text-l1 [&_p]:leading-relaxed lg:[&_p]:text-base"; + +function Inline({ segs }: { segs: InlineSeg[] }) { + return ( + <> + {segs.map((s, i) => + s.t === "link" ? ( + + {s.v} + + ) : ( + {s.v} + ) + )} + + ); +} + +function Block({ block }: { block: ArticleBlock }) { + switch (block.type) { + case "p": + return ( +

+ +

+ ); + case "h2": + return

{block.text}

; + case "h3": + return

{block.text}

; + case "img": + // eslint-disable-next-line @next/next/no-img-element -- original uses plain img with cursor-zoom-in + return ( + + ); + case "hr": + return
; + case "list": + return block.ordered ? ( +
    + {block.items.map((li, i) => ( +
  1. + +
  2. + ))} +
+ ) : ( +
    + {block.items.map((li, i) => ( +
  • + +
  • + ))} +
+ ); + case "quote": + return ( +
+ {block.items.map((q, i) => ( +

+ {q} +

+ ))} +
+ ); + case "code": + return ( +
+          {block.text}
+        
+ ); + default: + return null; + } +} + +function Article({ slug }: { slug: string }) { + const article = WORK_ARTICLES[slug]; + if (!article) { + return ( +
+
+
+
+

+ 404 +

+

+ No article for this work yet. +

+
+

+ + ← Home + +

+
+
+
+
+ ); + } + return ( +
+
+
+
+

+ {article.title} +

+

+ {article.date} +

+
+

+ {article.year} +

+
+
+ {article.blocks.map((b, i) => ( + + ))} + {article.iframe && ( +