From 5946aeffb0f4faf43158b528b6eabae84e25ed41 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 31 Jan 2022 21:47:18 +0000 Subject: [PATCH] Added logout template and route --- routes/main.js | 7 +++++++ src/stylesheets/base/_typography.scss | 5 +++++ views/logout.hbs | 8 ++++++++ 3 files changed, 20 insertions(+) create mode 100644 views/logout.hbs diff --git a/routes/main.js b/routes/main.js index 9204445..ed908ec 100644 --- a/routes/main.js +++ b/routes/main.js @@ -25,6 +25,13 @@ router.get('/password-reset', (req, res) => { }); }); +router.get('/logout', (req, res) => { + return res.render('logout', { + title: 'Stratos - Logout', + username: req.session.fullName + }); +}); + module.exports = { root: '/', router: router diff --git a/src/stylesheets/base/_typography.scss b/src/stylesheets/base/_typography.scss index 9e4eadb..5ec0b73 100644 --- a/src/stylesheets/base/_typography.scss +++ b/src/stylesheets/base/_typography.scss @@ -11,3 +11,8 @@ a { text-decoration: underline; } } + +span.hl { + color: $primary-colour; + font-weight: bold; +} diff --git a/views/logout.hbs b/views/logout.hbs new file mode 100644 index 0000000..500081a --- /dev/null +++ b/views/logout.hbs @@ -0,0 +1,8 @@ +{{> mainPageHeader name='Log Out' }} + +
+

You are logged in as {{ username }}

+
+ +
+