Law-things

This commit is contained in:
Gerrit Linnemann 2019-03-17 19:07:23 +01:00
parent 7e6c6dbbc9
commit 3f0d89240d
5 changed files with 39 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -185,4 +185,11 @@ footer {
}
}
}
}
}
.lawthings {
h2 {
text-align: center;
margin-bottom: 30px;
}
}

View File

@ -1,13 +1,13 @@
var express = require('express');
var router = express.Router();
/* GET home page. */
/* GET home page */
router.get('/', function(req, res, next) {
var app = req.app
var db = app.get('DB')
db.getItemList((items)=>{
res.render('index', { title: 'Rent For Camp', items: items })
res.render('index', { title: 'RentFor.Camp', items: items })
})
});
@ -22,4 +22,28 @@ router.get('/article/show/:identifier', function(req, res, next) {
})
});
/* GET imprint */
router.get('/imprint/', function(req, res, next) {
var app = req.app
var db = app.get('DB')
res.render('imprint', { title: 'RentFor.Camp Impressum' })
});
/* GET privacy */
router.get('/privacy/', function(req, res, next) {
var app = req.app
var db = app.get('DB')
res.render('privacy', { title: 'RentFor.Camp Datenschutz' })
});
/* GET terms and conditions */
router.get('/terms/', function(req, res, next) {
var app = req.app
var db = app.get('DB')
res.render('terms', { title: 'RentFor.Camp AGB' })
});
module.exports = router;

View File

@ -2,7 +2,7 @@ extends layout
block content
#stage
div.welcome Willkommen auf Rent For Camp
div.welcome Willkommen auf RentFor.Camp
a.startLink(href="#", onclick="document.getElementById('items').scrollIntoView(); return false;") Jetzt stöbern
section#items

View File

@ -14,11 +14,11 @@ html
.container
.row
.col
a(href="#") Impressum
a(href="/imprint/") Impressum
.col
a(href="#") Datenschutz
a(href="/privacy/") Datenschutz
.col
a(href="#") AGB
a(href="/terms/") AGB
script(src="/javascripts/jquery-3.3.1.min.js", crossorigin="anonymous")
script(src="/javascripts/bootstrap.bundle.min.js", crossorigin="anonymous")