Refresh bottom nav

This commit is contained in:
Mikołaj Pich 2019-05-17 20:10:06 +02:00
parent 000dfd6f05
commit 2c8319d4c9
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
4 changed files with 34 additions and 13 deletions

4
app.js
View file

@ -41,8 +41,8 @@ app.use((req, res, next) => {
res.locals.userInfo = require('./data/api/ListaUczniow')[1];
res.locals.uonetplusUrl = protocol(req) + "://" + req.get('host').replace("uonetplus-opiekun", "uonetplus");
res.locals.currentHost = protocol(req) + "://" + req.get('host');
res.locals.mainHost = protocol(req) + "://" + req.get('host')
.replace(/(api|cufs|uonetplus|uonetplus-opiekun|uonetplus-uzytkownik)\./, "");
res.locals.proto = protocol(req);
res.locals.host = req.get('host').replace(/(api|cufs|uonetplus|uonetplus-opiekun|uonetplus-uzytkownik)\./, "");
next();
});

View file

@ -31,6 +31,7 @@ a {
.wrapper {
flex: 1;
padding-bottom: 100px;
}
.container {
@ -47,7 +48,13 @@ form {
}
.footer {
padding: 10px;
border-top: 1px solid;
position: fixed;
bottom: 0;
right: 0;
left: 0;
border-bottom: 0;
background: rgba(255, 255, 255, 0.8);
&__nav {
list-style: none;
@ -56,7 +63,12 @@ form {
li {
display: inline-block;
margin: 0 5px;
a {
text-decoration: none;
padding: 10px 15px;
display: block;
}
}
}
}

View file

@ -9,14 +9,14 @@ block content
p Welcome to #{title}!
ul
li
a(href=proto + "://api." + domain) api
a(href=proto + "://api." + host) api
li
a(href=proto + "://cufs." + domain) cufs
a(href=proto + "://cufs." + host) cufs
li
a(href=proto + "://uonetplus." + domain + "/Default/Start.mvc/Index") uonetplus
a(href=proto + "://uonetplus." + host + "/Default/Start.mvc/Index") uonetplus
li
a(href=proto + "://uonetplus-uczen." + domain) uonetplus-uczen
a(href=proto + "://uonetplus-uczen." + host) uonetplus-uczen
li
a(href=proto + "://uonetplus-opiekun." + domain + "/Default/123456") uonetplus-opiekun
a(href=proto + "://uonetplus-opiekun." + host + "/Default/123456") uonetplus-opiekun
li
a(href=proto + "://uonetplus-uzytkownik." + domain) uonetplus-uzytkownik
a(href=proto + "://uonetplus-uzytkownik." + host) uonetplus-uzytkownik

View file

@ -10,9 +10,18 @@ html
footer.footer
ul.footer__nav
li
a(href="https://wulkanowy.github.io") Wulkanowy
a(href=proto + "://" + host) Start
li
a(href="https://github.com/wulkanowy/fake-log") Github
a(href=proto + "://api." + host) api
li
a(href=mainHost) fake-log homepage
a(href=proto + "://cufs." + host) cufs
li
a(href=proto + "://uonetplus." + host + "/Default/Start.mvc/Index") uonetplus
li
a(href=proto + "://uonetplus-uczen." + host) uonetplus-uczen
li
a(href=proto + "://uonetplus-opiekun." + host + "/Default/123456") uonetplus-opiekun
li
a(href=proto + "://uonetplus-uzytkownik." + host) uonetplus-uzytkownik
block extraFooter