kitbash Sign in Connect agent
Components

Spread nav with mascot

Four words pinned to the corners and quarters of the top row, with a drawn mascot in the centre that spins on hover.

Part of the style

Bulging Orb Index

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #1c0d06;
  --paper: #91816b;
  --ink-soft: #4e412f;
  --tile-grey: #675945;
  --tile-dark: #25140b;
  --pop: #978068;
  --pop-soft: #888077;
  --tile-sky: #978068;
}
</style>

<header class="nav">
  <nav class="nav__bar" aria-label="Main">
    <a class="nav__link nav__link--work" href="#">Work</a>
    <a class="nav__link nav__link--news" href="#">News</a>
    <a class="nav__home" href="#" aria-label="Puddle &amp; Pip, home">
      <svg class="nav__mascot" viewBox="0 0 64 64" aria-hidden="true">
        <path class="nav__sprout" d="M32 17 C29 9 35 3 43 5 C41 11 37 14 32 17 Z" />
        <path class="nav__stem" d="M32 18 L32 13" />
        <ellipse class="nav__body" cx="32" cy="38" rx="23" ry="20" />
        <ellipse class="nav__shine" cx="21" cy="28" rx="5" ry="3" transform="rotate(-30 21 28)" />
        <circle class="nav__eye" cx="24" cy="35" r="6.5" />
        <circle class="nav__eye" cx="41" cy="35" r="6.5" />
        <circle class="nav__pupil" cx="25.5" cy="36" r="3.2" />
        <circle class="nav__pupil" cx="42.5" cy="36" r="3.2" />
        <path class="nav__mouth" d="M26 45 Q33 54 40 45 Z" />
      </svg>
    </a>
    <a class="nav__link nav__link--info" href="#">Info</a>
    <a class="nav__link nav__link--contact" href="#">Contact</a>
  </nav>
</header>

<style>
  .nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 var(--edge);
    pointer-events: none;
  }
  .nav__bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr 1fr;
    align-items: start;
    column-gap: var(--gap);
  }
  .nav__link,
  .nav__home {
    pointer-events: auto;
  }
  .nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--tap);
    min-height: var(--tap);
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-underline-offset: 3px;
    text-decoration-thickness: var(--line);
  }
  .nav__link:hover,
  .nav__link:focus-visible {
    text-decoration-line: underline;
  }
  .nav__link:focus-visible,
  .nav__home:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 2px;
  }
  .nav__link--work,
  .nav__link--news {
    justify-self: start;
  }
  .nav__link--info,
  .nav__link--contact {
    justify-self: end;
  }
  .nav__home {
    display: block;
    width: 58px;
    height: 58px;
    margin-top: 8px;
    border-radius: var(--radius-round);
  }
  .nav__mascot {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .nav__home:hover .nav__mascot,
  .nav__home:focus-visible .nav__mascot {
    animation: nav-spin var(--spin) var(--ease-spin) 1;
  }
  .nav__body {
    fill: var(--tile-sky);
    stroke: var(--ink);
    stroke-width: 2.5;
  }
  .nav__shine {
    fill: var(--paper);
  }
  .nav__sprout {
    fill: var(--ink);
  }
  .nav__stem {
    stroke: var(--ink);
    stroke-width: 2.5;
    stroke-linecap: round;
  }
  .nav__eye {
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 2.2;
  }
  .nav__pupil {
    fill: var(--ink);
  }
  .nav__mouth {
    fill: var(--pop);
    stroke: var(--ink);
    stroke-width: 2.2;
    stroke-linejoin: round;
  }
  @keyframes nav-spin {
    to { transform: rotate(1turn); }
  }

  @media (max-width: 40rem) {
    .nav__link {
      font-size: var(--text-l);
    }
    .nav__home {
      width: 52px;
      height: 52px;
    }
  }
</style>

Similar components

Black bar and menu

Black bar and menu

Readout bar

Readout bar

Bottom bar

Bottom bar

Wordmark masthead

Wordmark masthead

Corner masthead

Corner masthead

Ruler bar and pill nav

Ruler bar and pill nav

Grid top bar

Grid top bar

Bar and opening line

Bar and opening line