kitbash Sign in Connect agent
Components

Frosted letter panel

A see-through grey panel with a short line, an email chip field and a pair of answer chips, then chip link rows and the chip wordmark at the foot.

Part of the style

Highlighter Word Chips

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fff2f1;
  --paper: #334493;
  --chip: rgba(60, 78, 154, 0.7);
  --chip-solid: #3c4e9a;
  --chip-press: #43559f;
  --ink-mute: rgba(255, 242, 241, 0.45);
  --veil: rgba(51, 68, 147, 0.72);
  --periwinkle: #a95858;
  --mint: #8d5772;
  --lemon: #8e5b75;
  --blush: #a95858;
}
</style>

<footer class="footer">
  <form class="footer__panel" action="#" novalidate>
    <p class="footer__lead">Letters from the slow lane: four a year, never more, with what we made and what we gave up on.</p>
    <label class="footer__field">
      <span class="footer__label">Email</span>
      <input class="footer__input" type="email" name="email" placeholder="you@example.com" autocomplete="email" required>
    </label>
    <div class="footer__answers">
      <button class="footer__send" type="submit">Send them</button>
      <button class="footer__skip" type="reset">No thanks</button>
    </div>
    <p class="footer__done" role="status"></p>
  </form>

  <div class="footer__links">
    <ul class="footer__row" aria-label="Studio">
      <li><a class="footer__link" href="#">About</a></li>
      <li><a class="footer__link" href="#">Work</a></li>
      <li><a class="footer__link" href="#">Shop</a></li>
      <li><a class="footer__link" href="#">Archive</a></li>
    </ul>
    <ul class="footer__row" aria-label="Elsewhere">
      <li><a class="footer__link" href="#">Newsletter</a></li>
      <li><a class="footer__link" href="#">Instagram</a></li>
      <li><a class="footer__link" href="#">hello@dawdle.example</a></li>
    </ul>
  </div>

  <div class="footer__sign">
    <span class="footer__mark" aria-hidden="true">
      <svg viewBox="0 0 32 32">
        <path d="M3 26.5c0-1.6 1.2-2.5 3-2.5h15.5c2.2 0 3.4-1.2 4-3.6l1-5.4h2.6l-1.1 6.6c-.7 4.4-2.9 6.9-6.9 6.9H5c-1.3 0-2-.8-2-2Z" fill="currentColor"/>
        <circle cx="14" cy="16" r="8.4" fill="currentColor"/>
        <path d="M14.4 16.4a1.6 1.6 0 1 1-1.4-2.1 3.4 3.4 0 1 1-2.6 4.6 5.4 5.4 0 1 1 9.2-3.8" fill="none" stroke="var(--paper)" stroke-width="1.5" stroke-linecap="round"/>
        <path d="M27 15l-2.2-7.6M28.6 15l1.2-7.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
        <circle cx="24.6" cy="6.9" r="1.4" fill="currentColor"/>
        <circle cx="29.9" cy="6.6" r="1.4" fill="currentColor"/>
      </svg>
    </span>
    <span class="footer__name">Dawdle</span>
    <span class="footer__fine">Studio &middot; 2027</span>
  </div>
</footer>

<style>
  .footer {
    display: grid;
    gap: var(--space-xl);
    padding: var(--section-space) var(--edge) var(--edge);
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
  }
  .footer__panel {
    justify-self: center;
    display: grid;
    gap: var(--space-s);
    width: min(25rem, 100%);
    margin: 0;
    padding: var(--space-s);
    border-radius: var(--radius-l);
    background: var(--chip);
    backdrop-filter: blur(var(--blur));
    font-size: var(--text-s);
    line-height: 1.3;
  }
  .footer__lead {
    margin: 0;
    padding: var(--space-xs);
  }
  .footer__field {
    display: grid;
  }
  .footer__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .footer__input {
    min-height: var(--tap);
    padding: 0 var(--space-s);
    border: 0;
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-m);
  }
  .footer__input::placeholder {
    color: var(--ink-mute);
  }
  .footer__input:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 0;
  }
  .footer.is-wrong .footer__input {
    background: var(--blush);
  }
  .footer__answers {
    display: flex;
    gap: var(--chip-gap);
  }
  .footer__send,
  .footer__skip {
    min-height: var(--tap);
    padding: 0 var(--space-m);
    border: 0;
    border-radius: var(--radius);
    font: inherit;
    font-size: var(--text-m);
    cursor: pointer;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
  }
  .footer__send {
    background: var(--paper);
    color: var(--ink);
  }
  .footer__send:hover {
    background: var(--periwinkle);
  }
  .footer__skip {
    background: transparent;
    color: var(--ink-mute);
  }
  .footer__skip:hover {
    color: var(--ink);
  }
  .footer__send:focus-visible,
  .footer__skip:focus-visible,
  .footer__link:focus-visible {
    outline: var(--line) solid var(--ink);
    outline-offset: 2px;
  }
  .footer__done {
    display: none;
    margin: 0;
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius);
    background: var(--mint);
    font-size: var(--text-m);
  }
  .footer.is-sent .footer__done {
    display: block;
  }
  .footer.is-sent .footer__field,
  .footer.is-sent .footer__answers {
    display: none;
  }

  .footer__links {
    display: grid;
    gap: var(--chip-gap);
    justify-items: center;
  }
  .footer__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--chip-gap);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .footer__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 var(--space-m);
    border-radius: var(--radius);
    background: var(--chip);
    color: inherit;
    text-decoration: none;
    transition: background-color var(--fast) var(--ease);
  }
  .footer__link:hover {
    background: var(--lemon);
  }

  .footer__sign {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--chip-gap);
    font-family: var(--font-display);
  }
  .footer__mark,
  .footer__name {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    background: var(--chip);
  }
  .footer__mark {
    justify-content: center;
    width: clamp(3.5rem, 12vw, 9rem);
    background: var(--lemon);
  }
  .footer__mark svg {
    width: 62%;
    height: auto;
  }
  .footer__name {
    padding: 0 var(--chip-pad-x);
    font-size: clamp(3rem, 15vw, 12rem);
    letter-spacing: var(--tracking);
    line-height: 1.05;
  }
  .footer__fine {
    align-self: flex-end;
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius);
    background: var(--chip);
    font-family: var(--font-body);
    font-size: var(--text-s);
  }
</style>

<script>
  (() => {
    for (const root of document.querySelectorAll('.footer')) {
      const form = root.querySelector('.footer__panel');
      const input = root.querySelector('.footer__input');
      const done = root.querySelector('.footer__done');
      if (!form || !input) continue;
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        if (!input.checkValidity()) {
          root.classList.add('is-wrong');
          input.focus();
          return;
        }
        root.classList.remove('is-wrong');
        root.classList.add('is-sent');
        done.textContent = 'Lovely. The first letter comes in spring.';
      });
      form.addEventListener('reset', () => {
        root.classList.remove('is-wrong');
        root.classList.add('is-sent');
        done.textContent = 'No letters, then. The door stays open.';
      });
      input.addEventListener('input', () => root.classList.remove('is-wrong'));
    }
  })();
</script>

Similar components

Black footer with bubble

Black footer with bubble

Black panel footer

Black panel footer

Sign-up footer with wordmark

Sign-up footer with wordmark

Footnote footer

Footnote footer

Green floor footer

Green floor footer

Night Desk Footer

Night Desk Footer

Footer

Footer

Yellow footer

Yellow footer