Coder Social home page Coder Social logo

marynahapon / chajka Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 8.93 MB

Adaptive Website

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

HTML 29.09% CSS 61.99% JavaScript 8.92%
pug stylus gulp json mixins adaptive website landing-page student-project

chajka's Introduction

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

chajka's People

Contributors

marynahapon avatar

Stargazers

m avatar

Watchers

James Cloos avatar  avatar

Forkers

miyamotok0105

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.