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.

Also known as: college website design, higher education landing page, university admissions website, campus homepage layout

University Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

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.

Use cases

  • Universities and colleges: a campus photo hero and program finder tabs guide prospective students
  • Admissions offices: an enquiry form with a stepper explains the application process and collects requests
  • Campus visit scheduling: the visit card with a datepicker lets families pick a tour day
  • Student news and events: news stories, upcoming events with save buttons and student testimonials keep the page fresh

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.

University 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 University 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=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

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.