Skip to content

Patterns

Site header

Visitors need to know whose site this is, where the work is, whether the person is available and how to switch language, without a busy header competing with the hero.

Reference build

Live, built only from system components. Switch the width: the build uses its own breakpoints.

Rules

  1. Use Nav with five destinations at most: the three sections, the AI fit check and the CV. The fit check and CV are the next steps of the whole site, so they live here and not in the hero.
  2. Links that leave the site (design system, LinkedIn) go in actions, marked as external.
  3. Put availability (StatusDot with a label) and the LanguageSwitch in actions, in that order.
  4. Write the brand as the wordmark with the terracotta bullet; give the brand link an accessible name with “home”.
  5. Keep labels to one word where possible and match the section headings they lead to.
  6. Below the container width the destinations move into the menu; availability shows only where the bar has room for it beside all five, and the language switch stays visible.

Layout and states

What every build of this pattern must hold to. The check runs the required states on the reference build.
Layout
One row: brand, destinations, then actions (gap-inline).
Small screens: navigate
Below the Nav break the destinations move into a menu; brand and actions stay.
Required states
StateProves
menu-openBelow the Nav break the destinations open from the menu button.

Code

src/patterns/site-header/Example.tsx
import { LanguageSwitch, Nav, StatusDot } from "@/ds";

export function Example() {
  return (
    <Nav
      label="Portfolio"
      brand={
        <>
          free<span className="text-accent">•</span>lenz
        </>
      }
      brandLabel="free•lenz, home"
      brandHref="#top"
      current="#work"
      items={[
        { label: "Work", href: "#work" },
        { label: "About", href: "#about" },
        { label: "Contact", href: "#contact" },
        { label: "AI fit check", href: "#fit-check" },
        { label: "CV", href: "#cv" },
      ]}
      actions={
        <div className="flex items-center gap-inline">
          {/* Same breakpoint as the Nav's own menu: availability shows when the destinations do. */}
          <span className="hidden @2xl:inline-flex">
            <StatusDot tone="positive" label="Available now" />
          </span>
          <LanguageSwitch
            defaultValue="en"
            options={[
              { value: "de", label: "DE", name: "Deutsch" },
              { value: "en", label: "EN", name: "English" },
            ]}
          />
        </div>
      }
    />
  );
}

Built from

Seen in: Portfolio navigation (S1): Work, About, Contact, AI fit check, CV, design system, availability, DE/EN (since 14.11.2026; spacing audit 15.11.2026, F01 and F22).