Headers & navigation / Headers & nav bars

Hairline Minimal Header

Three-part bar with a small hexagonal logo mark on the left, a tracked-out uppercase tagline centred, and an outlined language pill plus hamburger on the right; a full-width 1px black rule underneath.

Rebuilt from epic.net in the Gallery Graphite Editorial style.

npx shadcn@latest add https://justyoink.it/r/gallery-graphite-editorial/blocks/hairline-header.json

Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: tagline, language (default selected), languages (dropdown options), links (full menu items). The hamburger toggles a full-width menu panel and the language pill opens a small dropdown.

components/hairline-header.tsx
import { useState } from "react";

export default function HairlineMinimalHeader({
  tagline = "Sketch, craft, share.",
  language = "EN",
  languages = ["EN", "FR", "DE"],
  links = ["Studio", "Work", "Journal", "Contact"],
}: {
  tagline?: string;
  language?: string;
  languages?: string[];
  links?: string[];
}) {
  const [open, setOpen] = useState(false);
  const [langOpen, setLangOpen] = useState(false);
  const [lang, setLang] = useState(language);

  return (
    <header className="relative bg-canvas text-ink font-sans">
      <div className="mx-auto flex h-[101px] max-w-[1200px] items-center justify-between px-4 sm:px-0">
        <a href="#" aria-label="Home" className="focus-visible:outline focus-visible:outline-2 focus-visible:outline-ink">
          <svg width="28" height="32" viewBox="0 0 28 32" fill="currentColor" aria-hidden="true">
            <path d="M14 0l13 7.5v17L14 32 1 24.5v-17L14 0z" />
            <path d="M7 12l7 4 7-4v8l-7 4-7-4z" className="fill-canvas" />
          </svg>
        </a>
        <p className="hidden sm:block text-label uppercase tracking-[0.35em] text-[11px] animate-[fadeIn_350ms_cubic-bezier(0.42,0,0.58,1)_both]">
          {tagline}
        </p>
        <div className="flex items-center gap-5">
          <div className="relative">
            <button
              type="button"
              aria-haspopup="listbox"
              aria-expanded={langOpen}
              onClick={() => setLangOpen(!langOpen)}
              className="flex h-[31px] items-center gap-1.5 rounded-pill border border-ink px-3 text-[13px] font-medium transition-colors duration-200 hover:bg-ink hover:text-on-ink focus-visible:outline focus-visible:outline-2 focus-visible:outline-ink"
            >
              {lang}
              <svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" strokeWidth="1.5" aria-hidden="true"><path d="M2 4l4 4 4-4" /></svg>
            </button>
            {langOpen && (
              <ul role="listbox" className="absolute right-0 top-full z-20 mt-2 min-w-full border border-ink bg-canvas">
                {languages.map((l) => (
                  <li key={l}>
                    <button
                      type="button"
                      onClick={() => { setLang(l); setLangOpen(false); }}
                      className="w-full px-3 py-1.5 text-left text-[13px] hover:bg-ink hover:text-on-ink"
                    >
                      {l}
                    </button>
                  </li>
                ))}
              </ul>
            )}
          </div>
          <button
            type="button"
            aria-label={open ? "Close menu" : "Open menu"}
            aria-expanded={open}
            onClick={() => setOpen(!open)}
            className="flex h-8 w-8 items-center justify-center focus-visible:outline focus-visible:outline-2 focus-visible:outline-ink"
          >
            <svg width="18" height="14" viewBox="0 0 18 14" stroke="currentColor" strokeWidth="2" aria-hidden="true">
              {open ? <path d="M2 1l14 12M16 1L2 13" /> : <path d="M0 2h18M0 12h18" />}
            </svg>
          </button>
        </div>
      </div>
      <div className="mx-auto h-px max-w-[1200px] bg-ink" />
      {open && (
        <nav aria-label="Main" className="absolute inset-x-0 top-full z-10 bg-canvas animate-popup-in">
          <ul className="mx-auto max-w-[1200px] border-b border-ink px-4 py-8 sm:px-0">
            {links.map((l) => (
              <li key={l}>
                <a href="#" className="block py-2 font-display text-display hover:italic focus-visible:outline focus-visible:outline-2 focus-visible:outline-ink">
                  {l}
                </a>
              </li>
            ))}
          </ul>
        </nav>
      )}
      <style>{`@keyframes fadeIn{from{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){p{animation:none!important}}`}</style>
    </header>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery Graphite Editorial

The whole style →

Outlined Arrow Pill Button

Buttons

Square Outline Cookie Panel

Toasts & snackbars

Rounded Showreel Video Frame

Media & mockups

Line-Art Blueprint Illustration

Animated graphics

Tracked Micro Label

Badges & tags

Floating Object Project Hero

Heroes