This is a restaurant page build with webpack
Welcome to the Fine & Dine Restaurant Page! This project showcases a dynamic restaurant website built using modern JavaScript practices and bundled with Webpack. The site features tabbed browsing to navigate between Home, Menu, About, and Contact sections.
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/restaurant-page.git cd restaurant-page
-
Initialize the project with npm:
npm init -y
-
Install the required dependencies:
npm install webpack webpack-cli --save-dev npm install html-webpack-plugin --save-dev
-
To start the project, run:
npx webpack
-
For continuous development, you can use:
npx webpack --watch
-
Open
dist/index.html
in your browser to view the project.
restaurant-page/
├── dist/
│ └── index.html
├── src/
│ ├── index.js
│ └── index.html
├── .gitignore
├── package.json
└── webpack.config.js
dist/
- Contains the bundled output files.src/
- Contains the source files.index.js
- The main JavaScript file.index.html
- The HTML skeleton..gitignore
- Specifies files to be ignored by Git.webpack.config.js
- Configuration file for Webpack.
- Modular JavaScript: The project is structured using JavaScript modules for better organization and maintenance.
- Dynamic Content: The content of the
div#content
is generated dynamically using JavaScript functions. - Tabbed Navigation: The site features tabbed navigation to switch between different sections such as Home, Menu, About, and Contact.
- Responsive Design: The layout is designed to be responsive and adaptive to various screen sizes.
- CSS Animations: Smooth transitions and animations for a better user experience.
- HTML: For the basic structure of the web page.
- CSS: For styling the web page.
- JavaScript: For dynamic content and interactions.
- Webpack: For bundling the JavaScript files and managing dependencies.
This project is licensed under the MIT License - see the LICENSE file for details.