import { A } from "@solidjs/router"; import { For } from "solid-js"; import { FiArrowUpRight, FiLinkedin } from "solid-icons/fi"; import Logo from "./Logo"; import { anchors, mailto, routes, site } from "~/config"; import { t } from "~/i18n"; export default function Footer() { // Icons keyed by the `site.social` account names, so the row below iterates // the config itself: an account added in `config.ts` fails the typecheck // until it gains an icon here, and a removed one vanishes from the footer // and from the JsonLd `sameAs` together — the list is never half-updated. const socialMeta = { linkedin: { label: "LinkedIn", icon: FiLinkedin }, } as const; const columns = [ { title: t.footer.sections.product, links: [ { label: t.nav.products, href: anchors.products }, { label: t.nav.platform, href: anchors.platform }, { label: t.nav.theory, href: routes.how }, { label: t.nav.roles, href: anchors.roles }, ], }, { title: t.footer.sections.company, links: [ { label: t.nav.problem, href: anchors.problem }, { label: t.nav.trust, href: anchors.trust }, { label: t.nav.audience, href: anchors.audience }, { label: t.nav.about, href: anchors.about }, { label: t.nav.faq, href: anchors.faq }, ], }, ]; const socials = (Object.keys(site.social) as (keyof typeof site.social)[]).map(key => ({ label: socialMeta[key].label, href: site.social[key], icon: socialMeta[key].icon, })); return ( ); }