Skip to content

Hero with Signup Form

Bootstrap 5 two-column hero with value points, social proof and a validated signup card that shows a loading state and a success message.

Also known as: landing page hero with form, saas hero with email signup, waitlist hero section

Hero with Signup Form live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 two-column hero section with a headline, three value points, social proof and an inline signup card with client-side validation and a success state. Use it at the top of SaaS landing pages, trial offers and waitlist pages.

How it works

The root is section.hs-hero, a dark section with two soft radial glows. A Bootstrap row splits it into a text column (col-lg-6) and a form column (col-lg-6 col-xl-5 offset-xl-1); on phones the columns stack and the form follows the copy. The text column holds the .hs-eyebrow pill, the .hs-title heading, the .hs-lead paragraph, the .hs-points list (each .hs-point has an icon in .hs-point__icon) and the .hs-proof row with CSS initials avatars.

The .hs-card contains .hs-form-panel with a novalidate form (name, work email, team size select and a terms checkbox) and a hidden .hs-success panel. The script listens for submit on .hs-form. If checkValidity() fails, it adds was-validated so Bootstrap shows the invalid-feedback messages, sets aria-invalid on every field, links each error text through aria-describedby and focuses the first invalid field. While the form stays in that state, input and change events update the ARIA state live. A valid form shows a spinner in .hs-submit, then hides the form, writes the email into .hs-success__email and reveals the success panel. The .hs-reset button restores the empty form.

Customization

  • --hs-accent and --hs-accent-hover in .hs-hero: change the button, checkbox and focus ring color, e.g. #1d4ed8 for blue.
  • --hs-highlight in .hs-hero: recolor the eyebrow text and the value point icons on the dark background.
  • --hs-bg in .hs-hero: set another background color; the avatar borders follow it automatically.
  • pattern on #hs-email: tighten or relax the email rule, e.g. allow only your company domain.
  • minlength="2" on #hs-name: change the minimum name length; update the matching invalid-feedback text.
  • The window.setTimeout call in script.js: replace it with a fetch() to your signup endpoint and show .hs-success when it resolves.
  • col-xl-5 offset-xl-1 on the form column: use col-lg-6 only for a wider card on large screens.

Use cases

  • SaaS landing pages: a headline, three value points and a signup card share one first screen
  • Trial offers: name, work email and team size fields collect leads right at the top
  • Waitlist pages: after submitting, the form is replaced by a success message with the entered email
  • Social proof: an avatar row under the copy builds trust before the visitor signs up

Accessibility

The section is labelled by #hs-title through aria-labelledby. Every field has a visible label, and error messages are announced through aria-describedby only while the field is invalid. During loading the button uses aria-disabled instead of disabled, so keyboard focus is not lost. After success, focus moves to the success heading (tabindex="-1"), so screen readers announce the result. Decorative icons and avatars are aria-hidden. The pop-in animation of the success icon is disabled with prefers-reduced-motion: reduce.

Usage notes

Requires Bootstrap 5 and Bootstrap Icons. The heading is an h1; change it to h2 if the page already has a main heading.

Hero with Signup Form at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile, dark design
Category
Hero Sections
License
Free for personal and commercial use

Questions about this template

Can I use the Hero with Signup Form code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Hero with Signup Form – free Bootstrap 5 hero section template
Hero with Signup Form · free Bootstrap 5 hero section template

More Hero Sections

Split Hero with Diagonal Photo Clip – free Pure CSS hero section template

Split Hero with Diagonal Photo Clip

Pure CSS split hero with headline, buttons and stats beside a full-height photo cut on a diagonal with clip-path, plus an accent stripe and rating badge.

Hero with Rotating Words – free Pure CSS hero section template

Hero with Rotating Words

Dark hero section whose headline cycles through words with a slide-and-fade animation, a pause button and decorative stat cards.

Split Hero with App Screenshot – free Tailwind CSS hero section template

Split Hero with App Screenshot

Dark Tailwind CSS split hero with gradient headline, two CTA buttons and an animated mock app dashboard built entirely from divs.

Hero with Background Video Overlay – free Bootstrap 6 hero section template

Hero with Background Video Overlay

Full-width Bootstrap 6 hero with a muted background video or slow-zoom poster photo, dark gradient overlay, headline, two buttons, stats and a pause control.

Dark Gradient Hero – free Bootstrap 6 hero section template

Dark Gradient Hero

Dark Bootstrap 6 hero with a blurred gradient mesh, gradient headline, glowing CTA, copyable install command, decorative orb with stats and a row of trust logos.

Split Hero with Stats – free Bootstrap 6 hero section template

Split Hero with Stats

Bootstrap 6 split hero with a highlighted headline, CTAs and avatar social proof beside a bento grid of key stats with a 12-month / all-time toggle.