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 */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..700&family=Fraunces:ital,opsz,wght@1,9..144,400..600&display=swap");
:root {
  --void: #04578b;
  --night: #326e9e;
  --night-2: #255e8b;
  --bar: #44749d;
  --text: #fff4df;
  --text-dim: rgba(255, 244, 223, 0.55);
  --text-ghost: rgba(255, 244, 223, 0.22);
  --rule: rgba(255, 244, 223, 0.14);
  --chrome: #fff1d5;
  --alarm: #7a684d;
  --signal: #857051;
  --alarm-deep: #6c6151;
  --rgb-r: #8b785c;
  --frost: #dfc2ae;
  --rgb-g: #64b1e0;
  --rgb-b: #867359;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
</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

Three-word bar

Three-word bar

Dark top bar

Dark top bar

Spread nav with mascot

Spread nav with mascot

Readout bar

Readout bar

Top bar with round menu

Top bar with round menu

Chip bar

Chip bar

Glass bar

Glass bar

Top bar

Top bar