Skip to content

Online Course Homepage Template

Bootstrap 6 online course platform homepage with a topic combobox search, filterable course catalog, preview dialog, instructors, learner reviews, pricing switch and signup form.

Also known as: online learning platform homepage, e-learning landing page, course marketplace website, online school website design

Online Course Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A bright, playful online course platform homepage built with Bootstrap 6 for a fictional school called Learnwell, with a topic search, a filterable course catalog, instructors, learner reviews, pricing and a free signup form.

How it works

Everything sits inside .lw-page, which pins data-bs-theme="light" and re-maps the Bootstrap 6 primary role (--bs-primary-bg, --bs-primary-contrast and related tokens) to the brand coral, so every btn-solid theme-primary follows the brand.

  • Navbar: navbar lg:navbar-expand with a <dialog class="drawer drawer-end"> for mobile. "Courses" opens a .menu with menu-item-icon and menu-item-description; each topic link carries data-lw-pick and preselects the catalog filter.
  • Hero: headline, a search bar built on the Bootstrap 6 Combobox (data-bs-toggle="combobox", data-bs-search="true", data-bs-name="lw-topic") and popular topic .chip buttons. On submit the script reads the hidden lw-topic input and filters the catalog. The [data-lw-cohort] label shows the next Monday, computed from today so it never goes stale.
  • Catalog: a btn-group of btn-check radio labels hides or shows .lw-course-col items by data-lw-cat. "Preview course" opens one shared <dialog class="dialog"> and fills it from data-lw-title and the pipe-separated data-lw-lessons.
  • How it works, instructors, reviews: a stepper md:stepper-horizontal inside .contains-inline, portrait cards and quote tiles.
  • Pricing: a Bootstrap 6 .switch toggles .lw-price-amount between data-lw-monthly and data-lw-yearly.
  • FAQ: an exclusive <details name="lw-faq"> accordion.
  • Signup: <form data-bs-validate novalidate>; the script flags invalid fields with .is-invalid, simulates the request with a spinner and shows #lw-toast.

Customization

  • Change --lw-coral, --lw-sun, --lw-mint and --lw-ink on .lw-page in style.css to rebrand; adjust the --bs-primary-* overrides next to them so buttons follow.
  • Add a course by copying a .lw-course-col and setting data-lw-cat to dev, design, data or business, plus a new filter label if you add a category.
  • Edit data-lw-lessons on each .lw-preview-btn to list the lessons shown in the preview dialog.
  • Set your Plus prices in data-lw-monthly / data-lw-yearly on .lw-price-amount.
  • Replace the setTimeout in the form submit handler of script.js with fetch() to your signup endpoint.
  • Remove .lw-plan-plus to make both plans look equal.
  • The photos come from Unsplash; replace them with your own course covers and instructor portraits.

Use cases

  • Online course platforms: a topic search and filterable catalog help learners find the right course fast
  • Bootcamps and coding schools: course preview dialogs list lessons before a learner signs up
  • Subscription learning sites: a monthly and yearly pricing switch compares plans on the same page
  • Instructor-led academies: instructor cards, learner reviews and a free signup form drive enrollments

Accessibility

A skip link jumps to #lw-main. The drawer toggler keeps aria-expanded in sync, filter and billing changes are announced through polite live regions, the progress bar has role="progressbar" with values, and the toast uses role="status". Focus is always visible and hover motion stops under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). Compared with Bootstrap 5: buttons use btn-solid theme-primary instead of btn-primary, the navbar uses lg:navbar-expand with a Drawer instead of navbar-collapse, Dropdown is now Menu, Modal is now Dialog, the accordion is native <details>, switches use .switch, and validation uses data-bs-validate. Combobox and Chips are new in Bootstrap 6. Combobox has no reset method, so the chosen topic stays selected after searching.

Online Course Homepage Template at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons, fonts.googleapis.com
Layout
Responsive, works on mobile
Category
Home Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Online Course Homepage Template 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 and fonts.googleapis.com 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">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap">

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.

Online Course Homepage Template – Bootstrap 6 home pages component screenshot
Online Course Homepage Template · Bootstrap 6 Home Pages

More Home Pages

Restaurant Homepage Template – Bootstrap 6 home pages preview

Restaurant Homepage Template

Dark Bootstrap 6 restaurant homepage with a photo hero, live opening status, tabbed menu highlights, chef story, reviews, a datepicker reservation form and footer.

Music Band Homepage Template – Bootstrap 6 home pages preview

Music Band Homepage Template

Dark Bootstrap 6 music band homepage with a photo hero, relative tour dates with a region filter, album tracklists, video dialog, press quotes and a mailing list form.

Event Conference Homepage Template – Bootstrap 6 home pages preview

Event Conference Homepage Template

Dark Bootstrap 6 tech conference homepage template with a live countdown hero, speaker dialogs, two-day schedule tabs with track filters, ticket tiers with a team Range slider and FAQ.

Fitness Gym Homepage Template – Bootstrap 6 home pages preview

Fitness Gym Homepage Template

Dark Bootstrap 6 gym homepage with drawer navbar, photo hero, programs, a weekly class timetable, membership plans with a range-based recommender, coaches and a free-pass form.

Barbershop Homepage Template – Bootstrap 6 home pages preview

Barbershop Homepage Template

Dark Bootstrap 6 barbershop homepage with a drawer navbar, price-list tabs, barber cards, a booking form with Combobox and Datepicker, reviews, live opening hours and a footer.

Interior Design Homepage Template – Bootstrap 6 home pages preview

Interior Design Homepage Template

Warm Bootstrap 6 interior design homepage with arched photo hero, services, tabbed portfolio, before/after range slider, process accordion, reviews and a consultation form with datepicker.