kitbash Sign in Connect agent
Components

Wordmark footer

Label and value pairs for contact, studio and elsewhere, a live local timecode, a back-to-top link and the wordmark across the full width, fading in on view.

Part of the style

Heat Reel

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #38271b;
  --ink-soft: #a1957b;
  --paper: #e9dbbd;
  --night: #332216;
  --night-ink: #e9dbbd;
  --night-soft: #a3977d;
  --film: #2d1c11;
  --clay-deep: #4d3a2d;
  --bone: #d1c4a7;
  --ember: #b88c72;
  --clay: #a88b7a;
  --ember-hot: #c18a79;
  --glaze: #8f6f44;
  --sage: #a99275;
  --lagoon: #6e472e;
}
</style>

<footer class="footer">
  <dl class="footer__pairs">
    <div class="footer__pair">
      <dt class="footer__label">Write</dt>
      <dd class="footer__value"><a class="footer__link" href="#">hello@hotwork.film</a></dd>
    </div>
    <div class="footer__pair">
      <dt class="footer__label">Studio</dt>
      <dd class="footer__value">Kiln Yard 4<br>Port Ellis</dd>
    </div>
    <div class="footer__pair">
      <dt class="footer__label">Elsewhere</dt>
      <dd class="footer__value"><a class="footer__link" href="#">Vimeo</a><a class="footer__link" href="#">Letters</a></dd>
    </div>
    <div class="footer__pair">
      <dt class="footer__label">Local time</dt>
      <dd class="footer__value footer__clock">00:00:00</dd>
    </div>
  </dl>
  <a class="footer__top" href="#">Back to top</a>
  <p class="footer__mark" aria-hidden="true">HOTWORK</p>
</footer>

<style>
  .footer {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: clamp(var(--space-l), 9vw, 128px);
    padding: var(--space-l) var(--edge) var(--edge);
    background: var(--paper);
    color: var(--ink);
    line-height: var(--leading-list);
    overflow: hidden;
  }
  .footer__pairs {
    grid-column: 1 / 11;
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: var(--space-m);
    margin: 0;
  }
  .footer__pair { grid-column: span 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gutter); }
  .footer__label { grid-column: 1 / 3; color: var(--ink-soft); text-align: right; }
  .footer__value { grid-column: 3 / -1; margin: 0; display: flex; flex-direction: column; align-items: flex-start; }
  .footer__clock { font-variant-numeric: tabular-nums; }
  .footer__link,
  .footer__top {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--time-hover) var(--ease-glide);
  }
  .footer__top { grid-column: 11 / 13; justify-self: end; align-self: start; }
  @media (hover: hover) {
    .footer__link:hover,
    .footer__top:hover { color: var(--ink-soft); }
  }
  .footer__link:focus-visible,
  .footer__top:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    outline: none;
  }

  .footer__mark {
    grid-column: 1 / -1;
    margin: 0 0 0 -0.055em;
    font-family: var(--font-mark);
    font-weight: var(--weight-mark);
    font-stretch: var(--stretch-mark);
    font-size: calc((100cqw - 2 * var(--edge)) / 6.3);
    line-height: 0.74;
    letter-spacing: var(--tracking-mark);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--time-fade) var(--ease-glide) var(--time-fade);
  }
  .footer.is-seen .footer__mark { opacity: 1; }

  /* Touch: links grow to a finger's height. */
  @media (pointer: coarse), (max-width: 54.6rem) {
    .footer__link,
    .footer__top { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
  }
  @media (max-width: 54.6rem) {
    .footer__pairs, .footer__top { grid-column: 1 / -1; }
    .footer__pairs { grid-template-columns: minmax(0, 1fr); }
    .footer__pair { grid-column: 1; grid-template-columns: 7.5em minmax(0, 1fr); }
    .footer__label { grid-column: 1; text-align: left; align-self: start; padding-top: 0; }
    .footer__value { grid-column: 2; }
    .footer__top { justify-self: start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .footer__mark { opacity: 1; transition: none; }
  }
</style>

<script>
(() => {
  const time = new Intl.DateTimeFormat('en-GB', { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false, timeZone: 'Europe/Lisbon' });
  const seen = new IntersectionObserver((entries) => {
    for (const entry of entries) {
      if (!entry.isIntersecting) continue;
      entry.target.classList.add('is-seen');
      seen.unobserve(entry.target);
    }
  }, { threshold: 0.15 });

  for (const root of document.querySelectorAll('.footer')) {
    const clock = root.querySelector('.footer__clock');
    let ticking = 0;
    const tick = () => { clock.textContent = time.format(new Date()); };
    tick();
    new IntersectionObserver(([entry]) => {
      clearInterval(ticking);
      if (entry.isIntersecting) { tick(); ticking = setInterval(tick, 1000); }
    }).observe(root);
    seen.observe(root);
  }
})();
</script>

Similar components

Sign-off footer

Sign-off footer

Hairline footer

Hairline footer

Clock sentence footer

Clock sentence footer

About and wordmark band

About and wordmark band

Contact footer

Contact footer

Footer

Footer

Wave footer

Wave footer

Skeleton wordmark footer

Skeleton wordmark footer