Create about page

main
sudoer777 2021-11-26 23:14:29 -07:00
parent 63ab6e41ac
commit ebb432b567
5 changed files with 33 additions and 1 deletions

2
app.js
View File

@ -14,6 +14,7 @@ var indexRouter = require('./routes/index');
var dataRouter = require('./routes/data'); var dataRouter = require('./routes/data');
var manageRouter = require('./routes/manage'); var manageRouter = require('./routes/manage');
var authRouter = require('./routes/auth'); var authRouter = require('./routes/auth');
var aboutRouter = require('./routes/about');
var app = express(); var app = express();
@ -51,6 +52,7 @@ app.use('/', indexRouter);
app.use('/data', dataRouter); app.use('/data', dataRouter);
app.use('/manage', manageRouter); app.use('/manage', manageRouter);
app.use('/auth', authRouter); app.use('/auth', authRouter);
app.use('/about', aboutRouter);
// catch 404 and forward to error handler // catch 404 and forward to error handler

View File

@ -60,3 +60,12 @@ input {
margin-top: 3em; margin-top: 3em;
text-align: center; text-align: center;
} }
p {
line-height: 2;
}
a {
color: black;
}

8
routes/about.js 100644
View File

@ -0,0 +1,8 @@
var express = require('express');
var router = express.Router();
router.get('/', function(req, res, next) {
res.render('about', { title: 'About Score Tracker', hideHomeButton: false });
});
module.exports = router;

13
views/about.pug 100644
View File

@ -0,0 +1,13 @@
extends layout
block stylesheets
link(rel='stylesheet', href='/stylesheets/index.css')
block actions
block content
p Created by #[a(href="https://ethanreece.com") Ethan Reece], a student at #[a(href="https://colevalleychristian.org") Cole Valley Christian Schools].
p Need help? Found a bug? Email: #[a(href="mailto:scoretrackerhelp@ethanreece.com") scoretrackerhelp@ethanreece.com]
p #[a(href="https://gitlab.sudoer.ch/sudoer777/score-tracker") Git repo]