team page update

This commit is contained in:
tmshv committed 2014-11-21 19:09:17 +03:00
1 parent 0328dc745d
commit 9445496b94
4 files changed
+17 -59

No files matched your search

-8
View File
@@ -7,11 +7,3 @@ body {
margin: 0;
padding: 0;
}
.background-picture{
width: 100%;
position: fixed;
top:0;
left: 0;
z-index: -999;
}
+13 -6
View File
@@ -8,21 +8,27 @@
}
}
ul{
display: block;
.background-picture{
width: 100%;
position: fixed;
top:0;
left: 0;
z-index: -999;
}
.team-list{
list-style:none;
.team-block{
background-color: white;
width:100%;
min-height: 100px;
padding-top: 100px;
padding-bottom: 100px;
margin-top: 63%;
}
.team-member{
ul{
list-style:none;
}
.team-member{
margin: 0 auto 50px auto;
width: 70%;
@@ -47,4 +53,5 @@ ul{
}
}
}
}
}
-43
View File
@@ -9,46 +9,3 @@ module.exports = function (app) {
});
});
};
/**
* Generates list of numbers
* @param {Number} start starting value
* @param {Number} num amount of numbers in list
* @param {Number} step difference value
* @return {Array} list of numbers
*/
function range(start, num, step) {
var list = [];
var val = start;
for (var i = 0; i < num; i++) {
list.push(val);
val += step;
}
return list;
}
///**
// * Monday date of current week
// * @param {[type]} d [description]
// * @return {[type]} [description]
// */
//function getMonday(d) {
// d = new Date(d);
// var day = d.getDay();
// var diff = d.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday
// return new Date(d.setDate(diff));
//}
function getDates(day) {
var dates = [];
var prev = day == 0 ? 0 : day - 1;
var next = 6 - prev;
var dayMask = range(-1, prev, -1).concat([0]).concat(range(1, next, 1));
dayMask.forEach(function (m) {
var time = Date.now() + (1000 * 60 * 60 * 24) * m;
var date = new Date(time);
dates.push(date.getDate());
});
return dates;
}
+4 -2
View File
@@ -1,6 +1,7 @@
<img class="background-picture" src="http://static.shlisselburg.org/art/team/team.jpg">
<ul class="team-list" ng-controller="TeamController">
<div class="team-block">
<ul ng-controller="TeamController">
<li class="team-member" ng-repeat="person in team">
<img ng-src="{{person.picture}}">
<div class="info">
@@ -12,4 +13,5 @@
<p class="diploma">Диплом {{person.diploma}}</p>
</div>
</li>
</ul>
</ul>
</div>