Law-things
This commit is contained in:
parent
7e6c6dbbc9
commit
3f0d89240d
File diff suppressed because one or more lines are too long
@ -186,3 +186,10 @@ footer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.lawthings {
|
||||
h2 {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user