Static site, built with Gulp for tasks, Handlebars for templating.
gulp
- build the production site, concatenate CSS and JS, minify JSgulp dev
- build the site, but use separate CSS and JS files for debugging
assets/
- files that get copied intobuild/
build/
- where static site gets builtcss/
- global and base styles that don't fit inmodules/
data/
- Site and logo data files.img/
- Images (not included in repo)js/
- boilerplate JSmodules/
- See belowsandbox/
- A place to demo
Images have been kept out of the repo.
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