A single-page restaurant website built using vanilla JavaScript and Webpack. All content is dynamically rendered through JavaScript — including tab navigation — with no hardcoded page content. This project serves as a practice assignment to explore modular JS, Webpack configuration, and Single Page Application (SPA) architecture.
- JavaScript (ES6 Modules)
- HTML5
- CSS3
- Webpack
→webpack-dev-server
,HtmlWebpackPlugin
,asset modules
- ⚙️ Webpack setup with build and dev server
- 🔗 Modular JS structure (
home
,menu
,contact
) - 🧠 SPA-style dynamic tab switching via DOM manipulation
- 🎨 Background image and Google Fonts
- 🖼️ Favicon and clean UI setup
- 🌍 Deployed to Netlify
restaurant-page/
├── dist/ # Webpack output (auto-generated)
├── src/
│ ├── assets/ # Static assets (background, favicon, etc.)
│ ├── modules/ # JS modules for each tab
│ ├── index.js # Entry point
│ ├── style.css # Main styling
│ └── template.html # HTML base (injected via HtmlWebpackPlugin)
├── .gitignore
├── package.json
├── webpack.config.js
└── README.md
git clone https://github.com/singharyan006/restaurant-page.git
cd restaurant-page
npm install
npm start
npm run build
- Improve mobile responsiveness and layout.
- Add animations/transitions between tab switches.
- Add form functionality for Contact section.
- Replace dummy content with real menu data.