This is a simple front-end template (HAML + SCSS)
bundle exec guard Configuración basada en: https://devcenter.heroku.com/articles/static-sites-ruby
- Customize template
- Generate HTML/CSS
- F5 & Enjoy!
-@autor="My_name"
-@lang= "en"
-@title= "Hello World!"
-@description= "My awesome website!"
-@keywords="keyword1, keyword2, keywordn"
Tip: Check to cdnjs for the last libraries versions
-@BootstrapV= "4.0.0-alpha.6"
-@TetherV="1.4.0"
-@NormalizeV="5.0.0"
-@FlexboxGridV="6.3.1"
-@jQueryV="3.1.1"
-menu =["section-1", "section-2", "section-3", "section-n"]
-#Replace with your own sections, this is example code:
-menu.each do |item|
%section.text-center.full{id:"#{item}"}
.box
%h1.display-4= item
$ haml ./src/index.haml index.html
Tip: Check to MaterialPalette.com to obtain your combinations
$dark-primary-color:#303f9f;
$primary-color:#3f51b5;
$light-primary-color:#c5cae9;
$text-color:#FFFFFF;
$accent-color:#ff5252;
$primary-text-color:#212121;
$secondary-text-color:#757575;
$divider-color:#BDBDBD;
$body-color:#FAFAFA;
$ sass ./src/styles.scss ./css/styles.css
Use Prepros
$ bundle exec guard
- base HAML
- base SCSS
- Generate HTML/CSS
- Add analytics
- Bootstrap4
- simple variables
- colors with SCSS
- add sections +navbar-items with an array
- demo (config & deploy)