Skip to content

jrodrigopuca/HAML-SCSS-Boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAML-SCSS-Boilerplate

This is a simple front-end template (HAML + SCSS)

bundle exec guard Configuración basada en: https://devcenter.heroku.com/articles/static-sites-ruby

How-to use

  • Customize template
  • Generate HTML/CSS
  • F5 & Enjoy!

HAML (./src/index.haml)

Change values with basic data

-@autor="My_name" -@lang= "en" -@title= "Hello World!" -@description= "My awesome website!" -@keywords="keyword1, keyword2, keywordn"

Change values with last libraries versions

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"

Replace values with names for nav items or sections

-menu =["section-1", "section-2", "section-3", "section-n"]

Change with your content

-#Replace with your own sections, this is example code: -menu.each do |item| %section.text-center.full{id:"#{item}"} .box %h1.display-4= item

Open your Terminal and generate your HTML

$ haml ./src/index.haml index.html

SCSS (./src/styles.scss)

Replace values with your colors

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;

Open your Terminal and generate your CSS

$ sass ./src/styles.scss ./css/styles.css

Enjoy!

Alternative to generate HTML/CSS

Use Prepros

Alternative 2:

$ bundle exec guard

TO-DO

  • 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)

Inspiration

Create your own personal boilerplate

Building Your Own Boilerplate

cdnjs API

html5-boilerplate

Google Analytics

HAML Reference

Intro to Sassy CSS

About

front-end template (HAML + SCSS)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published