Skip to content
Myr

footer.tsx

This file

Path

apps/web/src/features/shared/shell/footer.tsx

52 lines · 1.5 KiB · TypeScript

Last changed by

Merge redesign into mainoscabrielbefore adoptioncaedd21

History of this file

Take it

Merge redesign into mainoscabrielbefore adoptioncaedd21

lines 1–52why, one step back
1import { Brand } from "@repo/brand";
23import { AppLink } from "../link.tsx";4import {5 docsPath,6 INSTALL_PATH,7 PRIVACY_PATH,8 SETTINGS_PATH,9 TERMS_PATH,10} from "../paths.ts";11import { GUTTER } from "./gutter.ts";1213const LINKS = [14 { label: "Docs", to: docsPath() },15 { label: "Install", to: INSTALL_PATH },16 { label: "Settings", to: SETTINGS_PATH },17 { label: "Privacy", to: PRIVACY_PATH },18 { label: "Terms", to: TERMS_PATH },19] as const;2021const LINK =22 "text-muted-foreground hover:text-foreground no-underline transition-colors duration-[120ms]";2324/**25 * The site's and the docs' foot: plain links, then the brand's domain as one26 * line of display type sized to the container (`cqi`), so it fills the27 * width at every size without wrapping. Upper case is the style's, so the28 * text stays the brand's own (the maintainer's overrides, 5).29 */30export const Footer = () => (31 <footer className="border-rule mt-16 border-t" data-footer="">32 <div33 className={`max-w-site @container mx-auto flex flex-col gap-8 pt-6 pb-4 ${GUTTER}`}34 >35 <ul className="text-ui flex flex-wrap gap-x-5 gap-y-2">36 {LINKS.map(({ label, to }) => (37 <li key={to}>38 <AppLink className={LINK} to={to}>39 {label}40 </AppLink>41 </li>42 ))}43 </ul>44 <p45 className="text-foreground text-[length:11.4cqi] leading-[0.9] font-semibold tracking-[-0.04em] whitespace-nowrap uppercase"46 data-domain=""47 >48 {Brand.domain}49 </p>50 </div>51 </footer>52);