A hands-on project from Udemy: Git a Web Developer Job: Mastering The Modern Workflow
-
Revealing elements on scroll
-
Icon sprite for faster page loads
-
Lazy loading images for faster page loads
-
Smooth scrolling to anchor links
-
Responsive web design (RWD): mobile-first approach, responsive images
-
Support for responsive images and svg icons in legacy browsers
- Add scroll to top feature
Follow the instructions below to set up the environment and run this project on your local machine
- Node.js
- Download ZIP or clone this repo
> git clone https://github.com/rubychi/udemy-travel-site.git
- Install dependencies via NPM
> npm install
- Install gulp package globally to execute gulp command on your machine
> npm install gulp -g
- Start the website
> gulp watch
- See it up and running on http://localhost:3000
Run the following command (all files will be put inside the folder "docs")
> gulp build
- babel
- jquery
- jquery-smooth-scroll
- waypoints
- lazysizes
- picturefill
- normalize.css
- postcss
- webpack
- gulp
-
This project follows B.E.M rules to limit cascade and create single-responsibility blocks for making the relationship between HTML and CSS clear
- B: Block - an independent, reusable part of the design
.large-hero { positiion: relative; }
- E: Element (__) - belongs to a block and cannot be used outside of the block it belongs to
.large-hero__title { font-weight: 300; color: #2f5572; font-size: 4.8rem; }
- M: Modifier (--) - can be used on a block or an element to indicate a change to the default state of an object
<a class="btn btn--orange btn--large" ... >