Snippets Newsletter

Bootstrap 5 Newsletter Signup Form

A two-panel newsletter signup with a brand panel and reader count beside a heading, short pitch and a pill-shaped email field with inline subscribe button. Validation and success messages appear below the field.

Bootstrap 5 No jQuery Jul 2019 2.3K views

<section class="wdw-stage">
  <div class="container" style="max-width:960px">
    <div class="wdw-card overflow-hidden">
      <div class="row g-0">
        <div class="col-md-5 wdw-aurora p-4 p-md-5 d-flex flex-column justify-content-between gap-5">
          <span class="d-inline-flex align-items-center justify-content-center rounded-circle" style="width:56px;height:56px;background:rgba(255,255,255,.16)"><svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></svg></span>
          <div><div class="fw-bold fs-2" style="letter-spacing:-.02em">12,400+</div><div style="opacity:.75">designers and developers read it every week.</div></div>
        </div>
        <div class="col-md-7 p-4 p-md-5">
          <span class="wdw-eyebrow">Weekly newsletter</span>
          <h2 class="wdw-heading display-6 mt-2 mb-2">Get the best of web design in your inbox.</h2>
          <p class="wdw-muted mb-4">One short email every Friday: new components, tools and articles worth your time. No spam, unsubscribe in one click.</p>
          <form id="nlForm" class="nl" novalidate>
            <label for="nlEmail" class="visually-hidden">Email address</label>
            <div class="input-group input-group-lg nl-group">
              <input type="email" id="nlEmail" class="form-control border-0" placeholder="[email protected]" required autocomplete="email">
              <button type="submit" class="btn btn-primary rounded-pill px-4">Subscribe</button>
            </div>
            <div class="small mt-3" id="nlMsg" role="status" aria-live="polite"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</section>

Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.

Free to use in personal and commercial projects under the MIT license.