Add lucky number to homepage

This commit is contained in:
Mikołaj Pich 2019-01-20 01:36:01 +01:00
parent 38f1f8760f
commit cf1b21f8d8
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
3 changed files with 27 additions and 0 deletions

View file

@ -62,6 +62,7 @@
.content {
.panel {
color: #fff;
}
.linkownia {
@ -101,5 +102,22 @@
border-right: 1px dotted;
}
}
.szczesliweNumery {
max-width: 310px;
background: #00ff00;
margin: 10px 0;
padding: 20px;
.imagedHeader {
border-bottom: 1px solid;
padding-bottom: 10px;
}
.header {
padding: 10px 0;
font-weight: bold;
}
}
}
}

View file

@ -36,6 +36,7 @@ router.post("(/*)?", (req, res) => {
router.get("/Default/Start.mvc/Index", (req, res) => {
res.render("homepage", {
title: "Uonet+",
luckyNumber: new Date().getDate(),
uonetplusOpiekun: protocol(req) + "://" + req.get('host').replace("uonetplus", "uonetplus-opiekun"),
uonetplusUczen: protocol(req) + "://" + req.get('host').replace("uonetplus", "uonetplus-uczen")
});

View file

@ -59,3 +59,11 @@ block content
.directLink
#idEmptyAppUczenExt
.name Uczeń NOWOŚĆ
div.panel.szczesliweNumery.klient
.imagedHeader
.name Szczęśliwy numer w dzienniku
.subDiv.pCont
.subDiv.pCont
.header SP
.subDiv Szczęśliwy numer w dzienniku: #{luckyNumber}