--- /** * Off the star chart. Renders even when the content service is down: the * only data it reads (an optional Page text note for /404) is wrapped. */ import Button from "@gk/ui/components/Button.astro"; import PageShell from "@gk/ui/components/PageShell.astro"; import Seal from "@gk/ui/components/Seal.astro"; import Star from "@gk/ui/components/Star.astro"; import StarPath from "@gk/ui/components/StarPath.astro"; import TickScale from "@gk/ui/components/TickScale.astro"; import { site } from "../lib/page.ts"; Astro.response.status = 404; let lede = "This page isn't here. It may have moved when the site was rebuilt."; let timer: ReturnType | undefined; try { const s = await Promise.race([site(), new Promise((_, reject) => (timer = setTimeout(() => reject(new Error("timeout")), 2000)))]); lede = s.pageText("/404")?.data.lede ?? lede; } catch { // The content service is unreachable; the page needs nothing from it. } finally { clearTimeout(timer); } const groups = [ { id: "nf-work", label: "Work with me", links: [["Resume", "/resume"], ["Work", "/work"], ["Inquiries", "/inquiries"]] }, { id: "nf-world", label: "My world", links: [["Library", "/library"], ["Workshop", "/workshop"], ["Tabletop", "/tabletop"], ["Now", "/now"]] }, { id: "nf-also", label: "Also", links: [["Blog", "/blog"], ["Store", "/store"], ["About", "/about"]] }, ]; ---
404 ยท Page not found

Off the star chart

{lede}