Skip to content

SaaS Hero with App Screenshot

Bootstrap 6 SaaS hero with a New badge, gradient headline, two CTAs and an app screenshot in a browser frame with switchable tabs and a tour Dialog.

Also known as: saas landing page hero, hero with app screenshot, hero with browser mockup, software product hero

SaaS Hero with App Screenshot live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A SaaS landing page hero built with Bootstrap 6. It has a "New" announcement badge, a two-tone gradient headline, two calls to action and a product screenshot inside a browser frame. The screenshot is built in HTML and SVG, so it stays sharp, and its three views switch with tabs. A Bootstrap 6 Dialog opens a short product tour.

How it works

The root .ssh-hero sets a dotted grid background, and .ssh-glow adds blurred brand light behind the screenshot. The badge is a badge badge-subtle theme-primary rounded-pill link with a gradient .ssh-badge-new label. The primary button is btn-solid theme-primary btn-lg. The secondary button is btn-outline theme-secondary with data-bs-toggle="dialog" and data-bs-target="#ssh-tour" and opens the dialog without init code.

In the browser window .ssh-frame, .ssh-bar holds the dots and address pill, and .ssh-app holds a dark icon sidebar (from 768 px up) and .ssh-main. The view switcher is a nav nav-pills tab list using the Bootstrap 6 Tab plugin. Each .tab-pane holds three .ssh-kpi tiles and a chart: an inline SVG area chart, CSS bars (.ssh-b) or a cohort grid (.ssh-cohort).

script.js is a module. On shown.bs.tab it copies the tab's data-ssh-path into .ssh-url-path, so the address bar follows the active view. In the dialog, .ssh-play toggles aria-pressed and an is-playing class that runs the progress bar. .ssh-chapter buttons update the poster title; playback stops on hidden.bs.dialog.

Customization

  • --ssh-brand and --ssh-brand-2 on .ssh-hero: change the gradient headline, badge, chart and sidebar logo. The --bs-primary-* overrides next to them recolor the Bootstrap buttons and pills to match.
  • --ssh-bg and --ssh-line on .ssh-hero: set the page tint and the border color of the frame and tiles.
  • Replace .ssh-app with an <img> of your real screenshot (with width, height and alt) if you prefer a static image. Keep .ssh-bar for the browser chrome.
  • data-ssh-path on each tab button: sets the path shown in the fake address bar.
  • Bar heights live in the .ssh-b:nth-child(n) .b1 rules in style.css. Cohort shades use the classes l0 to l5.
  • --bs-dialog-width on .ssh-dialog: makes the tour dialog wider or narrower (640px by default). Put your video embed inside .ssh-poster.

Use cases

  • SaaS landing pages: a New badge, gradient headline and two calls to action introduce the product
  • Software marketing: the screenshot sits in a browser frame and switches between three views with tabs
  • Product tours: a button opens a short tour in a dialog
  • Startup sites: the screenshot is built from markup and SVG, so it stays sharp on any screen

Accessibility

The section is labelled by its h1. The tabs use role="tablist", role="tab", aria-selected and aria-controls, and arrow keys move between them. Decorative chrome is aria-hidden, and each chart has role="img" and a text label. The dialog is a native <dialog> labelled by its title, with Escape and focus return handled by Bootstrap. The play button reports its state through aria-pressed and a changing label. The progress animation is replaced by a static bar under prefers-reduced-motion.

Bootstrap 6 notes

This hero uses btn-solid theme-primary and btn-outline theme-secondary where Bootstrap 5 used btn-primary and btn-outline-secondary. badge-subtle theme-primary replaces text-bg-primary, and the tour uses <dialog class="dialog dialog-lg"> with data-bs-dismiss="dialog" instead of a .modal. Built on Bootstrap 6.0.0-alpha.1, so class names and APIs can still change. Icons come from Bootstrap Icons. Give tabs and dialog unique IDs when using two copies.

SaaS Hero with App Screenshot at a glance

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

Questions about this template

Can I use the SaaS Hero with App Screenshot 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 6 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@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/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">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

SaaS Hero with App Screenshot – Bootstrap 6 hero sections component screenshot
SaaS Hero with App Screenshot · Bootstrap 6 Hero Sections

More Hero Sections

Split Hero with Diagonal Photo Clip – Pure CSS hero sections preview

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 – Pure CSS hero sections preview

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 – Tailwind CSS hero sections preview

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.

Dark Gradient Hero – Bootstrap 6 hero sections preview

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 – Bootstrap 6 hero sections preview

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.

Hero with Search Bar – Bootstrap 6 hero sections preview

Hero with Search Bar

Bootstrap 6 directory hero on a photo background with a large pill search bar, a searchable area Combobox, popular search chips and category tiles.