Coder Social home page Coder Social logo

davidagredano / restaurant-page Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.46 MB

Dynamic restaurant website built with JavaScript, showcasing a modular, component-based architecture and DOM manipulation techniques.

Home Page: https://davidagredano.github.io/restaurant-page/

JavaScript 70.13% HTML 1.58% CSS 28.29%
component-based dom-manipulation es6-modules figma javascript single-page-application single-page-website ui-ux-design web-development webpack

restaurant-page's Introduction

Restaurant Page — Live Demo

restaurant-page-preview

This project is part of The Odin Project’s JavaScript Course curriculum. It aims to apply everything learned in the immediate previous lessons, specifically ES6 Modules and Webpack, while continuing to practice DOM manipulation.

In this project, I dynamically render a restaurant homepage using JavaScript only, without any front-end frameworks like React, Vue, or Angular. The content pages (Home, Menu, Contact) function as tabs that render in the same URL, simulating a Single Page Application (SPA). Users can navigate through the different sections by using the navigation buttons to select the content to be displayed.

Features

  • Dynamic Content Loading: The entire website content is dynamically generated using JavaScript, with no hardcoded HTML for the main sections.
  • Modular Architecture: The project leverages ES6 modules, allowing for a clean and maintainable codebase by separating functionality into distinct modules.
  • Component-Based UI: The UI is broken up into components, each separated into its own module. Every component is a JavaScript function that returns a DOM element or a Fragment, which is then appended to the corresponding HTML content container on demand.
  • Webpack Configuration: Utilizes Webpack for bundling JavaScript modules and managing assets. The webpack.config.js file includes the specification of an entry point file and an output directory, CSS loaders for handling CSS files, asset loaders for managing image files, and HtmlWebpackPlugin for automatically generating an HTML file that includes the bundled JavaScript.
  • Single Page Application (SPA): The site behaves like an SPA with different content pages (Home, Menu, Contact) rendered on the same URL. Navigation between these pages is seamless and handled via JavaScript.
  • Event-Driven Interface: Implements event listeners for navigation buttons to handle tab switching and content rendering dynamically.
  • Custom Design: The entire website was designed by myself using Figma, following a comprehensive workflow. This included requirements definition, sitemap creation, content modeling, content creation, wireframing, high-fidelity mock-up creation, and interactive prototype development.

Technologies Used

  • JavaScript
  • Webpack
  • npm
  • HTML5
  • CSS3
  • Figma

Installation

To set up the project locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/davidagredano/restaurant-page.git
  2. Navigate to the project directory:

    cd restaurant-page
  3. Install dependencies:

    npm install
  4. Start the development server:

    npm start

Project Structure

/project-root
├── /node_modules
├── /src
│   ├── /components
│   ├── /home
│   ├── /menu
│   ├── /contact
│   ├── index.html
│   ├── index.css
│   ├── transitions.css
│   ├── index.js
│   └── utils.js
├── .gitignore
├── package.json
├── package-lock.json
└── webpack.config.js

Contact Me

Hello! 👋 I'm David, the creator of this project. If you have any questions, suggestions, or just want to chat about web development or anything else related to this project, feel free to reach out to me.

My email is [email protected].

Looking forward to hearing from you!

restaurant-page's People

Contributors

davidagredano avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.