GithubHelp home page GithubHelp logo

nikola-wd / gbs-starter Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 0.0 991 KB

Boilerplate (starter) based on Gulp, Bootstrap, Sass for rapid development of UI templates

License: GNU General Public License v3.0

JavaScript 3.06% HTML 4.76% CSS 92.18%

gbs-starter's Introduction

GBS - starter


  • Is a lightweight starter for rapid development of static HTML / CSS / JS (es6) websites or templates to be used with backend frameworks or CMSes.

  • It makes use of: G - Gulp B - Bootstrap (Native Bootstrap without jQuery dependency) S - Sass

  • Sass(.scss) architecture is made following css naming and file organization naming conventions / methodologies such as:

    • BEM
    • SMACSS
    • OOCSS
    • Atomic CSS
  • Apart from having everything modularized, in most of the files there is starter code for bootstrap elements that you used to code over and over with each new project, and also a folder of Bootstrap components for quick reference and copy/pasting.

  • index.html page already includes everything that every new website (with typical layout) needs:

    • Header with navigation and a brand logo,
    • Main area for content,
    • Footer that is always at the bottom of the page, no matter how much content there is on page. (done with amazing css feature: Flexbox)

  • All you need to do in order to start a project, asuming that you already have NodeJS and Gulp CLI installed on your system, is to cd into the working directory and run the command 'gulp' which will start a local server, watch your .scss | html | js changes and everytime you save the file it will: compile .scss files to a single style.css file and refresh a tab.

  • Once you finish working you can stop the gulp command and run 'gulp combineMQ' which will combine all the repeating media queries in style.css and minimize style.css file to be used in production.


  • SASS file organization

  • BASE (all the default settings)

    • _base.scss (includes all the files in this dir)
    • _defaults.scss
    • _fonts.scss
    • _helpers.scss
    • _typography.scss
    • _variables.scss
  • LAYOUT (general layout elements of the page)

    • _footer.scss
    • _header.scss
    • _hero.scss
    • _layout.scss (includes all the files in this dir)
  • PAGES (meant for all the page specific css, that is not used somewhere else)

    • _pages.scss (includes all the files in this dir)
    • _homepage.scss
  • UI-ELEMENTS (most of the bootstrap components + a support for responsive video embed)

    • _accordion.scss
    • _breadcrmbs.scss
    • _buttons.scss
    • _dropdowns.scss
    • _forms.scss
    • _icons.scss
    • _lists.scss
    • _media-obj.scss
    • _modals.scss
    • _pagination.scss
    • _panel.scss
    • _progress-bars.scss
    • _sliders.scss
    • _tables.scss
    • _tooltips.scss
    • _ui-elements.scss (includes all the files in this dir)
    • _video.scss
  • style.scss (inclides all the above directories and compiles to style.css)

gbs-starter's People

Contributors

nikola-ivanov-247labs avatar nikola-wd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.