Git Product home page Git Product logo

restaurant-page's Introduction

restaurant-page

A restaurant page which renders dynamically using ES6 modules & Webpack (HTML, CSS & JS).

Demo here

Image of live version

Thoughts

I feel like using ES6 modules is a huge upgrade in overall readability and makes separating code into modules feel so much better and more intuitive than just creating closures using IIFE's. I really like the overall concept of Webpack and using npm to install dependencies also feels much smoother and easier than having to download them directly like I've been doing before (setting up and using Sanitize took me around 3 seconds using npm and then importing it!). I think I've really began to appreciate the way that The Odin Project structures it's syllabus and is gradually easing us into using React. I'm already looking forward to being able to use JSX instead of manually creating nodes & content using vanilla JS!

Possible Improvements

  • I did consider making the mobile menu a column and have it operate more like a modal. I know this is the traditional way to do it and probably a slightly better user experience as it can give more space to click the option you need.
  • As always the styles could be improved but since the purpose of this exercise was to get comfortable with Webpack I had to stop myself from being drawn into spending too long on CSS!
  • I didn't end up using the Webpack HTML plugin (with a template) but think I'll do this in future since I did come across issues with the hashes changing when I updated an image.
  • I have used innerHTML at times (although I've avoided using it where there is an opportunity to enter user data). Since I'm planning to use React in the long run this shouldn't matter.

Credits

restaurant-page's People

Contributors

casssb 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.