Skip to content

Commit

Permalink
add theme, sticky-footer, sticky-footer-navbar, signin, offcanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelkrim committed Aug 25, 2013
1 parent 45ce655 commit eee8ff3
Show file tree
Hide file tree
Showing 17 changed files with 696 additions and 62 deletions.
45 changes: 27 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ bootstrap3-jade-node
## Documentation

+ start the server
+ click on the links leading you to the [Bootstrap Twitter] templates translated into Jade
+ click on the links leading you to the [Twitter Bootstrap] templates translated into Jade
+ Use the *.jade files into your projects !

+ html vs. jade conversion
+ how did we convert the html into jade
+ We use [html2jade] to translate automatically the html into a jade file
+ Remove the characters as Jade complains as it believes it has to interpret the code `=================================================`
+ replace inside the jade file the path to the JS and CSS files from [Bootstrap Twitter]: `../..` with the parameter `#{pathToAssets}`
Expand All @@ -36,28 +36,37 @@ bootstrap3-jade-node
## Contributing
Feel free to help me convert all the templates:

+ [X] [carousel](http://twbs.github.io/bootstrap/examples/carousel/)
+ [X] [grid](http://twbs.github.io/bootstrap/examples/grid/)
+ [X] [jumbotron](http://twbs.github.io/bootstrap/examples/jumbotron/)
+ [X] [jumbotron-narrow](http://twbs.github.io/bootstrap/examples/jumbotron-narrow/)
+ [X] [justified-nav](http://twbs.github.io/bootstrap/examples/justified-nav/)
+ [X] [navbar](http://twbs.github.io/bootstrap/examples/navbar/)
+ [X] [navbar-fixed-top](http://twbs.github.io/bootstrap/examples/navbar-fixed-top/)
+ [X] [navbar-static-top](http://twbs.github.io/bootstrap/examples/navbar-static-top/)
+ [X] [non-responsive](http://twbs.github.io/bootstrap/examples/non-responsive/)
+ [ ] [offcanvas](http://twbs.github.io/bootstrap/examples/offcanvas/)
+ [ ] [signin](http://twbs.github.io/bootstrap/examples/signin/)
+ [X] [starter-template](http://twbs.github.io/bootstrap/examples/starter-template/)
+ [ ] [sticky-footer](http://twbs.github.io/bootstrap/examples/sticky-footer/)
+ [ ] [sticky-footer-navbar](http://twbs.github.io/bootstrap/examples/sticky-footer-navbar/)
+ [ ] [theme](http://twbs.github.io/bootstrap/examples/theme/)
- [X] [carousel](http://twbs.github.io/bootstrap/examples/carousel/)
- [X] [grid](http://twbs.github.io/bootstrap/examples/grid/)
- [X] [jumbotron](http://twbs.github.io/bootstrap/examples/jumbotron/)
- [X] [jumbotron-narrow](http://twbs.github.io/bootstrap/examples/jumbotron-narrow/)
- [X] [justified-nav](http://twbs.github.io/bootstrap/examples/justified-nav/)
- [X] [navbar](http://twbs.github.io/bootstrap/examples/navbar/)
- [X] [navbar-fixed-top](http://twbs.github.io/bootstrap/examples/navbar-fixed-top/)
- [X] [navbar-static-top](http://twbs.github.io/bootstrap/examples/navbar-static-top/)
- [X] [non-responsive](http://twbs.github.io/bootstrap/examples/non-responsive/)
- [X] [offcanvas](http://twbs.github.io/bootstrap/examples/offcanvas/)
- [X] [signin](http://twbs.github.io/bootstrap/examples/signin/)
- [X] [starter-template](http://twbs.github.io/bootstrap/examples/starter-template/)
- [X] [sticky-footer](http://twbs.github.io/bootstrap/examples/sticky-footer/)
- [X] [sticky-footer-navbar](http://twbs.github.io/bootstrap/examples/sticky-footer-navbar/)
- [X] [theme](http://twbs.github.io/bootstrap/examples/theme/)

## Release History

TODOs

+ add front end test against html pages

v2013-08-25

+ Convert [offcanvas.html](http://twbs.github.io/bootstrap/examples/offcanvas/) template into [offcanvas.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)
+ Convert [signin.html](http://twbs.github.io/bootstrap/examples/signin/) template into [signin.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)
+ Convert [starter-template.html](http://twbs.github.io/bootstrap/examples/starter-template/) template into [starter-template.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)
+ Convert [sticky-footer.html](http://twbs.github.io/bootstrap/examples/sticky-footer/) template into [sticky-footer.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)
+ Convert [sticky-footer-navbar.html](http://twbs.github.io/bootstrap/examples/sticky-footer-navbar/) template into [sticky-footer-navbar.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)
+ Convert [theme.html](http://twbs.github.io/bootstrap/examples/theme/) template into [theme.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)

v2013-08-24

+ Convert [grid.html](http://twbs.github.io/bootstrap/examples/grid/) template into [grid.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)
Expand All @@ -77,7 +86,7 @@ v2013-08-22

v2013-08-21

+ [Twitter Bootstrap] 3 is just released, it is time to convert HTML into Jade templates
- [Twitter Bootstrap] 3 is just released, it is time to convert HTML into Jade templates
+ Convert [starter-template.html](http://twbs.github.io/bootstrap/examples/starter-template/) template into [starter-template.jade](https://github.com/ALT-F1/bootstrap3-jade-node-express-grunt/tree/master/app/views/bootstrap3-templates)

## License
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/carousel.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/jumbotron-narrow.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/jumbotron.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/justified-nav.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/navbar-fixed-top.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/navbar-static-top.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/navbar.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/non-responsive.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
127 changes: 127 additions & 0 deletions app/views/bootstrap3-templates/offcanvas.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
doctype 5
html(lang='en')
head
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
meta(name='description', content='')
meta(name='author', content='')
link(rel='shortcut icon', href='#{pathToAssets}/assets/ico/favicon.png')
title Off Canvas Template for Bootstrap
// Bootstrap core CSS
link(href='#{pathToAssets}/dist/css/bootstrap.min.css', rel='stylesheet')
// Custom styles for this template
link(href='#{pathToSelectedTemplateWithinBootstrap}/offcanvas.css', rel='stylesheet')
// HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
//if lt IE 9
script(src='#{pathToAssets}/assets/js/html5shiv.js')
script(src='#{pathToAssets}/assets/js/respond.min.js')
body
.navbar.navbar-fixed-top.navbar-inverse(role='navigation')
.container
.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='#') Project name
.collapse.navbar-collapse
ul.nav.navbar-nav
li.active
a(href='#') Home
li
a(href='#about') About
li
a(href='#contact') Contact
// /.nav-collapse
// /.container
// /.navbar
.container
.row.row-offcanvas.row-offcanvas-right
.col-xs-12.col-sm-9
p.pull-right.visible-xs
button.btn.btn-primary.btn-xs(type='button', data-toggle='offcanvas') Toggle nav
.jumbotron
h1 Hello, world!
p
| This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.
.row
.col-6.col-sm-6.col-lg-4
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.btn-default(href='#') View details »
// /span
.col-6.col-sm-6.col-lg-4
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.btn-default(href='#') View details »
// /span
.col-6.col-sm-6.col-lg-4
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.btn-default(href='#') View details »
// /span
.col-6.col-sm-6.col-lg-4
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.btn-default(href='#') View details »
// /span
.col-6.col-sm-6.col-lg-4
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.btn-default(href='#') View details »
// /span
.col-6.col-sm-6.col-lg-4
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.btn-default(href='#') View details »
// /span
// /row
// /span
#sidebar.col-xs-6.col-sm-3.sidebar-offcanvas(role='navigation')
.well.sidebar-nav
ul.nav
li Sidebar
li.active
a(href='#') Link
li
a(href='#') Link
li
a(href='#') Link
li Sidebar
li
a(href='#') Link
li
a(href='#') Link
li
a(href='#') Link
li Sidebar
li
a(href='#') Link
li
a(href='#') Link
// /.well
// /span
// /row
hr
footer
p © Company 2013
// /.container
//
Bootstrap core JavaScript
// ==================================================
// Placed at the end of the document so the pages load faster
script(src='#{pathToAssets}/assets/js/jquery.js')
script(src='#{pathToAssets}/dist/js/bootstrap.min.js')
script(src='#{pathToSelectedTemplateWithinBootstrap}/offcanvas.js')
32 changes: 32 additions & 0 deletions app/views/bootstrap3-templates/signin.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
doctype 5
html(lang='en')
head
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
meta(name='description', content='')
meta(name='author', content='')
link(rel='shortcut icon', href='#{pathToAssets}/assets/ico/favicon.png')
title Signin Template for Bootstrap
// Bootstrap core CSS
link(href='#{pathToAssets}/dist/css/bootstrap.css', rel='stylesheet')
// Custom styles for this template
link(href='#{pathToSelectedTemplateWithinBootstrap}/signin.css', rel='stylesheet')
// HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
//if lt IE 9
script(src='#{pathToAssets}/assets/js/html5shiv.js')
script(src='#{pathToAssets}/assets/js/respond.min.js')
body
.container
form.form-signin
h2.form-signin-heading Please sign in
input.form-control(type='text', placeholder='Email address', autofocus='autofocus')
input.form-control(type='password', placeholder='Password')
label.checkbox
input(type='checkbox', value='remember-me')
| Remember me
button.btn.btn-lg.btn-primary.btn-block(type='submit') Sign in
// /container
//
Bootstrap core JavaScript
//==================================================
// Placed at the end of the document so the pages load faster
2 changes: 1 addition & 1 deletion app/views/bootstrap3-templates/starter-template.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!!! 5
doctype 5
html(lang='en')
head
meta(charset='utf-8')
Expand Down
85 changes: 85 additions & 0 deletions app/views/bootstrap3-templates/sticky-footer-navbar.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
doctype 5
html(lang='en')
head
meta(charset='utf-8')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
meta(name='description', content='')
meta(name='author', content='')
link(rel='shortcut icon', href='#{pathToAssets}/assets/ico/favicon.png')
title Sticky Footer Navbar Template for Bootstrap
// Bootstrap core CSS
link(href='#{pathToAssets}/dist/css/bootstrap.css', rel='stylesheet')
// Custom styles for this template
link(href='#{pathToSelectedTemplateWithinBootstrap}/sticky-footer-navbar.css', rel='stylesheet')
// HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries
//if lt IE 9
script(src='#{pathToAssets}/assets/js/html5shiv.js')
script(src='#{pathToAssets}/assets/js/respond.min.js')
body
// Wrap all page content here
#wrap
// Fixed navbar
.navbar.navbar-default.navbar-fixed-top
.container
.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href='#') Project name
.collapse.navbar-collapse
ul.nav.navbar-nav
li.active
a(href='#') Home
li
a(href='#about') About
li
a(href='#contact') Contact
li.dropdown
a.dropdown-toggle(href='#', data-toggle='dropdown')
| Dropdown
b.caret
ul.dropdown-menu
li
a(href='#') Action
li
a(href='#') Another action
li
a(href='#') Something else here
li.divider
li.dropdown-header Nav header
li
a(href='#') Separated link
li
a(href='#') One more separated link
// /.nav-collapse
// Begin page content
.container
.page-header
h1 Sticky footer with fixed navbar
p.lead
| Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added within
code #wrap
| with
code padding-top: 60px;
| on the
code .container
| .
p
| Back to
a(href='/template/sticky-footer') the default sticky footer
| minus the navbar.
#footer
.container
p.text-muted.credit
| Example courtesy
a(href='http://martinbean.co.uk') Martin Bean
| and
a(href='http://ryanfait.com/sticky-footer/') Ryan Fait
| .
//
Bootstrap core JavaScript
//==================================================
// Placed at the end of the document so the pages load faster
script(src='#{pathToAssets}/assets/js/jquery.js')
script(src='#{pathToAssets}/dist/js/bootstrap.min.js')
Loading

0 comments on commit eee8ff3

Please sign in to comment.