feat(imprint): add imprint

This commit is contained in:
Benedikt Rötsch
2017-10-24 16:55:42 +02:00
committed by Benedikt Rötsch
parent fb7755f10f
commit c35c8983b1
4 changed files with 43 additions and 2 deletions

4
routes/imprint.js Normal file
View File

@@ -0,0 +1,4 @@
exports.getImprint = (req, res, next) => {
res.render('imprint', { title: 'Imprint' })
}

View File

@@ -4,6 +4,7 @@ const { getCourses, getCourse, getLesson, getCoursesByCategory } = require('./co
const { getSettings, postSettings } = require('./settings')
const { getSitemap } = require('./sitemap')
const { getLandingPage } = require('./landingPage')
const { getImprint } = require('./imprint')
const router = express.Router()
/* GET the home landing page. */
@@ -23,7 +24,7 @@ router.post('/settings', catchErrors(postSettings))
/* Sitemap Route */
router.get('/sitemap', catchErrors(getSitemap))
/* About Route */
router.get('/about', catchErrors(getLandingPage))
/* Imprint Route */
router.get('/imprint', catchErrors(getImprint))
module.exports = router

34
views/imprint.pug Normal file
View File

@@ -0,0 +1,34 @@
extends layout
include mixins/_breadcrumb
include mixins/_editorialFeatures
include mixins/_moduleCopy
include mixins/_moduleHeroImage
include mixins/_moduleHighlightedCourse
block content
.layout-centered
+breadcrumb
h1= title
table
tbody
tr
th Company:
td Contentful GmbH
tr
th Office Berlin:
td
| Ritterstr. 12-14
br
| 10969 Berlin
br
| Germany
tr
th Registration Court:
td Berlin-Charlottenburg HRB 155607 B
tr
th Managing Director:
td Sascha Konietzke
tr
th VAT Number:
td DE275148225

View File

@@ -101,6 +101,8 @@ html
p.footer__disclaimer-text
| Powered by Contentful. This website and the materials found on it are for demo purposes. You can use this to preview the content created on your Contentful account. 
a(href='https://images.contentful.com/82t39nctsu20/1JOkYZnY8YG0w88ImweME2/c8aef71dfe1ea633e16e17d99379416c/Github-repo_2x__1_.png' target='_blank' rel='noopener') View on Github
| . 
a(href=`/imprint${queryString}` ) Imprint
| .
.footer__social
p