feat(imprint): add imprint
This commit is contained in:
committed by
Benedikt Rötsch
parent
fb7755f10f
commit
c35c8983b1
4
routes/imprint.js
Normal file
4
routes/imprint.js
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
exports.getImprint = (req, res, next) => {
|
||||||
|
res.render('imprint', { title: 'Imprint' })
|
||||||
|
}
|
||||||
|
|
||||||
@@ -4,6 +4,7 @@ const { getCourses, getCourse, getLesson, getCoursesByCategory } = require('./co
|
|||||||
const { getSettings, postSettings } = require('./settings')
|
const { getSettings, postSettings } = require('./settings')
|
||||||
const { getSitemap } = require('./sitemap')
|
const { getSitemap } = require('./sitemap')
|
||||||
const { getLandingPage } = require('./landingPage')
|
const { getLandingPage } = require('./landingPage')
|
||||||
|
const { getImprint } = require('./imprint')
|
||||||
const router = express.Router()
|
const router = express.Router()
|
||||||
|
|
||||||
/* GET the home landing page. */
|
/* GET the home landing page. */
|
||||||
@@ -23,7 +24,7 @@ router.post('/settings', catchErrors(postSettings))
|
|||||||
/* Sitemap Route */
|
/* Sitemap Route */
|
||||||
router.get('/sitemap', catchErrors(getSitemap))
|
router.get('/sitemap', catchErrors(getSitemap))
|
||||||
|
|
||||||
/* About Route */
|
/* Imprint Route */
|
||||||
router.get('/about', catchErrors(getLandingPage))
|
router.get('/imprint', catchErrors(getImprint))
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
|||||||
34
views/imprint.pug
Normal file
34
views/imprint.pug
Normal 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
|
||||||
@@ -101,6 +101,8 @@ html
|
|||||||
p.footer__disclaimer-text
|
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.
|
| 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='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
|
.footer__social
|
||||||
p
|
p
|
||||||
|
|||||||
Reference in New Issue
Block a user