diff --git a/routes/imprint.js b/routes/imprint.js new file mode 100644 index 0000000..b7eef5b --- /dev/null +++ b/routes/imprint.js @@ -0,0 +1,4 @@ +exports.getImprint = (req, res, next) => { + res.render('imprint', { title: 'Imprint' }) +} + diff --git a/routes/index.js b/routes/index.js index 3ed71c8..ff8fba9 100644 --- a/routes/index.js +++ b/routes/index.js @@ -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 diff --git a/views/imprint.pug b/views/imprint.pug new file mode 100644 index 0000000..2de7ec9 --- /dev/null +++ b/views/imprint.pug @@ -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 diff --git a/views/layout.pug b/views/layout.pug index c273ec4..878355e 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -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