A dynamic restaurant homepage built with JavaScript modules and Webpack, demonstrating DOM manipulation, tab navigation, and modular CSS styling. Bundled using split Webpack configs for development and production.
-
Dynamic content: Homepage, Menu, and About sections generated via JavaScript.
-
Tabbed navigation: Switch between Home, Menu, and About without page reload.
-
Responsive design: Flexbox and CSS Grid layouts for structured content.
-
Category-specific styling: Menu items styled according to their type.
-
Images with alt text: All food images include descriptive alt attributes.
-
Footer with author link: Includes copyright and GitHub link.
-
Clone the repository:
git clone https://github.com/nishadnp/restaurant-page.git cd restaurant-page -
Install dependencies:
npm install
-
Start development server:
npm run start
-
Open http://localhost:8080 in your browser.
npm run buildThis bundles the application into the dist folder for production.
Deployed via GitHub Pages:
npm run deploysrc/
├─ index.js # Entry point
├─ home.js
├─ menu.js
├─ about.js
├─ styles.css
├─ assets/
└─ template.html # Base HTML
Nishad Np | @nishadnp