Finished advert

This commit is contained in:
Bram van der Veen 2016-03-22 16:08:22 +01:00
parent 3d695fa729
commit 869a95709b
4 changed files with 44 additions and 10 deletions

View file

@ -1,5 +1,10 @@
//- Advert //- Advert
.bijles
img
p Lorem ipsum dolor sit amet, ea choro platonem sit, vero iusto libris no vim. Et ius saepe eruditi, no noluisse scribentur est. Nec offendit recusabo reformidans in. Mel ex odio nibh habeo, vim ea modus regione apeirian.
if !app.locals.time.duringSchool()
#close X
a(href="http://werkmanbijles.nl", target="_blank")
.bijles
h1 WerkmanBijles
sup.
Bijlessen in alle vakken voor alle niveaus<br>
Klik op de banner voor onze website!

View file

@ -1,7 +1,7 @@
//- schedule.jade //- schedule.jade
include header
include advert include advert
include header
include search include search
if !easter || easter.type != "RIP" if !easter || easter.type != "RIP"

View file

@ -2,4 +2,9 @@
$(document).ready(function () { $(document).ready(function () {
var day = (new Date()).getDay() - 1; var day = (new Date()).getDay() - 1;
$('#wrapper').scrollLeft($(document).width() * day); $('#wrapper').scrollLeft($(document).width() * day);
$('#close').click(function () {
$('.bijles').remove();
$('#close').remove();
})
}); });

View file

@ -1,5 +1,5 @@
//style.less //style.less
@import url('http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400|Oswald'); @import url('https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400|Oswald');
.notice { .notice {
background-color: #BB4848; background-color: #BB4848;
@ -380,11 +380,35 @@ div.schedule {
} }
.bijles { .bijles {
height: 100px; height: 120px;
position: absolute; z-index: -1;
width: 100%; width: 100%;
top: 30px; top: 0px;
margin-bottom: 10px; padding-top: 20px;
color: #FDFDFD;
font-family: Oswald;
text-align: center;
background-color: rgb(30, 115, 190);
position: relative;
sup {
position: relative;
top: -15px;
}
} }
a[href="http://werkmanbijles.nl"] {
text-decoration: none;
}
#close {
position: absolute;
top: 5px;
right: 10px;
font-family: Oswald;
font-size: 24px;
cursor: pointer;
z-index: 3;
color: #FDFDFD;
}
@import "mobile"; @import "mobile";