Giter Club home page Giter Club logo

mcdonalds-dom-manipulation's Introduction

McDonalds-DOM-manipulation

Welcome to my McDonald's website clone project, using JavaScript to manipulate the DOM.

Description

This clone is based on the URL:(https://www.mcdonalds.com/us/en-us/about-our-food/meet-our-food-experts.html), and aims at mimicing structuring, layout and styling as much as possible.

Structuring

I have structured the website using the appropriate layout, such as grid or flexbox, mainly by oberving the page and tried to limit my usage of Chrome DevTools to the bare minimums such as font-sizes, exact background color codes etc.

Special JavaScript features

To limit duplicating code I have made functions to create repetitive code for instance for styling similar elements. I also added a addEventListener to turn an arrow icon on mouse clicks.

Additional notes

Gulpfile automation

I have created a gulpfile.js to minify HTML, CSS and JS, as well as compile .scss to .css. This gulpfile also watches for changes, and then writes all of the source code file in src/ subfolder into the dist/ subfolder (not in version control). This automates the process workflow and is easily done by simply running 'gulp' in the command line in the root directory. (gulp-uglify had to be replaced with gulp-terser, as gulp-uglify does not support ES6 at this time)

mcdonalds-dom-manipulation's People

Contributors

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