MarynaHapon / Chajka

Adaptive Website

Home Page:https://marynahapon.github.io/Chajka/build/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chajka

Adaptive website - link

Technologies

  • Gulp - Automate and enhance your workflow
  • Pug - Terse language for writing HTML templates.
  • Stylus - CSS with superpowers.

Requirements and Use

Requirements

$ npm install -g gulp

Use

$ git clone https://github.com/MarynaHapon/Chajka
$ npm install
$ gulp

Tasks

gulp: Runs the default task (dev) including the following ones :

  • styles
  • pug
  • scripts
  • img
  • svg
  • clean
  • fonts
  • serve
  • watch

Storing Data

File content.json :

"footer": {
  "copyright": "Copyright © 2017 Chajka. All rights reserved."
}

Using Data

File footer.pug

p= content.footer.copyright

File pug.js

content: JSON.parse($.fs.readFileSync('./data/content.json', 'utf8'))

Project Structure

├── /build/                         # Minified, optimized and compiled files.
│   ├── /static/                    # Static folder.
│   │   ├── /css/                   # CSS style files.
│   │   ├── /img/                   # Static files.
│   │   │   └── /content/             # Images folder.
│   │   │   │   └── /feedback           # Images folder.
│   │   │   │   └── /gallery            # Images folder.
│   │   │   │   └── /news               # Images folder.
│   │   │   │   └── /partners           # Images folder.
│   │   │   │   └── /product            # Images folder.
│   │   │   └── /general/             # Images folder.
│   │   └── /js/                    # JS files.
│   └── *.html                      # Rendered and compiled HTMLs from Pug.
├── /data/                          # JSON files with site content.
│   └── content.json                  # JSON file with site content.
│   └── navigation.json               # JSON file with navigation content.
├── /dev/                           # Dev folder.
│   ├── /pug/                       # Pug folder.
│   │   ├── /components/            # Pug folder.
│   │   ├── /layout/                # Pug folder.
│   │   ├── /modules/               # Pug folder.
│   │   ├── /pages/                 # Pug folder.
│   │   └── mixins.pug              # Pug folder.
│   ├── /static/                    # Static folder.
│   │   ├── /fonts/                 # Fonts folder.
│   │   ├── /img/                   # Dev folder.
│   │   │   └── /content/             # Images folder.
│   │   │   │   └── /feedback           # Images folder.
│   │   │   │   └── /gallery            # Images folder.
│   │   │   │   └── /news               # Images folder.
│   │   │   │   └── /partners           # Images folder.
│   │   │   │   └── /product            # Images folder.
│   │   │   └── /general/             # Images folder.
│   │   │   └── /svg/                 # Images folder.
│   │   ├── /js/                    # JavaScript files.
│   │   ├── /stylus/                # Stylus  folder.
│   │   │   └── /components/        # Stylus  folder.
│   │   │   └── /modules/           # Stylus  folder.
│   │   │   └── /pages/             # Stylus  folder.
│   │   │   └── /content/           # Stylus  folder.
│   │   │   └── common_styles.styl    # Stylus  file.
│   │   │   └── fonts.styl            # Stylus  file.
│   │   │   └── libs.styl             # Stylus  file.
│   │   │   └── main.styl             # Stylus  file.
│   │   │   └── media.styl            # Stylus  file.
│   │   │   └── mixins.styl           # Stylus  file.
│   │   │   └── vars.styl             # Stylus  file.
├── /node_modules/                  # Node modules dependencies and packages.
└── gulpfile.js              # Gulp automatization file.

Starter Kit

gulp4start

About

Adaptive Website

https://marynahapon.github.io/Chajka/build/index.html


Languages

Language:CSS 62.0%Language:HTML 29.1%Language:JavaScript 8.9%