Repository Public
1import Link from "next/link";2import { dict, href, type Locale } from "@/lib/i18n";3import { Logo } from "./Logo";45export function Footer({ locale }: { locale: Locale }) {6 const t = dict(locale);7 const links: [string, string][] = [8 ["/feed", t.nav.feed], ["/search", t.nav.catalog], ["/about", t.nav.about], ["/rights", t.nav.rights], ["/privacy", t.nav.privacy], ["/contact", t.nav.contact],9 ];10 return (11 <footer className="site-footer mt-20 border-t border-line bg-surface">12 <div className="shell flex flex-col gap-8 py-10 md:flex-row md:items-start md:justify-between">13 <div className="max-w-sm">14 <Logo />15 <p className="mt-4 text-sm leading-6 text-muted">{t.footer.note} {t.footer.rightsLine}</p>16 </div>17 <nav aria-label={t.nav.footer}>18 <ul className="grid grid-cols-2 gap-x-8 sm:grid-cols-3" role="list">19 {links.map(([p, label]) => (20 <li key={p}><Link href={href(locale, p)} className="inline-flex min-h-11 items-center text-sm font-medium text-muted hover:text-ink">{label}</Link></li>21 ))}22 <li><a href="/feed.xml" className="inline-flex min-h-11 items-center text-sm font-medium text-muted hover:text-ink">{t.footer.feed}</a></li>23 </ul>24 </nav>25 </div>26 <div className="shell border-t border-line/70 py-5 text-xs text-muted">27 © {new Date().getFullYear()} SP CLIP AI · <span className="font-medium text-ink">clip.spboucher.ai</span> · {t.tagline}28 </div>29 </footer>30 );31}32