freeCodeCamp/views/layout.jade

47 lines
1.7 KiB
Plaintext
Raw Normal View History

doctype 5
html
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(name='viewport', content='width=device-width, initial-scale=1.0')
meta(name='description', content='')
meta(name='author', content='')
title Starter Template for Bootstrap
link(href='/css/bootstrap.css', rel='stylesheet')
2013-11-19 03:31:55 +00:00
link(href='/css/flat-ui.css', rel='stylesheet')
link(href='/css/font-awesome.min.css', rel='stylesheet')
link(href='/css/app.css', rel='stylesheet')
body
2013-11-19 03:31:55 +00:00
.navbar.navbar-default.navbar-fixed-top(role='navigation')
.container
.navbar-header
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
2013-11-16 18:46:49 +00:00
a.navbar-brand(href='/') Project name
.collapse.navbar-collapse
ul.nav.navbar-nav
li(class=title=='Home'?'active':undefined)
2013-11-16 18:46:49 +00:00
a(href='/') Home
li(class=title=='About'?'active':undefined)
a(href='#about') About
li(class=title=='Contact'?'active':undefined)
a(href='#contact') Contact
2013-11-16 18:24:06 +00:00
ul.nav.navbar-nav.navbar-right
if !user
li(class=title=='Login'?'active':undefined)
a(href='/login') Login
li(class=title=='Create Account'?'active':undefined)
a(href='/signup') Create Account
else
li.navbar-text
| Welcome, #{user.firstName} #{user.lastName}
li
a(href='/logout') Logout
2013-11-16 18:24:06 +00:00
.container
block content
script(src='/js/lib/jquery.js')