Skip to content

Commit a8e7b11

Browse files
committed
Add Bootstrap and UI Bootstrap Angular for the Front-End
1 parent 8cb5acf commit a8e7b11

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

bower.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"name": "generAPI",
33
"dependencies": {
44
"angular": "~1.2.15",
5-
"jquery": "~2.1.0"
5+
"jquery": "~2.1.0",
6+
"bootstrap": "~3.1.1",
7+
"angular-bootstrap": "~0.10.0"
68
}
79
}

client/scripts/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function () {
22
"use strict";
33

4-
var app = angular.module("generAPI", []);
4+
var app = angular.module("generAPI", ['ui.bootstrap']);
55

6-
}());
6+
}());

client/style/main.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ body {
55

66
a {
77
color: #00B7FF;
8+
}
9+
10+
.title-index{
11+
font: 96px 'Varela Round', sans-serif;
12+
color: #FF6701;
13+
text-align:center;
814
}

server/views/index.jade

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
extends layout
22

33
block content
4-
h1 generAPI
4+
h1(class="title-index") generAPI
55
div(ng-app="generAPI")
66
div {{test}}
77
input(ng-model="test")
88

99
script(src="/assets/components/jquery/dist/jquery.js")
1010
script(src="/assets/components/angular/angular.js")
11-
script(src="/assets/scripts/app.js")
11+
script(src="/assets/components/angular-bootstrap/ui-bootstrap-tpls.js")
12+
13+
script(src="/assets/scripts/app.js")
14+
15+
link(rel='stylesheet', href='http://fonts.googleapis.com/css?family=Varela+Round')

server/views/layout.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ html
33
head
44
title= title
55
link(rel='stylesheet', href='/assets/style/main.css')
6+
link(rel='stylesheet', href='/assets/components/bootstrap/dist/css/bootstrap.css')
67
body
78
block content

0 commit comments

Comments
 (0)