Skip to content

News Magazine Homepage Template

Newspaper-style Bootstrap 6 news magazine homepage with a masthead, sections drawer, breaking ticker, three-column front page, desk tabs, opinion, reader trust and subscription plans.

Live preview

Open in new tab

Code

A newspaper-style news magazine homepage built with Bootstrap 6 for a fictional daily called The Northgate Herald. It has a classic masthead, a three-column front page, desk tabs, opinion columns, reader proof and a subscription section.

How it works

Everything lives inside .nh-page, which pins data-bs-theme="light" and re-maps the Bootstrap 6 primary role (--bs-primary-bg, --bs-primary-contrast, --bs-control-checked-bg and friends) to the Herald red, so every btn-solid theme-primary, badge and checkbox follows the brand.

  • Top bar and masthead: .nh-topbar shows today's date, written by script.js with toLocaleDateString(). "Search" opens the search dialog.
  • Navbar: navbar lg:navbar-expand with <dialog class="drawer drawer-start"> holding the section links. Below 1024px the toggler opens the drawer; wider, the links sit in a centred row. "More" opens a .menu with menu-item-icon. The script syncs aria-expanded on the toggler and closes the drawer after a link is chosen.
  • Front page: .nh-front-grid is one column on mobile (lead story first) and a ruled 1 : 2 : 1 grid from 1024px: briefs, .nh-lead with a photo, and a numbered .nh-most list.
  • From our desks: nav nav-underline tabs (data-bs-toggle="tab") switch four .tab-pane panels of .nh-story cards in a grid md:grid-cols-3 layout.
  • Opinion and trust: columnist cards with avatar avatar-lg, then a dark .nh-trust band with a <dl> of stats and reader quotes.
  • Subscribe: a btn-group of btn-check radios swaps prices from data-nh-monthly / data-nh-yearly and announces the change in a live region. The Morning Brief form uses data-bs-validate, a Combobox for the edition and a .check box; submit is simulated and opens .nh-toast with Toast.getOrCreateInstance().
  • Search: <dialog class="dialog"> with a form-adorn field that filters the trending list as you type.

Customization

  • Change --nh-red, --nh-paper and --nh-ink on .nh-page in style.css; update the --bs-primary-* overrides beside them.
  • Swap fonts via --nh-serif and --nh-sans.
  • Edit data-nh-monthly and data-nh-yearly on each .nh-price to set your prices.
  • Replace the setTimeout in the .nh-form submit handler with fetch() to your newsletter endpoint.
  • In the search form submit handler, redirect to your real search page.
  • Add or remove .tab-pane panels (and their tab buttons) to match your desks.
  • Delete .nh-opinion or .nh-trust for a shorter page.

The photos come from Unsplash; replace them with your own images.

Accessibility

A skip link jumps to #nh-main; The drawer and search dialog are native <dialog> elements with labelled titles. Tabs use role="tab" and aria-selected, the ticker is a labelled region, price changes are announced through aria-live, and the toast uses role="status". Focus rings use the brand red, and smooth scrolling is turned off under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). lg:navbar-expand with a Drawer replaces navbar-expand-lg and navbar-collapse, Menu replaces Dropdown, <dialog class="dialog"> replaces Modal, btn-solid theme-primary replaces btn-primary, form-field and .check replace mb-3 and form-check, and Combobox is new in v6. The Combobox logs a harmless "more than one instance" message in alpha.1, and the chosen edition stays after reset.

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=Libre+Franklin:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&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.

News Magazine Homepage Template – Bootstrap 6 home pages component screenshot
News Magazine Homepage Template · Bootstrap 6 Home Pages

More Home Pages

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.

Bakery Homepage Template – Bootstrap 6 home pages preview

Bakery Homepage Template

Warm Bootstrap 6 bakery homepage template with an arched photo hero, tabbed product menu with tray, story stepper, cake order form with datepicker, reviews and a Bread Club dialog.

Podcast Homepage Template – Bootstrap 6 home pages preview

Podcast Homepage Template

Warm, light Bootstrap 6 podcast homepage with a cover-art hero and episode player, searchable episode list with topic chips, hosts, listener reviews, subscribe links and FAQ.

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.

Church Community Homepage Template – Bootstrap 6 home pages preview

Church Community Homepage Template

Warm Bootstrap 6 church homepage template with an arched photo hero, service times, ministries, filterable events, sermon series dialog, member stories and a plan-a-visit form.