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
+14 -56

No files matched your search

-8
View File
@@ -7,11 +7,3 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.background-picture{
width: 100%;
position: fixed;
top:0;
left: 0;
z-index: -999;
}
+11 -4
View File
@@ -8,18 +8,24 @@
} }
} }
ul{ .background-picture{
display: block; width: 100%;
position: fixed;
top:0;
left: 0;
z-index: -999;
} }
.team-list{ .team-block{
list-style:none;
background-color: white; background-color: white;
width:100%; width:100%;
min-height: 100px; min-height: 100px;
padding-top: 100px; padding-top: 100px;
padding-bottom: 100px; padding-bottom: 100px;
margin-top: 63%; margin-top: 63%;
ul{
list-style:none;
} }
.team-member{ .team-member{
@@ -48,3 +54,4 @@ 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;
}
+3 -1
View File
@@ -1,6 +1,7 @@
<img class="background-picture" src="http://static.shlisselburg.org/art/team/team.jpg"> <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"> <li class="team-member" ng-repeat="person in team">
<img ng-src="{{person.picture}}"> <img ng-src="{{person.picture}}">
<div class="info"> <div class="info">
@@ -13,3 +14,4 @@
</div> </div>
</li> </li>
</ul> </ul>
</div>