← Back to all products
$19
Restaurant Template
Restaurant & food service template with menu showcase, reservations, and gallery.
JavaScriptMarkdownJSON
📄 Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
📖 Interactive Reader (Free Preview) ⚙ Try Demo Tools 📦 Download Free Sample📁 File Structure 7 files
restaurant-template/
├── LICENSE
├── README.md
├── assets/
│ └── README.md
├── index.html
├── script.js
└── style.css
📖 Documentation Preview README excerpt
Restaurant Template
A warm, inviting restaurant and food service website template. Designed for restaurants, cafes, bars, and bakeries with menu display, gallery, and reservation functionality.
Price
$19 -- one-time purchase, lifetime updates.
Features
- Fully responsive -- Mobile-first design with tablet and desktop breakpoints
- Dark/Light mode -- Built-in theme toggle, persists to localStorage
- No dependencies -- Pure HTML, CSS, and vanilla JavaScript
- Under 400KB -- Lightweight and fast-loading
- Scroll animations -- Reveal-on-scroll using Intersection Observer
- SEO ready -- Semantic HTML5, meta tags, Open Graph tags
- Accessible -- ARIA labels, keyboard navigation, proper contrast ratios
- CSS custom properties -- Easy color, font, and spacing customization
Sections
- Hero with restaurant name and ambiance image
- About section with story and values
- Menu display with categories and prices
- Photo gallery with lightbox effect
- Reservation / booking form
- Hours and location with map placeholder
- Customer reviews / testimonials
- Footer with contact info and social links
What's Included
restaurant-template/
├── index.html # Main HTML (all sections)
├── style.css # Complete styling + dark mode + responsive
├── script.js # Theme toggle, scroll reveal, menu tabs, reservation form
├── assets/
│ └── README.md # Image replacement guide
├── manifest.json # Product file manifest
├── README.md # This file
└── LICENSE # MIT License
Installation
1. Download and unzip the template
2. Open index.html in your browser
3. Edit the HTML content with your restaurant details
4. Deploy to any static hosting provider
# Open locally
open index.html
# Or use a local server
python -m http.server 8000
Customization
... continues with setup instructions, usage examples, and more.
📄 Code Sample .js preview
script.js
/* ============================================================
Ember & Oak — Restaurant Template
script.js
============================================================
Handles: Theme Toggle, Scroll Reveal, Mobile Navigation,
Smooth Scroll, Menu Tabs, Reservation Form, Header Effect.
Zero dependencies — pure vanilla JavaScript.
============================================================ */
(function () {
'use strict';
/* ----------------------------------------------------------
1. THEME TOGGLE
Persists to localStorage; falls back to prefers-color-scheme.
---------------------------------------------------------- */
const Theme = {
KEY: 'theme',
toggle: null,
init() {
this.toggle = document.getElementById('theme-toggle');
if (!this.toggle) return;
const saved = localStorage.getItem(this.KEY);
const preferred = saved || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
this.apply(preferred);
this.toggle.addEventListener('click', () => {
const next = document.documentElement.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
this.apply(next);
localStorage.setItem(this.KEY, next);
});
},
apply(theme) {
document.documentElement.setAttribute('data-theme', theme);
if (this.toggle) {
const isDark = theme === 'dark';
this.toggle.setAttribute('aria-pressed', String(isDark));
this.toggle.setAttribute('aria-label', isDark ? 'Switch to light theme' : 'Switch to dark theme');
}
}
};
/* ----------------------------------------------------------
2. SCROLL REVEAL
IntersectionObserver on [data-reveal] → add 'is-visible',
then unobserve. Reduced-motion users see everything immediately.
---------------------------------------------------------- */
const Reveal = {
init() {
# ... 268 more lines ...