kitbash Sign in Connect agent
Components

Masthead

The wordmark drawn to the exact width of the page on white, then a violet band with one centred statement in small serif capitals and six region names in two columns of large ones. Region names turn white in hand and stack into one column on phones.

Part of the style

Violet Difference

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --paper: #f5f3f3;
  --ink: #1d0d07;
  --idle: #cac4c4;
  --tray: #e9e6e6;
  --plate: #9f9595;
  --violet: #a56e46;
}
</style>

<header class="masthead">
  <a class="masthead__wordmark" href="#" aria-label="Keldstone, home">
    <svg class="masthead__type" viewBox="6.9 0 602.4 73.1" preserveAspectRatio="none" aria-hidden="true" focusable="false">
      <text x="0" y="71.4" textLength="614.35" lengthAdjust="spacingAndGlyphs">KELDSTONE</text>
    </svg>
  </a>

  <div class="masthead__band">
    <p class="masthead__statement">Every quarry we carry is worked by fewer than twelve people, cut by wire and wedge, and run by someone who can name each bed in the&nbsp;face.</p>
    <ul class="masthead__regions" aria-label="Where the stone comes from">
      <li><a class="masthead__region" href="#">Alentejo</a></li>
      <li><a class="masthead__region" href="#">Brittany</a></li>
      <li><a class="masthead__region" href="#">Connemara</a></li>
      <li><a class="masthead__region" href="#">Galicia</a></li>
      <li><a class="masthead__region" href="#">Pembrokeshire</a></li>
      <li><a class="masthead__region" href="#">Trás-os-Montes</a></li>
    </ul>
  </div>
</header>

<style>
  .masthead {
    background: var(--paper);
  }

  /* The wordmark is drawn at 100px in a box exactly as big as its ink, then pulled to the full width of the page. */
  .masthead__wordmark {
    display: block;
    padding: var(--gutter);
    color: var(--ink);
  }
  .masthead__type {
    display: block;
    width: 100%;
    aspect-ratio: 602.4 / 73.1;
    fill: currentColor;
    font: 800 100px var(--font-mark);
  }
  .masthead__wordmark:focus-visible {
    outline: var(--flag) solid var(--violet);
    outline-offset: calc(-1 * var(--flag));
  }

  .masthead__band {
    padding: var(--space-l) var(--gutter);
    background: var(--violet);
    font-family: var(--font-caps);
    line-height: var(--leading-caps);
    text-align: center;
    text-transform: uppercase;
  }
  .masthead__statement {
    max-width: 71rem;
    margin: 0 auto var(--space-l);
    font-size: var(--caps-s);
    text-wrap: balance;
  }
  .masthead__regions {
    display: grid;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--caps-xl);
  }
  .masthead__region {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--ink);
    text-decoration: none;
    transition: color var(--time) var(--ease);
  }
  .masthead__region:hover,
  .masthead__region:focus-visible {
    color: var(--paper);
    outline: none;
  }

  @media (max-width: 48rem) {
    .masthead__regions {
      display: block;
    }
    .masthead__region {
      padding: var(--space-s) 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .masthead__region {
      transition-duration: 0s;
    }
  }
</style>

Similar components

Masthead

Masthead

Masthead

Masthead

Colour bar menu

Colour bar menu

Grid masthead

Grid masthead

Corner masthead

Corner masthead

Dark top bar

Dark top bar

Slip rail masthead

Slip rail masthead

Corner nav with stepped panels

Corner nav with stepped panels