Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.57 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.57 KB

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

All logo SVG code is owned by Metafizzy or clients who have purchased the logo. All rights reserved.

Remaining code is MIT Licensed