import { MARKETPLACE, REPO } from "../lib/links"; import { ThemeSwitch } from "./theme-switch"; interface FooterColumn { heading: string; links: { label: string; href: string; external?: boolean }[]; } const FOOTER: FooterColumn[] = [ { heading: "Documentation", links: [ { href: "/quickstart", label: "Quickstart" }, { href: "/reference", label: "Reference" }, { href: "/examples", label: "Examples" }, { href: "/behaviour", label: "Behaviour" }, { href: "/troubleshooting", label: "Troubleshooting" }, ], }, { heading: "Project", links: [ { external: true, href: REPO, label: "GitHub" }, { external: true, href: MARKETPLACE, label: "Marketplace" }, { external: true, href: "https://www.npmjs.com/package/@pungrumpy/cursor-action", label: "npm", }, { external: true, href: `${REPO}/releases`, label: "Releases" }, { external: true, href: `${REPO}/blob/main/CHANGELOG.md`, label: "Changelog", }, ], }, { heading: "Community", links: [ { external: true, href: `${REPO}/issues`, label: "Issues" }, { external: true, href: `${REPO}/blob/main/.github/CONTRIBUTING.md`, label: "Contributing", }, { external: true, href: `${REPO}/blob/main/.github/CODE_OF_CONDUCT.md`, label: "Code of conduct", }, { external: true, href: `${REPO}/issues/new?template=bug_report.md`, label: "Report a bug", }, { external: true, href: `${REPO}/issues/new?template=feature_request.md`, label: "Request a feature", }, ], }, { heading: "Credits", links: [ { external: true, href: "https://cursor.com", label: "Cursor" }, { external: true, href: "https://www.npmjs.com/package/@cursor/sdk", label: "@cursor/sdk", }, { external: true, href: "https://press.fumadocs.dev", label: "Fumapress", }, { external: true, href: "https://commons.wikimedia.org/wiki/File:Bierstadt-Alaskan_Coastal_Range.jpg", label: "Bierstadt painting", }, ], }, { heading: "Legal", links: [ { external: true, href: `${REPO}/blob/main/LICENSE`, label: "MIT licence", }, ], }, ]; /** * Their footer sits on the card surface and runs five link columns across the * container: headings in the secondary colour, links in the primary one, and * the external-link arrow hidden until hover so it is there when you reach for * the link and out of the way while you read. The bottom bar splits the * copyright from the appearance control. * * The gutter is on the container, not on the `