Skip to content

University Homepage Template

Classic Bootstrap 6 university homepage with a campus photo hero, visit datepicker, program finder tabs, news, upcoming events, student testimonials carousel and admissions form.

Live preview

Open in new tab

Code

A classic, editorial university homepage built with Bootstrap 6 for a fictional Northmere University, with a campus photo hero, a visit booking card, a program finder, news, upcoming events, student testimonials and an admissions enquiry form.

How it works

The page root .nu-page pins data-bs-theme="light" and re-maps the Bootstrap 6 primary role (--bs-primary-bg, --bs-primary-contrast and related tokens) to the university burgundy.

  • Utility bar and navbar: a slim .nu-utility row with audience links above a navbar lg:navbar-expand. On small screens the toggler opens a <dialog class="drawer drawer-start">. "Study" opens a .menu; each item carries data-nu-tab and opens the matching program tab through Tab.getOrCreateInstance().
  • Hero: the campus photo is a CSS background under a navy gradient. The .nu-visit card uses the Bootstrap 6 Datepicker (data-bs-toggle="datepicker"); the script sets data-bs-date-min to tomorrow and data-bs-date-max to 90 days ahead before the first open.
  • Programs: nav nav-tabs switch three .tab-pane panels of .nu-program links. The form-adorn search field filters programs in every pane and shows [data-nu-empty] when nothing matches.
  • News: a lead story and two compact .nu-story-row cards. Each time[data-nu-days-ago] gets a real date computed from today.
  • Events: .nu-event-date tiles are filled from data-nu-in-days, so the list never shows past dates. The "Save" buttons use the Bootstrap 6 Toggler (data-bs-toggle="toggler", data-bs-value="nu-saved"); the script keeps aria-pressed and the label in sync.
  • Campus life and voices: a photo collage and a scroll-snap carousel.
  • Admissions: a vertical stepper beside <form data-bs-validate novalidate>. Invalid fields get .is-invalid; a valid submit shows a spinner and #nu-toast.

Customization

  • Change --nu-navy, --nu-gold and --nu-burgundy on .nu-page in style.css, and the --bs-primary-* overrides next to them, to apply your own colors.
  • Swap the hero photo URL in the .nu-hero background rule for a picture of your own campus.
  • Add programs by copying a .nu-program link into the right .tab-pane; the filter picks them up automatically.
  • Set data-nu-in-days on each .nu-event-date to schedule events relative to today, or replace the script logic with dates from your CMS.
  • Replace the setTimeout in the .nu-form submit handler (and the comment in the visit handler) with fetch() calls to your endpoints.
  • The photos come from Unsplash; replace them with your own campus and student images.

Accessibility

A skip link targets #nu-main. The drawer toggler syncs aria-expanded, tabs use role="tab" with aria-selected, the program filter announces results in a polite live region, event date tiles get a full spoken date, Save buttons expose aria-pressed, and the toast uses role="status". Focus is always visible and motion stops under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). Bootstrap 5 developers will notice: btn-solid theme-primary replaces btn-primary, the navbar uses lg:navbar-expand with a Drawer instead of navbar-collapse, Menu replaces Dropdown, <select> uses form-control instead of form-select, the carousel is CSS scroll-snap with carousel-icon-prev/-next, and validation uses data-bs-validate. Datepicker, Toggler, Stepper and form-adorn are new in Bootstrap 6.

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=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Public+Sans:wght@400;500;600;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.

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

More Home Pages

Kindergarten Homepage Template – Bootstrap 6 home pages preview

Kindergarten Homepage Template

Playful Bootstrap 6 kindergarten homepage with a drawer navbar, photo collage hero, program tabs, daily rhythm stepper, teacher cards, parent reviews and a visit booking form.

Online Course Homepage Template – Bootstrap 6 home pages preview

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.

Accounting Firm Homepage Template – Bootstrap 6 home pages preview

Accounting Firm Homepage Template

Bootstrap 6 accounting firm homepage template with a savings estimator, services grid, onboarding steps, client testimonials, FAQ and a consultation booking form with datepicker.

Law Firm Homepage Template – Bootstrap 6 home pages preview

Law Firm Homepage Template

Bootstrap 6 law firm homepage template with a drawer navbar, practice area tabs, case results, attorney profiles, client reviews, FAQ and a free consultation form.

Dental Clinic Homepage Template – Bootstrap 6 home pages preview

Dental Clinic Homepage Template

Warm Bootstrap 6 dental clinic homepage with pill navbar, arched photo hero, treatment tabs, before/after Range slider, team, membership plans, reviews carousel and inline-calendar booking.

Medical Clinic Homepage Template – Bootstrap 6 home pages preview

Medical Clinic Homepage Template

Light Bootstrap 6 medical clinic homepage with drawer navbar, quick booking bar (Combobox + Datepicker), services, filterable doctors, stepper, reviews, FAQ and booking dialog.