Skip to content

Hotel Homepage Template

Boutique hotel homepage template for Bootstrap 6 with a photo hero, date range booking bar, filterable rooms, amenities, review carousel, offer signup, FAQ and map.

Also known as: hotel website, boutique hotel landing page, hotel booking homepage, hotel room booking page

Hotel Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A boutique hotel homepage template built with Bootstrap 6 for a fictional 24-room seaside hotel called Solenne.

How it works

Everything sits inside .sl-page, which pins data-bs-theme="light" and maps the Bootstrap 6 primary role to brass gold.

  • Navbar: a transparent navbar lg:navbar-expand floats over the hero. Below 1024px the toggler opens a <dialog class="drawer drawer-end">. The script closes the drawer when an in-page link is clicked.
  • Hero and booking bar: the .sl-hero background photo has a plum gradient over it. The #sl-book form contains a Datepicker set to multiple-ranged with two months, a select.form-control for guests, and a Combobox for the room. The script creates the Datepicker with Datepicker.getOrCreateInstance() and pre-selects a stay from 14 to 17 days after today, so the sample dates never go out of date. On submit it reads getSelectedDates(), counts the nights, multiplies them by the room's data-sl-rate and opens #sl-dialog with a summary.
  • Rooms: horizontal card card-row cards. A btn-check radio group filters them by data-sl-view. "Choose room" selects the matching Combobox item and scrolls back to the booking bar.
  • Amenities and reviews: a dark amenity grid, photo figure.sl-exp cards, .progress score bars and a carousel of quotes.
  • Offer, FAQ, location: a signup form that uses data-bs-validate, an exclusive <details name="sl-faq"> accordion and a static SVG map in .sl-map, with no external embed.
  • Dialog and toast: both forms flag invalid fields with .is-invalid, simulate the request with a spinner, then show #sl-toast through Toast.getOrCreateInstance().

Customization

  • Change --sl-plum, --sl-gold and --sl-rose on .sl-page in style.css to rebrand. Update the --bs-primary-* overrides next to them so the buttons match.
  • Set nightly prices with data-sl-rate on each Combobox .menu-item. The estimated total in the dialog uses that value.
  • Change the default stay in script.js: the addDays(today, 14) and addDays(today, 17) calls set the arrival and departure dates.
  • Replace the setTimeout inside simulate() with fetch() to your booking or newsletter endpoint.
  • Add a room by copying a .sl-room-col block, setting data-sl-view to sea or garden, and adding a matching Combobox item.
  • Recolor the date picker with the [data-vc="calendar"] rule in style.css.
  • The photos are from Unsplash. Replace them with photos of your own property.

Use cases

  • Boutique hotels: a photo hero with a date range booking bar starts a stay search
  • Room listings: filterable rooms and amenities show what guests can book
  • Special offers: an offer signup and review carousel build trust and repeat visits
  • Seaside and resort stays: an FAQ and map answer location and arrival questions

Accessibility

The page has a skip link, labelled forms, a toggler with aria-controls, aria-labelledby on the dialog and drawer. Carousel buttons have hidden text, the map is one role="img" with a description, and the toast uses role="status". Smooth scrolling and the image zoom are turned off under prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1, so the alpha APIs can still change. Coming from Bootstrap 5: Modal is now Dialog, Offcanvas is now Drawer, Dropdown is now Menu, and form-select is gone (use form-control on <select>). The accordion is native <details>, and validation uses data-bs-validate. The Datepicker and Combobox components are new in Bootstrap 6. In alpha.1 every Combobox logs a harmless "more than one instance" console message.

Hotel 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 Hotel 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=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=Jost:wght@400;500;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.

Hotel Homepage Template – Bootstrap 6 home pages component screenshot
Hotel 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.