Evanto / logo.pizza

:pizza: Logo Pizza site

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logo Pizza site

Static site, built with Gulp for tasks, Handlebars for templating.

Tasks

  • gulp - build the production site, concatenate CSS and JS, minify JS
  • gulp dev - build the site, but use separate CSS and JS files for debugging

Structure

  • assets/ - files that get copied into build/
  • build/ - where static site gets built
  • css/ - global and base styles that don't fit in modules/
  • data/ - Site and logo data files.
  • img/ - Images (not included in repo)
  • js/ - boilerplate JS
  • modules/ - See below
  • sandbox/ - A place to demo

Images have been kept out of the repo.

Modules

Modules are re-usable components used throughout the site. A module may consist of template, JS, and CSS files.

modules/
  custom-colors/
    custom-colors.css
    custom-colors.js
    custom-colors.mustache
    custom-color.mustache

BEM is used for CSS code style.

.custom-color {} /* block */
.custom-color__preview {} /* element, child */
.custom-color--dark {} /* modifier */

JavaScript can be initialized for each element with data-js attribute.

<div class="custom-colors" data-js="custom-colors">
LogoPizza.modules['custom-colors'] = function( elem ) {
  // do something with elem
};

By Metafizzy

About

:pizza: Logo Pizza site


Languages

Language:HTML 39.0%Language:JavaScript 34.0%Language:CSS 26.8%Language:Makefile 0.1%