kitbash Sign in Connect agent
Components

Black panel footer

A rounded black panel inset from the page with hours, an underline newsletter field and links in three columns, closed by the cream wordmark at full width.

Part of the style

Puffy Wordmark Cream

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

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --ink: #fbf4ee;
  --paper: #251a1a;
  --cream: #251a1a;
  --veil: rgba(137, 125, 125, 0.2);
  --clay: #87645e;
  --clay-dark: #664741;
  --sprout: #87645e;
  --sticker: #7e635e;
  --sky: #87645e;
}
</style>

<footer class="footer">
  <div class="footer__panel">
    <div class="footer__cols">
      <div class="footer__col">
        <p class="footer__label">© Mallow 2027</p>
        <p class="footer__copy">Mallow is open Tuesday to Friday.<br>Right now, the oven is ON.</p>
        <p class="footer__copy">88 Orchard Row, Riverside</p>
      </div>
      <form class="footer__form" novalidate>
        <p class="footer__label" id="footer-news">Newsletter sign up</p>
        <p class="footer__copy">Be the first to hear what we baked this week.</p>
        <div class="footer__field">
          <label class="footer__hide" for="footer-email">Email</label>
          <input class="footer__input" id="footer-email" name="email" type="email" placeholder="Email" required autocomplete="email" aria-describedby="footer-news">
          <button class="footer__send" type="submit" aria-label="Sign up">
            <svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path d="M3 12h17M13 5l7 7-7 7"/></svg>
          </button>
        </div>
        <p class="footer__status" role="status"></p>
      </form>
      <div class="footer__col">
        <p class="footer__label">Say hello</p>
        <ul class="footer__links">
          <li><a class="footer__link" href="#">Write to us</a></li>
          <li><a class="footer__link" href="#">Jobs</a></li>
          <li><a class="footer__link" href="#">Instagram</a></li>
        </ul>
      </div>
    </div>
    <svg class="footer__wordmark" viewBox="0 0 1400 300" role="img" aria-label="Mallow">
      <text x="0" y="262" textLength="1400" lengthAdjust="spacingAndGlyphs">MALLOW</text>
    </svg>
  </div>
</footer>

<style>
  .footer {
    padding: 0 var(--edge) var(--edge);
  }
  .footer__panel {
    padding: var(--space-m) var(--space-m) var(--space-l);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--cream);
  }
  .footer__cols {
    display: grid;
    grid-template-columns: 2fr 1.4fr 0.8fr;
    gap: var(--space-l);
    margin-bottom: var(--space-xl);
  }
  .footer__label {
    margin: 0 0 var(--space-l);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--track-caps);
    text-transform: uppercase;
  }
  .footer__copy {
    margin: 0 0 var(--space-s);
    font-size: var(--text-s);
    line-height: 1.3;
  }
  .footer__form { margin: 0; }
  .footer__field {
    display: flex;
    align-items: center;
    max-width: 20rem;
    margin-top: var(--space-m);
    border-bottom: var(--rule) solid var(--cream);
  }
  .footer__hide {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .footer__input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: var(--text-s);
  }
  .footer__input::placeholder { color: var(--cream); opacity: 1; }
  .footer__input:focus { outline: none; }
  .footer__field:focus-within { border-bottom-width: 2px; }
  .footer.is-invalid .footer__field { border-bottom-style: dashed; }
  .footer__send {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: translate var(--quick) var(--ease);
  }
  .footer__send:hover { translate: 4px 0; }
  .footer__send:focus-visible { outline: 2px solid var(--cream); }
  .footer__send path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .footer__status {
    min-height: 1.3em;
    margin: var(--space-s) 0 0;
    font-size: var(--text-xs);
  }
  .footer__links {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .footer__link {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    color: inherit;
    font-size: var(--text-s);
    text-underline-offset: 0.15em;
    transition: opacity var(--quick) var(--ease);
  }
  .footer__link:hover { opacity: 0.6; }
  .footer__link:focus-visible { outline: 2px solid var(--cream); }
  .footer__wordmark {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .footer__wordmark text {
    fill: var(--cream);
    font-family: var(--font-display);
    font-size: 330px;
  }

  @media (max-width: 48rem) {
    .footer__cols { grid-template-columns: 1fr; gap: var(--space-m); }
    .footer__label { margin-bottom: var(--space-s); }
  }
</style>

<script>
(() => {
  for (const root of document.querySelectorAll('.footer')) {
    const form = root.querySelector('.footer__form');
    const input = root.querySelector('.footer__input');
    const status = root.querySelector('.footer__status');
    if (!form) continue;
    form.addEventListener('submit', (event) => {
      event.preventDefault();
      const ok = input.checkValidity();
      root.classList.toggle('is-invalid', !ok);
      status.textContent = ok ? 'You’re on the list. See you Thursday.' : 'That email looks a little underbaked.';
      if (ok) form.reset();
    });
  }
})();
</script>

Similar components

Black footer with bubble

Black footer with bubble

Frosted letter panel

Frosted letter panel

Yellow footer

Yellow footer

Footer

Footer

Footnote footer

Footnote footer

Night Desk Footer

Night Desk Footer

Sign-up footer with wordmark

Sign-up footer with wordmark

Green floor footer

Green floor footer