pt. 5a - Bootstrap code
This commit is contained in:
@@ -1,12 +1,55 @@
|
|||||||
body {
|
body {
|
||||||
padding-top: 20px;
|
font-family: "Open Sans", sans-serif;
|
||||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
background: url(/background.png) no-repeat center center fixed;
|
||||||
|
background-size: cover;
|
||||||
|
margin-top: 75px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #0b95c8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-brand {
|
||||||
|
font-family: "Yanone Kaffeesatz", sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 200%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form {
|
||||||
|
margin-top: 2em;
|
||||||
|
margin-bottom: 10em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.burp {
|
.burp {
|
||||||
margin-bottom: 2em;
|
padding: 1em;
|
||||||
|
margin-bottom: 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.burp .user {
|
||||||
|
font-family: "Lato", sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 110%;
|
||||||
|
color: #75c612;
|
||||||
}
|
}
|
||||||
|
|
||||||
.burp .date {
|
.burp .date {
|
||||||
|
color: #75c612;
|
||||||
text-decoration: underline overline;
|
text-decoration: underline overline;
|
||||||
}
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.burp .text {
|
||||||
|
margin-top: 1ex;
|
||||||
|
margin-bottom: 2em;
|
||||||
|
font-size: 160%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.burp .social {
|
||||||
|
text-align: right;
|
||||||
|
color: #0b95c8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.glyphicon-send {
|
||||||
|
margin-right: .5ex;
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,17 +6,51 @@
|
|||||||
|
|
||||||
<title>BURP: Bayer Ubiquitous Rating Platform</title>
|
<title>BURP: Bayer Ubiquitous Rating Platform</title>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="css/bootstrap.min.css">
|
||||||
|
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
|
||||||
<link rel="stylesheet" href="css/app.css">
|
<link rel="stylesheet" href="css/app.css">
|
||||||
|
|
||||||
<script src="js/angular.min.js"></script>
|
<script src="js/angular.min.js"></script>
|
||||||
<script src="js/angular-route.min.js"></script>
|
<script src="js/angular-route.min.js"></script>
|
||||||
<script src="js/angular-resource.min.js"></script>
|
<script src="js/angular-resource.min.js"></script>
|
||||||
|
<script src="js/jquery-2.1.4.min.js"></script>
|
||||||
|
<script src="js/bootstrap.min.js"></script>
|
||||||
|
|
||||||
<script src="js/app.js"></script>
|
<script src="js/app.js"></script>
|
||||||
<script src="js/controllers.js"></script>
|
<script src="js/controllers.js"></script>
|
||||||
|
|
||||||
|
<!-- Google fonts -->
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
|
||||||
|
<link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,300,700' rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<nav class="navbar navbar-default navbar-fixed-top">
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#nav-toggle">
|
||||||
|
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span
|
||||||
|
class="icon-bar"></span>
|
||||||
|
</button>
|
||||||
|
<a class="navbar-brand" href="/">BURP</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="collapse navbar-collapse" id="nav-toggle">
|
||||||
|
<ul class="nav navbar-nav">
|
||||||
|
<li class="active"><a href="/#/list">Browse</a></li>
|
||||||
|
<li><a href="/">Tags</a></li>
|
||||||
|
<li><a href="/">Groups</a></li>
|
||||||
|
<li><a href="/"><span class="glyphicon glyphicon-user"></span></a></li>
|
||||||
|
</ul>
|
||||||
|
<form class="navbar-form navbar-right" role="search">
|
||||||
|
<input type="text" class="form-control" placeholder="Search">
|
||||||
|
<button type="button" class="btn btn-default">
|
||||||
|
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<div ng-view></div>
|
<div ng-view></div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,42 @@
|
|||||||
<div ng-init="initList()">
|
<div class="container" ng-init="initList()">
|
||||||
<div>
|
<div class="row">
|
||||||
<div>
|
<div class="col-md-8 col-xs-12">
|
||||||
<form role="form" ng-submit="doBurp()">
|
<form class="input-form" role="form" class="col-md-12" ng-submit="doBurp()">
|
||||||
<div>
|
<div class="col-md-offset-2 col-md-6">
|
||||||
<input type="text" ng-model="text" placeholder="Your thoughts on today's menu" />
|
<input type="text" ng-model="text" class="form-control" placeholder="Your thoughts on today's menu" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="col-md-2">
|
||||||
<input type="submit" value="Send" />
|
<input type="submit" value="Send" class="btn btn-primary" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="burp" ng-repeat="burp in burps">
|
<div class="burp panel col-md-12" ng-repeat="burp in burps">
|
||||||
<div class="user">{{burp.user.name}}</div>
|
<div class="col-md-2"><img src="/img/{{burp.user.name}}.jpg" alt="User" class="img-circle" width="100"></div>
|
||||||
<div class="date">{{burp.timestamp | date:'HH:mm:ss dd.MM.yyyy'}}</div>
|
<div class="col-md-10">
|
||||||
<div class="text">{{burp.text}}</div>
|
<div class="user col-md-6">{{burp.user.name}}</div>
|
||||||
<span class="tag" ng-repeat="tag in burp.tags._embedded.tags">
|
<div class="date col-md-6">{{burp.timestamp | date:'HH:mm:ss dd.MM.yyyy'}}</div>
|
||||||
<a href="#/tag/{{tag._links.burps.href}}">#{{tag.name}}</a>
|
<div class="text col-md-12">{{burp.text}}</div>
|
||||||
</span>
|
<div class="tag col-md-8">
|
||||||
</div>
|
<span ng-repeat="tag in burp.tags._embedded.tags">
|
||||||
|
<a href="#/tag/{{tag._links.burps.href}}">#{{tag.name}}</a>
|
||||||
<div>
|
</span>
|
||||||
<pre style="font-size: 75%">{{burps | json}}</pre>
|
</div>
|
||||||
|
<div class="social col-md-4">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
|
||||||
|
aria-expanded="false">
|
||||||
|
<span class="glyphicon glyphicon-send"></span> Share <span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li role="separator" class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,15 +1,31 @@
|
|||||||
<div>
|
<div class="container">
|
||||||
<div>
|
<div class="burp panel col-md-12" ng-repeat="burp in burps">
|
||||||
<div>
|
<div class="col-md-2"><img src="/img/{{burp.user.name}}.jpg" alt="User" class="img-circle" width="100"></div>
|
||||||
<div class="burp" ng-repeat="burp in burps">
|
<div class="col-md-10">
|
||||||
<div class="user">{{burp.user.name}}</div>
|
<div class="user col-md-6">{{burp.user.name}}</div>
|
||||||
<div class="date">{{burp.timestamp | date:'HH:mm:ss dd.MM.yyyy'}}</div>
|
<div class="date col-md-6">{{burp.timestamp | date:'HH:mm:ss dd.MM.yyyy'}}</div>
|
||||||
<div class="text">{{burp.text}}</div>
|
<div class="text col-md-12">{{burp.text}}</div>
|
||||||
<span class="tag" ng-repeat="tag in burp.tags._embedded.tags">
|
<div class="tag col-md-8">
|
||||||
<a href="#/tag/{{tag._links.burps.href}}">#{{tag.name}}</a>
|
<span ng-repeat="tag in burp.tags._embedded.tags">
|
||||||
</span>
|
<a href="#/tag/{{tag._links.burps.href}}">#{{tag.name}}</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="social col-md-4">
|
||||||
|
<div class="btn-group">
|
||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
|
||||||
|
aria-expanded="false">
|
||||||
|
<span class="glyphicon glyphicon-send"></span> Share <span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
|
<li><a href="#">Action</a></li>
|
||||||
|
<li><a href="#">Another action</a></li>
|
||||||
|
<li><a href="#">Something else here</a></li>
|
||||||
|
<li role="separator" class="divider"></li>
|
||||||
|
<li><a href="#">Separated link</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
Reference in New Issue
Block a user