Modern Site using BEM
Modern Site using BEM
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
Follow the instructions below to set up the environment and run this project on your local machine
Download ZIP or clone this repo
> git clone https://github.com/amadoucss/travelsite.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
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" ... >