SPB Git

Repository Public

Header.tsx 1.2 KB 28 lines tsx

1import Link from "next/link";2import { dict, href, type Locale } from "@/lib/i18n";3import { Logo } from "./Logo";4import { LangSwitch } from "./LangSwitch";5import { NavLinks } from "./NavLinks";67/** En-tête : compact sur téléphone (logo + langue ; la navigation est dans la barre d'onglets), complet à partir de 768 px. */8export function Header({ locale }: { locale: Locale }) {9  const t = dict(locale);10  return (11    <header className="site-header">12      <div className="shell flex h-full items-center justify-between gap-3">13        <Link href={href(locale, "/")} aria-label={`SP CLIP — clip.spboucher.ai, ${t.nav.home}`} className="inline-flex min-h-11 items-center rounded-xl">14          <Logo />15        </Link>16        <nav aria-label={t.nav.main} className="flex items-center gap-1">17          <NavLinks items={[18            { href: href(locale, "/feed"), label: t.nav.feed, icon: "feed" },19            { href: href(locale, "/search"), label: t.nav.catalog },20            { href: href(locale, "/about"), label: t.nav.about },21          ]} />22          <LangSwitch locale={locale} label={t.nav.switchLang} title={t.nav.switchLangLabel} />23        </nav>24      </div>25    </header>26  );27}28
Files main
Menu

Theme