--- /** Cards linking to every guide plus the main reference sections. */ import { concepts, guides, startHere, type DocPage } from "../../data/pages"; import { methods } from "../../data/methods"; import { guideIcons, svg } from "../icons"; const base = import.meta.env.BASE_URL.replace(/\/$/, ""); const card = (page: DocPage) => ({ ...page, href: `${base}/${page.slug}/` }); const cards = [ ...startHere.map(card), { title: "Methods", blurb: `All ${methods.length} methods and helpers, with live previews.`, color: "var(--jp-yellow)", icon: "api", href: `${base}/methods/`, }, { title: "Concepts", blurb: "Pixels, formats, compositing, text, errors and TypeScript.", color: "var(--jp-mint)", icon: "pixels", href: `${base}/${concepts[0]!.slug}/`, }, ...guides.map(card), { title: "Type reference", blurb: "Generated from the source: every export and its types.", color: "#c9a8ff", icon: "ts", href: `${base}/api/readme/`, }, { title: "Releases", blurb: "What changed in each version, on GitHub.", color: "var(--jp-orange)", icon: "migrate", href: "https://github.com/jimp-dev/jimp/releases", }, ]; ---