kitbash Sign in Connect agent
Components

Timecode footer

A serif sign-off and contact line over scale columns, then the corner row: year, view switch, running timecode and a credits drawer.

Part of the style

Focus Scale Reel

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --black: #030303;
  --night: #282727;
  --cream: #c5c4c9;
  --bone: #cdccd1;
  --bone-soft: rgba(205, 204, 209, 0.7);
  --cream-dim: rgba(197, 196, 201, 0.2);
  --cream-faint: rgba(197, 196, 201, 0.12);
  --shade: rgba(3, 3, 3, 0.45);
}
</style>

<footer class="footer">
  <div class="footer__scales" aria-hidden="true">
    <div class="footer__scale" data-from="180" data-step="-10"></div>
    <div class="footer__scale" data-from="90" data-step="10"></div>
    <div class="footer__scale" data-from="160" data-step="-10"></div>
  </div>

  <div class="footer__main">
    <p class="footer__kicker">New work, 2027</p>
    <h2 class="footer__line"><i>W</i>ait for the <i>W</i>eather <i>W</i>ith <i>U</i>s</h2>
    <a class="footer__mail" href="#">studio@outwater.example</a>
  </div>

  <div class="footer__row">
    <p class="footer__copy">© 2027 Outwater</p>
    <div class="footer__views" role="group" aria-label="View">
      <button class="footer__view is-on" type="button" aria-pressed="true">Slider</button>
      <span class="footer__slash" aria-hidden="true">/</span>
      <button class="footer__view" type="button" aria-pressed="false">List</button>
    </div>
    <p class="footer__clock" aria-label="Local time"><span class="footer__clock-time">00:00:00</span><span class="footer__clock-zone">Local</span></p>
    <button class="footer__credits" type="button" aria-expanded="false" aria-controls="footer-drawer">Credits</button>
  </div>

  <div class="footer__drawer" id="footer-drawer">
    <dl class="footer__list">
      <div><dt>Site</dt><dd>Outwater studio</dd></div>
      <div><dt>Type</dt><dd>Instrument Serif, Geist, Geist Mono</dd></div>
      <div><dt>Stills</dt><dd>Public domain, Wikimedia Commons</dd></div>
    </dl>
  </div>
</footer>

<style>
  .footer {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto auto;
    min-height: clamp(480px, 50vw, 680px);
    overflow: hidden;
    background: var(--black);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: var(--text-s);
    letter-spacing: var(--track-label);
    text-transform: uppercase;
  }
  .footer__scales {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 var(--edge);
    pointer-events: none;
  }
  .footer__scale {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-m) 0 var(--space-xl);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1;
    color: var(--cream-faint);
  }
  .footer__scale:nth-child(2) { align-items: center; }
  .footer__scale:nth-child(3) { align-items: flex-end; }
  .footer__scale span {
    writing-mode: vertical-rl;
  }
  .footer__scale i {
    display: block;
    width: 6px;
    height: var(--rule);
    background: var(--cream-faint);
  }

  .footer__main {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: var(--space-m);
    padding: var(--space-xl) var(--edge);
    text-align: center;
  }
  .footer__kicker {
    margin: 0;
    font-family: var(--font-mono);
    color: var(--cream-dim);
  }
  .footer__line {
    max-width: 12ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-l);
    font-weight: 400;
    line-height: 1;
    letter-spacing: var(--track-display);
    text-transform: none;
    text-wrap: balance;
  }
  .footer__mail {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--font-type);
    font-size: var(--text-type);
    color: var(--bone-soft);
    text-decoration: none;
    text-transform: none;
    transition: color var(--quick) ease, letter-spacing var(--slide) var(--ease-slide);
  }
  .footer__mail:hover,
  .footer__mail:focus-visible {
    color: var(--cream);
    letter-spacing: 0.12em;
  }

  .footer__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: center;
    gap: var(--gap);
    padding: var(--space-s) var(--edge);
  }
  .footer__copy,
  .footer__clock {
    margin: 0;
  }
  .footer__copy {
    color: var(--bone);
  }
  .footer__views {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    color: var(--cream-dim);
  }
  .footer__view,
  .footer__credits {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cream-dim);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
    transition: color var(--quick) ease;
  }
  .footer__view.is-on {
    color: var(--cream);
    font-weight: 500;
  }
  .footer__view:hover,
  .footer__credits:hover,
  .footer__view:focus-visible,
  .footer__credits:focus-visible {
    color: var(--cream);
  }
  .footer__credits {
    color: var(--bone);
    text-align: right;
  }
  .footer button:focus-visible,
  .footer__mail:focus-visible {
    outline: var(--rule) solid var(--cream);
    outline-offset: 2px;
  }
  .footer__clock {
    display: flex;
    gap: var(--space-s);
    justify-content: flex-end;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--bone-soft);
  }
  .footer__clock-zone {
    color: var(--cream-dim);
  }

  .footer__drawer {
    position: relative;
    display: grid;
    grid-template-rows: 0fr;
    background: var(--night);
    transition: grid-template-rows var(--slide) var(--ease-slide);
  }
  .footer.is-open .footer__drawer {
    grid-template-rows: 1fr;
  }
  .footer__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    min-height: 0;
    margin: 0;
    padding: 0 var(--edge);
    overflow: hidden;
    font-family: var(--font-mono);
  }
  .footer__list > div {
    padding: var(--space-m) 0;
  }
  .footer__list dt {
    color: var(--cream-dim);
  }
  .footer__list dd {
    margin: var(--space-xs) 0 0;
    color: var(--bone-soft);
  }

  @media (max-width: 640px) {
    .footer__row {
      grid-template-columns: 1fr auto;
      row-gap: 0;
    }
    .footer__views {
      grid-row: 2;
    }
    .footer__clock {
      grid-row: 2;
      grid-column: 2;
    }
    .footer__list {
      grid-template-columns: minmax(0, 1fr);
    }
    .footer__list > div {
      padding: var(--space-s) 0;
    }
    .footer__scale:nth-child(2) {
      display: none;
    }
    .footer__scales {
      grid-template-columns: 1fr 1fr;
    }
  }
</style>

<script>
  (function () {
    document.querySelectorAll(".footer").forEach(function (root) {
      root.querySelectorAll(".footer__scale").forEach(function (scale) {
        var value = Number(scale.dataset.from);
        var step = Number(scale.dataset.step);
        for (var i = 0; i < 10; i++) {
          var number = document.createElement("span");
          number.textContent = String(value);
          scale.appendChild(number);
          scale.appendChild(document.createElement("i"));
          value += step;
        }
        scale.lastChild.remove();
      });

      var views = root.querySelectorAll(".footer__view");
      views.forEach(function (view) {
        view.addEventListener("click", function () {
          views.forEach(function (other) {
            other.classList.toggle("is-on", other === view);
            other.setAttribute("aria-pressed", String(other === view));
          });
        });
      });

      var credits = root.querySelector(".footer__credits");
      credits.addEventListener("click", function () {
        var open = !root.classList.contains("is-open");
        root.classList.toggle("is-open", open);
        credits.setAttribute("aria-expanded", String(open));
      });

      var clock = root.querySelector(".footer__clock-time");
      var timer = null;
      function pad(n) { return String(n).padStart(2, "0"); }
      function tick() {
        var now = new Date();
        clock.textContent = pad(now.getHours()) + ":" + pad(now.getMinutes()) + ":" + pad(now.getSeconds());
      }
      tick();
      new IntersectionObserver(function (entries) {
        clearInterval(timer);
        if (entries[0].isIntersecting) timer = setInterval(tick, 1000);
      }).observe(root);
    });
  })();
</script>

Similar components

Sketch footer

Sketch footer

Contact sign-off

Contact sign-off

Scan-row sign-off

Scan-row sign-off

Contact footer

Contact footer

Contact card

Contact card

Black footer

Black footer

Giant sticker footer

Giant sticker footer

Connect footer

Connect footer