Snippets Blog

Bootstrap 5 Events Section with Date Badges

A responsive upcoming-events section of image cards, each with a date badge, category, location and a learn-more link that makes the whole card clickable.

Bootstrap 5 No jQuery Nov 2019 2.3K views

<section class="wdw-stage">
  <div class="container" style="max-width: 1080px">
    <div class="text-center mx-auto mb-5" style="max-width: 560px">
      <span class="wdw-eyebrow">What's on</span>
      <h2 class="wdw-heading display-6 mt-1 mb-3">Upcoming events</h2>
      <p class="wdw-muted mb-0">Meet the community, learn from practitioners and pick up ideas you can use on Monday.</p>
    </div>
    <div class="row g-4">
      <div class="col-md-6 col-lg-4">
        <article class="card event-card h-100 border-0 wdw-card-sm overflow-hidden">
          <div class="event-media position-relative">
            <a href="#" tabindex="-1" aria-hidden="true"><img src="https://images.unsplash.com/photo-1540575467063-178a50c2df87?auto=format&fit=crop&w=700&q=70" class="card-img-top" alt="" loading="lazy"></a>
            <time class="event-date" datetime="2026-10-23"><span>Oct</span><strong>23</strong></time>
            <span class="badge text-bg-light position-absolute bottom-0 start-0 m-3 rounded-pill">Conference</span>
          </div>
          <div class="card-body p-4 d-flex flex-column">
            <h3 class="h5 fw-bold mb-3"><a href="#" class="stretched-link link-body-emphasis link-underline-opacity-0">Design leadership summit: spotting the next wave of tools</a></h3>
            <p class="wdw-muted small d-flex align-items-center gap-2 mt-auto mb-3"><i class="bi bi-geo-alt" aria-hidden="true"></i>Business Park, New York</p>
            <span class="fw-semibold text-primary small">Learn more <i class="bi bi-arrow-right ms-1" aria-hidden="true"></i></span>
          </div>
        </article>
      </div>
      <div class="col-md-6 col-lg-4">
        <article class="card event-card h-100 border-0 wdw-card-sm overflow-hidden">
          <div class="event-media position-relative">
            <a href="#" tabindex="-1" aria-hidden="true"><img src="https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=700&q=70" class="card-img-top" alt="" loading="lazy"></a>
            <time class="event-date" datetime="2026-11-08"><span>Nov</span><strong>08</strong></time>
            <span class="badge text-bg-light position-absolute bottom-0 start-0 m-3 rounded-pill">Seminar</span>
          </div>
          <div class="card-body p-4 d-flex flex-column">
            <h3 class="h5 fw-bold mb-3"><a href="#" class="stretched-link link-body-emphasis link-underline-opacity-0">Food and hospitality seminar with the world's best chefs</a></h3>
            <p class="wdw-muted small d-flex align-items-center gap-2 mt-auto mb-3"><i class="bi bi-geo-alt" aria-hidden="true"></i>Harbour Hall, Chicago</p>
            <span class="fw-semibold text-primary small">Learn more <i class="bi bi-arrow-right ms-1" aria-hidden="true"></i></span>
          </div>
        </article>
      </div>
      <div class="col-md-6 col-lg-4">
        <article class="card event-card h-100 border-0 wdw-card-sm overflow-hidden">
          <div class="event-media position-relative">
            <a href="#" tabindex="-1" aria-hidden="true"><img src="https://images.unsplash.com/photo-1505373877841-8d25f7d46678?auto=format&fit=crop&w=700&q=70" class="card-img-top" alt="" loading="lazy"></a>
            <time class="event-date" datetime="2026-11-19"><span>Nov</span><strong>19</strong></time>
            <span class="badge text-bg-light position-absolute bottom-0 start-0 m-3 rounded-pill">Workshop</span>
          </div>
          <div class="card-body p-4 d-flex flex-column">
            <h3 class="h5 fw-bold mb-3"><a href="#" class="stretched-link link-body-emphasis link-underline-opacity-0">Learn from small things to build something bigger</a></h3>
            <p class="wdw-muted small d-flex align-items-center gap-2 mt-auto mb-3"><i class="bi bi-geo-alt" aria-hidden="true"></i>Riverside Studio, Austin</p>
            <span class="fw-semibold text-primary small">Learn more <i class="bi bi-arrow-right ms-1" aria-hidden="true"></i></span>
          </div>
        </article>
      </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.