Code Monkey home page Code Monkey logo

html-css-travel-site's Introduction

Travel site

A travel website to understand BEM architecture, PostCSS and Webpack.

Demo

See Demo deployed on Netlify

See Demo deployed on Netlify

Git

  • developing new features with git branch and integrating them with git merge and --no-ff option.

CSS

  • using BEM architecture to organize CSS blocks.
  • identifying design patterns (wrapper, page section, row, columns, etc.).
  • applying PostCSS syntax for nested CSS, variables and mixins.
  • designing with the mobile-first philosophy in mind.
  • handling responsive images with art direction (cropping), srcset and sizes.
  • leveraging the power of flexbox.
  • building a header, a footer, a testimonial section and a features section.
  • creating a primary-nav menu and a sticky header on desktop.
  • adding CSS effects with transition and transform properties.

JavaScript

  • organizing JavaScript code with classes in an Object-Oriented Programming approach.
  • revealing elements on scroll for features and testimonials.
  • limiting function calls with lodash throttle and debounce.
  • showing active link on scroll in the primary-nav menu.
  • building a modal lightbox overlay for getting in touch.
  • splitting JavaScript code to load Modal.js only when needed.
  • lazy loading images with lazysizes.
  • integrating React in an existing project.

Webpack

  • enabling webpack-dev-server for hot reload.
  • configuring npm run dev and npm run build in webpack.config.js.
  • using mini-css-extract-plugin and cssnano to extract, minify and compress CSS.
  • using html-webpack-plugin to copy index.html with proprer chunkhash for CSS and JS files.
  • using fs-extra to copy assets in docs directory.

Netlify

  • deploying on Netlify.
  • granting access to a secret area with Axios and Netlify Functions.
  • testing requests with Postman.

Based on Git a Web Developer Job: Mastering the Modern Workflow by Brad Schiff (2019).

html-css-travel-site's People

Contributors

johndoelearncode avatar learnwebcode avatar solygambas avatar

Stargazers

 avatar  avatar

Watchers

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