Skip to content

Commit 0341f8f

Browse files
committed
bootstrap ready!
1 parent e33ee06 commit 0341f8f

File tree

11 files changed

+126
-38
lines changed

11 files changed

+126
-38
lines changed

.bowerrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "public/lib"
3+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ npm-debug.log
1616
node_modules
1717

1818
.DS_Store
19+
public/lib/*
1920

app/views/includes/foot.jade

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#footer
2+
.container
3+
p.text-muted Place sticky footer content here.
4+
5+
script(type='text/javascript', src='/lib/jquery/jquery.min.js')
6+
script(type='text/javascript', src='/lib/bootstrap/dist/js/bootstrap.min.js')

app/views/includes/head.jade

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
head
22
meta(charset='utf-8')
33
meta(http-equiv='X-UA-Compatible', content='IE=edge,chrome=1')
4-
meta(name='viewport', content='width=device-width,initial-scale=1')
4+
meta(name='viewport', content='width=device-width,initial-scale=1.0')
55

66
title BitPay
77
meta(http-equiv='Content-type', content='text/html;charset=UTF-8')
@@ -10,3 +10,6 @@ head
1010

1111
link(href='/img/icons/favicon.ico', rel='shortcut icon', type='image/x-icon')
1212

13+
link(rel='stylesheet', href='/lib/bootstrap/dist/css/bootstrap.min.css')
14+
link(rel='stylesheet', href='/css/common.css')
15+

app/views/includes/navbar.jade

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.navbar.navbar-default.navbar-fixed-top(role='navigation')
2+
.container
3+
.navbar-header
4+
button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
5+
span.sr-only Toggle navigation
6+
span.icon-bar
7+
span.icon-bar
8+
span.icon-bar
9+
a.navbar-brand(href='#') Mystery
10+
.collapse.navbar-collapse
11+
ul.nav.navbar-nav
12+
li.active
13+
a(href='#') Home
14+
li
15+
a(href='#about') About
16+
li
17+
a(href='#contact') Contact

app/views/index.jade

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
extends layouts/default
22

33
block content
4-
h1 Hello BitPay!
4+
.page-header
5+
h1 Hello BitPay!

app/views/layouts/default.jade

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ doctype html
22
html(lang='en', xmlns='http://www.w3.org/1999/xhtml')
33
include ../includes/head
44
body
5-
section.content
5+
#wrap
6+
include ../includes/navbar
67
section.container
78
block content
89
include ../includes/foot

bower.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "Mystery",
3+
"version": "0.0.1",
4+
"dependencies": {
5+
"bootstrap": "3.0.3"
6+
}
7+
}

package.json

+39-35
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,41 @@
11
{
2-
"name": "mystery",
3-
"version": "0.0.1",
4-
"private": true,
5-
"author": {
6-
"name": "Ryan X Charles",
7-
"email": "[email protected]"
8-
},
9-
"repository": "git://github.com/bitpay/mystery.git",
10-
"contributors": [{
11-
"name": "Matias Alejo Garcia",
12-
"email": "[email protected]"
13-
}],
14-
"bugs": {
15-
"url": "https://github.com/bitpay/mystery/issues"
16-
},
17-
"homepage": "https://github.com/bitpay/mystery",
18-
"license": "MIT",
19-
"keywords": [
20-
"mystery",
21-
"secret",
22-
"enigma",
23-
"riddle",
24-
"mystification",
25-
"puzzle",
26-
"conundrum"
27-
],
28-
"engines": {
29-
"node": "*"
30-
},
31-
"dependencies": {
32-
"express": "~3.4.7",
33-
"jade": "~1.0.2",
34-
"mongoose": "~3.8.3",
35-
"lodash": "~2.4.1"
36-
}
2+
"name": "mystery",
3+
"version": "0.0.1",
4+
"private": true,
5+
"author": {
6+
"name": "Ryan X Charles",
7+
"email": "[email protected]"
8+
},
9+
"repository": "git://github.com/bitpay/mystery.git",
10+
"contributors": [{
11+
"name": "Matias Alejo Garcia",
12+
"email": "[email protected]"
13+
}],
14+
"bugs": {
15+
"url": "https://github.com/bitpay/mystery/issues"
16+
},
17+
"homepage": "https://github.com/bitpay/mystery",
18+
"license": "MIT",
19+
"keywords": [
20+
"mystery",
21+
"secret",
22+
"enigma",
23+
"riddle",
24+
"mystification",
25+
"puzzle",
26+
"conundrum"
27+
],
28+
"engines": {
29+
"node": "*"
30+
},
31+
"scripts": {
32+
"postinstall": "node node_modules/bower/bin/bower install"
33+
},
34+
"dependencies": {
35+
"express": "~3.4.7",
36+
"jade": "~1.0.2",
37+
"mongoose": "~3.8.3",
38+
"lodash": "~2.4.1",
39+
"bower": "~1.2.8"
40+
}
3741
}

public/css/common.css

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* Sticky footer styles
2+
-------------------------------------------------- */
3+
4+
html,
5+
body {
6+
height: 100%;
7+
/* The html and body elements cannot have any padding or margin. */
8+
}
9+
10+
/* Wrapper for page content to push down footer */
11+
#wrap {
12+
min-height: 100%;
13+
height: auto;
14+
/* Negative indent footer by its height */
15+
margin: 0 auto -60px;
16+
/* Pad bottom by footer height */
17+
padding: 0 0 60px;
18+
}
19+
20+
/* Set the fixed height of the footer here */
21+
#footer {
22+
height: 60px;
23+
background-color: #f5f5f5;
24+
}
25+
26+
27+
/* Custom page CSS
28+
-------------------------------------------------- */
29+
/* Not required for template or sticky footer method. */
30+
31+
#wrap > .container {
32+
padding: 60px 15px 0;
33+
}
34+
.container .text-muted {
35+
margin: 20px 0;
36+
}
37+
38+
#footer > .container {
39+
padding-left: 15px;
40+
padding-right: 15px;
41+
}
42+
43+
code {
44+
font-size: 80%;
45+
}

public/img/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)