Skip to content

Instantly share code, notes, and snippets.

@hfase01
Created June 24, 2012 19:41
Show Gist options
  • Save hfase01/2984641 to your computer and use it in GitHub Desktop.
Save hfase01/2984641 to your computer and use it in GitHub Desktop.
.navbar.navbar-fixed-top
.navbar-inner
.container
%a.btn.btn-navbar{"data-target" => ".nav-collapse", "data-toggle" => "collapse"}
%span.icon-bar
%span.icon-bar
%span.icon-bar
%a.brand{:href => "#"} Project name
.nav-collapse
%ul.nav
%li.active
%a{:href => "#"} Home
%li
%a{:href => "#about"} About
%li
%a{:href => "#contact"} Contact
/ /.nav-collapse
.container
/ Main hero unit for a primary marketing message or call to action
.hero-unit
%h1 Hello, world!
%p This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.
%p
%a.btn.btn-primary.btn-large Learn more »
/ Example row of columns
.row
.span4
%h2 Heading
%p Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
%p
%a.btn{:href => "#"} View details »
.span4
%h2 Heading
%p Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
%p
%a.btn{:href => "#"} View details »
.span4
%h2 Heading
%p Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
%p
%a.btn{:href => "#"} View details »
%hr/
%footer
%p © Company 2012
/ /container
/
Le javascript
\==================================================
/ Placed at the end of the document so the pages load faster
%script{:src => "/js/jquery.js"}
%script{:src => "/js/bootstrap-transition.js"}
%script{:src => "/js/bootstrap-alert.js"}
%script{:src => "/js/bootstrap-modal.js"}
%script{:src => "/js/bootstrap-dropdown.js"}
%script{:src => "/js/bootstrap-scrollspy.js"}
%script{:src => "/js/bootstrap-tab.js"}
%script{:src => "/js/bootstrap-tooltip.js"}
%script{:src => "/js/bootstrap-popover.js"}
%script{:src => "/js/bootstrap-button.js"}
%script{:src => "/js/bootstrap-collapse.js"}
%script{:src => "/js/bootstrap-carousel.js"}
%script{:src => "/js/bootstrap-typeahead.js"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment