Giter Club home page Giter Club logo

crios's Introduction

Crios

Layout crios. Site layout is taken from https://SYMU.CO/FREEBIES. Layout of page is done repeatedly using bootstap and foundation.

Requirements

  • node v6.7.0
  • npm v3.10.3

Technology

CSS

HTML

Browser support

The autoprefixer is configured to use Flexbox Layout and to the following browsers:

  • 3 latest versions of modern browsers. At the time of writing this is:
  • IE Edge 16+
  • Chrome 76+
  • FireFox 68+
  • Safari 11+
  • Opera 62+
  • IE 11+

Setting

Installing the necessary modules:

npm i

Structure of project

_blocks

It contains "blocks", the names of folders and files in them should be the same.

_images

Folder for images that are used by embedding directly in HTML or CSS.

_pages

Similarly _blocks. Exclusion: If the project uses a common style file, then it should be located here: _pages/common/common.css.

fonts

Folder for fonts. All files of each typeface should be in separate folders and have the same name along with the folder in which they are located.

images

Folder for images.

scripts

Folder for scripts.

stylesheets

Folder for styles. Must contain 2 types of CSS file. Original and minimized with prefix .min.

Building a project with Gulp

All tasks for which the project is being built are in the file gulpfile.js.

Gulp tasks

$ gulp go

  1. Starts the server.
  2. Monitors the changes of all files located in folders _blocks and _pages.
  3. Collects CSS files from folders _pages/name of page and puts in a folder stylesheets.
  4. Minimizes the resulting CSS files and puts it next to the originals.
  5. Collects HTML files from folders _pages/name of page and puts in the root of the project.
  6. Aligns indents in received HTML files.

$ gulp go -page index

It helps speed up the build due to the fact that only one page is collected.

  1. Starts the server.
  2. Monitors the changes of all files located in folders _blocks and only for _pages/index.pug and _pages/index.ัss, all other files from the folder _pages are ignored.
  3. Collects CSS files from folders _pages/index/index.css and puts in a folder stylesheets.
  4. Minimizes the resulting CSS files and puts it next to the originals.
  5. Collects HTML files from folders _pages/index/index.pug and puts in the root of the project.
  6. Aligns indents in received HTML files.

index specified for example, instead of it can be any page title

$ gulp go -page index -style common

It helps speed up the build due to the fact that only one page is collected. -style common should be used if the project has a common CSS file for all pages.

  1. Starts the server.
  2. Monitors the changes of all files located in folders _blocks and only for _pages/index.pug and _pages/common/common.ัss, all other files from the folder _pages are ignored.
  3. Collects CSS files from folders _pages/common/common.css and puts in a folder stylesheets.
  4. Minimizes the resulting CSS files and puts it next to the originals.
  5. Collects HTML files from folders _pages/index/index.pug and puts in the root of the project.
  6. Aligns indents in received HTML files.

index specified for example, instead of it can be any page title

$ gulp build

Final build before commit.

  1. Collects CSS files from folders _pages/name of page and puts in a folder stylesheets.
  2. Minimizes the resulting CSS files and puts it next to the originals.
  3. Collects HTML files from folders _pages/name of page and puts in the root of the project.
  4. Aligns indents in received HTML files.

๐Ÿ˜Š

Enjoy your coding!

crios's People

Contributors

natalialopatkina avatar

Watchers

James Cloos avatar Roman Pogorelov avatar Alex Shkurko 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.