Create about page
parent
63ab6e41ac
commit
ebb432b567
2
app.js
2
app.js
|
@ -14,6 +14,7 @@ var indexRouter = require('./routes/index');
|
|||
var dataRouter = require('./routes/data');
|
||||
var manageRouter = require('./routes/manage');
|
||||
var authRouter = require('./routes/auth');
|
||||
var aboutRouter = require('./routes/about');
|
||||
|
||||
var app = express();
|
||||
|
||||
|
@ -51,6 +52,7 @@ app.use('/', indexRouter);
|
|||
app.use('/data', dataRouter);
|
||||
app.use('/manage', manageRouter);
|
||||
app.use('/auth', authRouter);
|
||||
app.use('/about', aboutRouter);
|
||||
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
|
|
|
@ -31,4 +31,4 @@ tr {
|
|||
|
||||
#login-button {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,4 +59,13 @@ input {
|
|||
#about-footer {
|
||||
margin-top: 3em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
p {
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
a {
|
||||
color: black;
|
||||
}
|
|
@ -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;
|
|
@ -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]
|
Reference in New Issue