From 2a372fdec256b8be890e181c221c2a012ead9efa Mon Sep 17 00:00:00 2001 From: cashmere Date: Mon, 27 Jul 2026 01:21:02 +0200 Subject: refactor: strip landing page and upstream branding / redirects to /projects; marketing landing components, the feedback popover + API route, and all Discord links removed (editor header, footer, onboarding copy). --- apps/web/src/components/footer.tsx | 53 +++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 27 deletions(-) (limited to 'apps/web/src/components/footer.tsx') diff --git a/apps/web/src/components/footer.tsx b/apps/web/src/components/footer.tsx index b56f8c6c..e7a8fc39 100644 --- a/apps/web/src/components/footer.tsx +++ b/apps/web/src/components/footer.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import { RiDiscordFill, RiTwitterXLine } from "react-icons/ri"; +import { RiTwitterXLine } from "react-icons/ri"; import { FaGithub } from "react-icons/fa6"; import Image from "next/image"; import { DEFAULT_LOGO_URL } from "@/site/brand"; @@ -13,23 +13,30 @@ interface FooterLink { href: string; } -type CategoryLinks = Record; +interface LinkCategory { + category: Category; + links: FooterLink[]; +} -const links: CategoryLinks = { - resources: [ - { label: "Roadmap", href: "/roadmap" }, - { label: "Changelog", href: "/changelog" }, - { label: "Blog", href: "/blog" }, - { label: "Privacy", href: "/privacy" }, - { label: "Terms of use", href: "/terms" }, - ], - company: [ - { label: "Contributors", href: "/contributors" }, - { label: "Sponsors", href: "/sponsors" }, - { label: "Brand", href: "/brand" }, - { label: "About", href: `${SOCIAL_LINKS.github}/blob/main/README.md` }, - ], -}; +const linkCategories: LinkCategory[] = [ + { + category: "resources", + links: [ + { label: "Roadmap", href: "/roadmap" }, + { label: "Privacy", href: "/privacy" }, + { label: "Terms of use", href: "/terms" }, + ], + }, + { + category: "company", + links: [ + { label: "Contributors", href: "/contributors" }, + { label: "Sponsors", href: "/sponsors" }, + { label: "Brand", href: "/brand" }, + { label: "About", href: `${SOCIAL_LINKS.github}/blob/main/README.md` }, + ], + }, +]; export function Footer() { return ( @@ -68,25 +75,17 @@ export function Footer() { > - - -
- {(Object.keys(links) as Category[]).map((category) => ( + {linkCategories.map(({ category, links: categoryLinks }) => (

{capitalizeFirstLetter({ string: category })}

    - {links[category].map((link) => ( + {categoryLinks.map((link) => (