kitbash Sign in Connect agent
Components

Closing and footer

A centred closing line that lights word by word, a row of tiny ink figures standing on one baseline, and a three-column footer with links, credits and a follow list.

Part of the style

Graph Paper Novel

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --page: #251a1a;
  --grid-line: #322727;
  --ink: #fbf4ee;
  --ink-soft: #b1a9a2;
  --ink-dim: #4a3e3e;
  --panel: #2d2121;
  --sheet: #1c1212;
  --on-dark: #fff2f2;
  --metal-light: #1e1313;
  --metal-mid: #625656;
  --metal-dark: #beb6b0;
  --shade: rgba(251, 244, 238, 0.3);
  --shade-light: rgba(251, 244, 238, 0.1);
  --sheen: rgba(23, 13, 13, 0.1);
  --green: #87645e;
  --green-hover: #fff7f6;
  --scribble: #7a6864;
}
</style>

<footer class="footer">
  <p class="footer__statement">The sea, the ledger and the heart keep one rule: you only arrive once you admit where you are.</p>

  <div class="footer__crowd" aria-hidden="true">
    <svg class="footer__person" viewBox="0 0 30 70"><circle cx="15" cy="8" r="5"/><path d="M8 18h14l3 26H5z"/><path d="M11 44v24M19 44v24"/></svg>
    <svg class="footer__person" viewBox="0 0 30 70"><path d="M9 4h12M11 4V0h8v4"/><circle cx="15" cy="9" r="4.5"/><path d="M9 17h12l2 30H7z"/><path d="M12 47v21M18 47v21M23 26l5 18"/></svg>
    <svg class="footer__person" viewBox="0 0 30 70"><circle cx="15" cy="9" r="5"/><path d="M10 18h10l9 34H1z"/><path d="M12 52v16M18 52v16"/></svg>
    <svg class="footer__person" viewBox="0 0 30 70"><circle cx="15" cy="8" r="4.5"/><path d="M9 16h12v28H9z"/><path d="M11 44v24M19 44v24M21 30h6v8h-6"/></svg>
    <svg class="footer__person footer__person--small" viewBox="0 0 30 70"><circle cx="15" cy="30" r="4"/><path d="M10 37h10l2 18H8z"/><path d="M12 55v13M18 55v13"/></svg>
    <svg class="footer__person" viewBox="0 0 30 70"><path d="M4 8c4-8 18-8 22 0z"/><circle cx="15" cy="11" r="4.5"/><path d="M8 19h14l4 32H4z"/><path d="M12 51v17M18 51v17"/></svg>
    <svg class="footer__person" viewBox="0 0 30 70"><circle cx="13" cy="8" r="4.5"/><path d="M7 16h12l1 30H6z"/><path d="M10 46v22M16 46v22M20 22l7 46"/></svg>
    <svg class="footer__person" viewBox="0 0 30 70"><path d="M1 14c6-12 22-12 28 0zM15 14v8"/><circle cx="15" cy="25" r="4"/><path d="M10 32h10l3 22H7z"/><path d="M12 54v14M18 54v14"/></svg>
    <svg class="footer__person footer__person--dog" viewBox="0 0 40 30"><path d="M6 14h22l4-8 5 3-3 5v8H8z"/><path d="M8 22v8M14 22v8M24 22v8M30 22v8M6 14L1 9"/></svg>
  </div>

  <div class="footer__row">
    <div class="footer__col">
      <strong class="footer__name">True North.</strong>
      <nav class="footer__nav" aria-label="Footer">
        <a class="footer__link" href="#">The Book</a>
        <a class="footer__link" href="#">About the Author</a>
        <a class="footer__link" href="#">Buy Now</a>
      </nav>
    </div>
    <p class="footer__legal">© 2027 Ines Calloway. All rights reserved.</p>
    <div class="footer__col footer__col--end">
      <strong class="footer__name">Follow the author</strong>
      <nav class="footer__nav" aria-label="Elsewhere">
        <a class="footer__link" href="#">Letters</a>
        <a class="footer__link" href="#">Readings</a>
        <a class="footer__link" href="#">Press</a>
      </nav>
    </div>
  </div>
</footer>

<style>
  .footer {
    display: grid;
    gap: var(--space-l);
    padding: var(--space-l) var(--edge) var(--space-m);
  }
  .footer__statement {
    max-width: 44rem;
    margin: 0 auto;
    font-size: var(--text-xl);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-align: center;
    text-wrap: balance;
  }
  .footer__word {
    color: var(--ink-dim);
    transition: color var(--quick) ease;
  }
  .footer__word.is-lit { color: var(--ink); }
  .footer__crowd {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(0.6rem, 3vw, 2.75rem);
    padding-bottom: 0.4rem;
    border-bottom: var(--rule) solid var(--ink);
    width: min(100%, 44rem);
    margin: 0 auto;
  }
  .footer__person {
    flex: none;
    width: clamp(1.1rem, 2.6vw, 1.9rem);
    fill: var(--ink);
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    transform-origin: 50% 100%;
    transition: rotate var(--quick) var(--ease);
  }
  .footer__person--dog { width: clamp(1.3rem, 3vw, 2.3rem); }
  .footer__person path:not(:first-of-type) { fill: none; }
  .footer__person:hover { rotate: -6deg; }
  .footer__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: var(--gap);
    font-size: var(--text-s);
  }
  .footer__col { display: grid; justify-items: start; }
  .footer__col--end { justify-items: end; text-align: right; }
  .footer__col--end .footer__link { justify-content: flex-end; }
  .footer__name { font-weight: 600; }
  .footer__nav { display: grid; justify-items: inherit; }
  .footer__link {
    display: inline-flex;
    align-items: center;
    min-width: var(--tap);
    min-height: var(--tap);
    color: inherit;
    font-weight: 300;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
    transition: text-decoration-color var(--quick) ease, color var(--quick) ease;
  }
  .footer__link:hover,
  .footer__link:focus-visible { color: var(--green); text-decoration-color: currentColor; }
  .footer__legal {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: 300;
  }

  @media (max-width: 40rem) {
    .footer__row { grid-template-columns: 1fr 1fr; }
    .footer__legal { grid-column: 1 / -1; grid-row: 2; }
  }
</style>

<script>
  (() => {
    for (const root of document.querySelectorAll('.footer')) {
      const statement = root.querySelector('.footer__statement');
      const words = statement.textContent.trim().split(/\s+/).map((text) => {
        const word = document.createElement('span');
        word.className = 'footer__word';
        word.textContent = text;
        return word;
      });
      statement.replaceChildren(...words.flatMap((word) => [word, ' ']));
      let visible = false;

      const lightByScroll = () => {
        const box = statement.getBoundingClientRect();
        const read = Math.min(Math.max((innerHeight * 0.65 - box.top) / (box.height + innerHeight * 0.2), 0), 1);
        const litCount = Math.round(read * words.length);
        words.forEach((word, index) => word.classList.toggle('is-lit', index < litCount));
      };

      new IntersectionObserver(([entry]) => {
        visible = entry.isIntersecting;
        if (visible) lightByScroll();
      }).observe(statement);

      addEventListener('scroll', () => { if (visible) lightByScroll(); }, { passive: true });
    }
  })();
</script>

Similar components

Colophon

Colophon

Glow footer

Glow footer

Footer

Footer

Footer

Footer

Sign-off footer

Sign-off footer

Wordmark footer

Wordmark footer

Skeleton wordmark footer

Skeleton wordmark footer

Footer

Footer