Skip to content

Restaurant Landing Page with Food Photos

Dark Tailwind CSS restaurant landing page with a full-bleed food photo hero, menu highlight cards with prices and a table reservation form.

Also known as: restaurant landing page, restaurant website layout, food menu landing page, table booking page, cafe website hero

Restaurant Landing Page with Food Photos live demo

Open in new tab

Tailwind CSS code (HTML, CSS, JS)

A complete restaurant landing page built with Tailwind CSS: a full-bleed hero photo with opening hours, a grid of menu highlight cards with real food photos and prices, a reservation form with a guest stepper, and an address footer.

How it works

Everything lives inside the root .rst-page. The header is positioned over the hero; its links are hidden below the md breakpoint, but "Book a table" stays visible. The hero is a min-h-[640px] section whose photo is an absolutely positioned <img> with object-cover, covered by .rst-hero-shade.

The menu section is a list of .rst-dish cards in a responsive grid (one, two and then four columns). Each card shows a photo, a colored label such as "Vegetarian" or "Chef's pick", the dish name, price and a short description. Hovering or focusing inside a card scales .rst-dish-img.

The reservation block pairs an interior photo (from lg up) with the .rst-form. On DOMContentLoaded the script sets the min of the .rst-date input to today and fills in tomorrow, wires the [data-rst-step] buttons that change the number in the .rst-guests output, and handles submit: it validates the name and date, shows a loading label on .rst-submit, then after a short timeout writes a confirmation into .rst-status. To send real bookings, replace the setTimeout in script.js with a fetch() call to your booking endpoint.

Customization

  • data-rst-min and data-rst-max on .rst-guests: change the allowed party size; the stepper buttons disable themselves at the limits.
  • The <option> list in #rst-time: set your own seating times; the selected option is the default.
  • amber-400, amber-300 and amber-50 utilities: swap amber for orange or lime to retheme buttons, eyebrows and headings.
  • .rst-hero-shade in style.css: gradient alpha values darken or brighten the hero.
  • sm:grid-cols-2 lg:grid-cols-4 on the dish list: use lg:grid-cols-3 and remove one .rst-dish for a three-column menu.
  • transform: scale(1.06) in style.css: adjust or remove the photo zoom on hover.
  • min-h-[640px] on the hero section: hero height.

Use cases

  • Restaurants and cafes: a full-bleed food photo hero
  • Menu pages: dish cards with prices
  • Reservations: a table request form
  • Food trucks and bistros: a dark evening look

Accessibility

Landmarks are explicit: a labelled nav, sections connected to their headings with aria-labelledby, and an address in the footer. All photos have descriptive alt text, width and height; only the hero image loads eagerly. Every form field has a visible label, the stepper is a role="group" with labelled minus and plus buttons, and the guest count and form messages use aria-live="polite". Invalid fields get aria-invalid="true" and receive focus. Links and buttons show amber focus outlines, and the zoom effect is disabled under prefers-reduced-motion: reduce.

Usage notes

Replace the Unsplash placeholder photos with your own. Use it once per page, since the id values are unique. The footer credit links to WebDevSnippets; you can keep it or remove it.

Restaurant Landing Page with Food Photos at a glance

Framework
Tailwind CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile, dark design
Category
Landing Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Restaurant Landing Page with Food Photos 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 Tailwind CSS 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):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Restaurant Landing Page with Food Photos – free Tailwind CSS landing page template
Restaurant Landing Page with Food Photos · free Tailwind CSS landing page template

More Landing Pages

Hotel Landing Page with Room Photos – free Tailwind CSS landing page template

Hotel Landing Page with Room Photos

Tailwind CSS hotel landing page with a photo hero, booking form with live price total, room cards that prefill the form, and an amenities section.

Mobile App Landing Page – free Bootstrap 5 landing page template

Mobile App Landing Page

Bootstrap 5 mobile app landing page with a CSS phone mockup, floating notification cards, store buttons, feature grid, steps and a gradient call to action.

SaaS Landing Page – free Tailwind CSS landing page template

SaaS Landing Page

Complete Tailwind CSS SaaS landing page with dark hero, feature grid, monthly/yearly pricing switch, FAQ accordion and footer.