项目作者: lucasweng

项目描述 :
A website project from the Udemy course - Git a Web Developer Job: Mastering the Modern Workflow by Brad Schiff
高级语言: JavaScript
项目地址: git://github.com/lucasweng/travel-site.git
创建时间: 2017-09-25T14:18:11Z
项目社区:https://github.com/lucasweng/travel-site

开源协议:MIT License

下载


Travel Site

A website project from the Udemy course - Git a Web Developer Job: Mastering the Modern Workflow by Brad Schiff

Live Demo

To see the website in action, please go to https://lucasweng.github.io/travel-site/

or

To run that demo on your own computer, please follow the instructions in Getting Started

Features

  • Mobile-first performance:

    • Lazy loading images and icon sprites for faster page load time

    • Responsive images for resolution switching to save bandwidth

  • Responsive web design:

    • Responsive images for different cropping situations
  • Support for legacy browsers:

    • Use picturefill as a responsive image polyfill

    • Test browser support for SVGs and flexbox with gulp-modernizr

    • Convert SVGs to PNGs with gulp-svg2png

  • Reveal page contents on scroll

  • Smooth page scroll to an anchor on the same page

Getting Started

Clone or download this repository

  1. git clone https://github.com/lucasweng/travel-site.git

Install dependencies

  1. npm install

or

  1. yarn install

Start the website

  1. gulp watch

It will open a new tab in your browser and run the website. Should it not open, visit http://localhost:3000

See the website locally with other devices

The previous command will run Browsersync, and you will find the following in the terminal:

  1. [Browsersync] Access URLs:
  2. -------------------------------------
  3. Local: http://localhost:3000
  4. External: http://192.168.0.10:3000
  5. -------------------------------------
  6. UI: http://localhost:3001
  7. UI External: http://192.168.0.10:3001
  8. -------------------------------------
  9. [Browsersync] Serving files from: app

You can view the website in synchronised action across all your devices with the External URL.

Comments in code

Some comments in the source code are course notes and therefore might not seem necessary from a developer’s point of view.

Built with

Front-end

Testing

Analytics

License

MIT