kitbash Sign in Connect agent
Components

Bottom bar

Grey command bar: plus-suffixed nav with a jumping block cursor, a live clock with a red dot and a white refusal button.

Part of the style

Hostile HUD

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --void: #fff5cf;
  --night: #e0d4a9;
  --night-2: #d5c99d;
  --bar: #b8ab7a;
  --text: #1d2961;
  --text-dim: rgba(29, 41, 97, 0.55);
  --text-ghost: rgba(29, 41, 97, 0.22);
  --rule: rgba(29, 41, 97, 0.14);
  --chrome: #253266;
  --alarm: #929fbe;
  --signal: #8090b2;
  --alarm-deep: #8e97aa;
  --rgb-r: #7e8caa;
  --frost: #636f8c;
  --rgb-g: #6e7b98;
  --rgb-b: #7a87a4;
}
</style>

<footer class="bar">
  <nav class="bar__nav" aria-label="Main">
    <a class="bar__link is-current" href="#" aria-current="page">Index <span class="bar__plus">+</span></a>
    <a class="bar__link" href="#">Work <span class="bar__plus">+</span></a>
    <a class="bar__link" href="#">Logbook <span class="bar__plus">+</span></a>
    <a class="bar__link" href="#">Error <span class="bar__plus">+</span></a>
  </nav>
  <div class="bar__info">
    <svg class="bar__moon" viewBox="0 0 12 12" aria-hidden="true"><path d="M7.5 1A5 5 0 1 0 11 8.6 4.2 4.2 0 0 1 7.5 1Z" fill="currentColor"/></svg>
    <span class="bar__zone">GMT+1</span>
    <span class="bar__dot" aria-hidden="true"></span>
    <time class="bar__clock">00:00:00</time>
    <a class="bar__refuse" href="#">Don't call us <span class="bar__plus">+</span></a>
  </div>
</footer>

<style>
  .bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 var(--space-m);
    padding: 0 var(--space-xs) 0 var(--edge);
    background: var(--bar);
    color: var(--chrome);
    font-size: var(--text-m);
    line-height: 1;
  }
  .bar__nav,
  .bar__info {
    display: flex;
    align-items: center;
    gap: var(--space-m);
  }
  .bar__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: var(--tap);
    min-width: var(--tap);
    color: inherit;
    text-decoration: none;
    transition: color var(--quick) ease;
  }
  /* A white block jumps in front of the hovered word. */
  .bar__link::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 4px;
    height: 16px;
    translate: 0 -50%;
    background: var(--text);
    opacity: 0;
  }
  .bar__link:hover,
  .bar__link:focus-visible,
  .bar__link.is-current {
    color: var(--text);
    outline: none;
  }
  .bar__link:hover::before,
  .bar__link:focus-visible::before {
    animation: bar-jump 0.36s var(--step) forwards;
  }
  .bar__plus { color: var(--text-dim); }
  .bar__link.is-current .bar__plus { color: var(--text); }

  .bar__moon { width: 11px; color: var(--chrome); }
  .bar__dot {
    width: 6px;
    height: 6px;
    background: var(--signal);
  }
  .bar.is-live .bar__dot { animation: bar-blink 1s steps(1, end) infinite; }
  .bar__clock {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0;
    color: var(--text);
  }
  .bar__refuse {
    display: inline-flex;
    align-items: center;
    gap: var(--space-l);
    min-height: var(--tap);
    padding: 0 var(--space-s);
    background: var(--text);
    color: var(--void);
    text-decoration: none;
    transition: background var(--quick) ease, color var(--quick) ease;
  }
  .bar__refuse .bar__plus { color: var(--void); }
  .bar__refuse:hover,
  .bar__refuse:focus-visible {
    background: var(--signal);
    color: var(--text);
    outline: none;
  }
  .bar__refuse:hover .bar__plus { color: var(--text); }

  @keyframes bar-jump {
    0% { opacity: 1; translate: -6px -50%; }
    100% { opacity: 1; translate: 0 -50%; }
  }
  @keyframes bar-blink { 50% { opacity: 0.2; } }

  @media (max-width: 40rem) {
    .bar { padding: 0 var(--edge); }
    .bar__nav { width: 100%; justify-content: space-between; gap: var(--space-s); }
    .bar__info { width: 100%; padding-bottom: var(--space-xs); gap: var(--space-s); }
    .bar__refuse { margin-left: auto; }
    .bar__moon { display: none; }
  }
</style>

<script>
(() => {
  function run(root) {
    const clock = root.querySelector('.bar__clock');
    let timer = 0;
    const show = () => {
      const now = new Date();
      clock.textContent = now.toTimeString().slice(0, 8);
      clock.dateTime = now.toISOString();
    };
    show();
    new IntersectionObserver(([entry]) => {
      clearInterval(timer);
      root.classList.toggle('is-live', entry.isIntersecting);
      if (entry.isIntersecting) timer = setInterval(show, 1000);
    }).observe(root);
  }

  document.querySelectorAll('.bar').forEach(run);
})();
</script>

Similar components

Dark top bar

Dark top bar

Ticker and nav bar

Ticker and nav bar

Corner nav with stepped panels

Corner nav with stepped panels

Masthead and profile

Masthead and profile

Wordmark masthead

Wordmark masthead

Masthead

Masthead

Corner masthead

Corner masthead

Grid top bar

Grid top bar