Skip to content

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.

Also known as: restaurant website, restaurant landing page, dining room homepage, restaurant reservation page

Restaurant Homepage Template live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A dark, candle-lit restaurant homepage built with Bootstrap 6 for a fictional wood-fire dining room called Ember & Vine, with menu highlights, live opening hours, guest reviews and a reservation form with the new Bootstrap 6 Datepicker.

How it works

Everything lives in .ev-page, which sets data-bs-theme="dark" and re-maps the Bootstrap 6 primary role (--bs-primary-bg, --bs-primary-contrast and friends) to the ember orange, so every btn-solid theme-primary follows the brand.

  • Navbar: navbar lg:navbar-expand with a <dialog class="drawer drawer-end"> for the mobile menu. "Visit" opens a .menu with menu-item-icon and menu-item-description. The script closes the drawer after an in-page link is chosen.
  • Hero: a full-bleed Unsplash photo set through --ev-hero-photo, a serif headline and an .ev-infobar strip. The script reads the EV_HOURS object and writes "Open now until…", "Opens today at…" or "Closed today" into [data-ev-today]. "View tonight's menu" opens #ev-fullmenu, a dialog dialog-lg dialog-scrollable with dotted price leaders.
  • Menu highlights: nav nav-underline tabs (data-bs-toggle="tab") switch three .tab-pane grids of .ev-dish cards with badge badge-subtle dietary labels.
  • Our kitchen: an arched photo, a chef caption card and three .ev-pillars.
  • Reviews: three quote cards and a row of press mentions.
  • Visit and reserve: an hours table where today's row gets .ev-today, a static SVG map and a <form data-bs-validate novalidate>. The date field uses data-bs-toggle="datepicker"; the script sets data-bs-date-min to today and data-bs-date-max to EV_BOOKING_DAYS ahead, so no dates are hard-coded. On submit, invalid fields get .is-invalid; otherwise a spinner runs, the request is simulated and #ev-toast shows a summary via Toast.getOrCreateInstance().
  • Private dining CTA and footer with the current year filled into [data-ev-year].

Customization

  • Change --ev-ember and --ev-brass in .ev-page (style.css) to rebrand; update the --bs-primary-* overrides next to them so buttons follow.
  • Swap the hero photo by editing --ev-hero-photo. All photos come from Unsplash; replace them with your own dishes and dining room.
  • Edit EV_HOURS in script.js (minutes after midnight per weekday, null = closed) and the matching rows in .ev-hours.
  • Change EV_BOOKING_DAYS to allow bookings further ahead.
  • Replace the setTimeout in the submit handler with fetch() to your booking endpoint or reservation service.
  • Add or remove .tab-pane panels in the menu section; each needs a matching tab button.
  • Delete .ev-cta or .ev-story for a shorter page.

Use cases

  • Restaurants: a photo hero and live opening status show whether the kitchen is open
  • Menu pages: tabbed menu highlights present signature dishes
  • Table bookings: a datepicker reservation form lets guests reserve a table
  • Dining rooms: a chef story and guest reviews build trust before a visit

Accessibility

A skip link jumps to #ev-main. Tabs use role="tab" with aria-selected, the map is a single role="img" with a label, today's hours row gets aria-current="date", and the toast uses role="status". Every control has a visible focus outline and smooth scrolling is disabled 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 are btn-solid theme-primary, the navbar uses lg:navbar-expand with a Drawer instead of navbar-collapse, Dropdown is Menu, Modal is Dialog, selects use form-control, validation uses data-bs-validate instead of needs-validation, and the Datepicker is built in (no third-party plugin). The script imports Dialog, Drawer and Toast from the bundle as an ES module.

Restaurant 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, dark design
Category
Home Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Restaurant 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&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.

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

More Home Pages

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.

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.