diff --git a/server/routes/index.js b/server/routes/index.js index 0f9cc35..cd75eb5 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -511,7 +511,7 @@ router.post('/user/manage', wrap(async (req, res, next) => { })) // Change user password -router.post('/user/manage/password', wrap(async (req, res, next) => { +router.post('/user/manage/password', accountLimiter, wrap(async (req, res, next) => { if (!req.session.user) return next() if (req.body.csrf !== req.session.csrf) { @@ -562,7 +562,7 @@ router.post('/user/manage/password', wrap(async (req, res, next) => { })) // Change email address -router.post('/user/manage/email', wrap(async (req, res, next) => { +router.post('/user/manage/email', accountLimiter, wrap(async (req, res, next) => { if (!req.session.user) return next() if (req.body.csrf !== req.session.csrf) { diff --git a/src/style/footer.styl b/src/style/footer.styl new file mode 100644 index 0000000..8e2681b --- /dev/null +++ b/src/style/footer.styl @@ -0,0 +1,46 @@ +footer + padding: 20px + background: #e9f6fd + background: -moz-linear-gradient(top, #e9f6fd 0%, #d3eefb 100%) + background: -webkit-linear-gradient(top, #e9f6fd 0%,#d3eefb 100%) + background: linear-gradient(to bottom, #e9f6fd 0%,#d3eefb 100%) + border-top: 1px solid #ddd + text-align: center + .copyright + display: inline-block + text-align: center + font-size: 90% + vertical-align: top + margin-top: 35px + padding: 15px + margin-left: 5vw + .squeebot + width: 200px + .logo + font-family: "Open Sans" + font-weight: bold + text-transform: uppercase + text-shadow: 2px 2px 1px #007104 + color: #00b300 + letter-spacing: 5px + user-select: none + font-size: 30px + text-align: inherit + cursor: pointer + display: inline-block + .part1, .part2 + display: inline-block + .part1 + color: #03A9F4 + text-shadow: 2px 2px 1px #0059a0 + margin-right: 5px + +@media all and (max-width: 800px) + footer + .squeebot + margin: 0 + width: 150px + margin: auto + display: block + .copyright + margin-left: 0 diff --git a/src/style/main.styl b/src/style/main.styl index 0396e27..539743e 100644 --- a/src/style/main.styl +++ b/src/style/main.styl @@ -131,25 +131,6 @@ section .fa-github background-color: green -footer - padding: 20px - background: #e9f6fd - background: -moz-linear-gradient(top, #e9f6fd 0%, #d3eefb 100%) - background: -webkit-linear-gradient(top, #e9f6fd 0%,#d3eefb 100%) - background: linear-gradient(to bottom, #e9f6fd 0%,#d3eefb 100%) - border-top: 1px solid #ddd - text-align: center - .copyright - display: inline-block - text-align: center - font-size: 90% - vertical-align: top - margin-top: 35px - padding: 15px - margin-left: 5vw - .squeebot - width: 200px - .wrapper overflow: hidden min-height: 100vh @@ -602,14 +583,6 @@ select display: inline-block !important .logo font-size: 10vw - footer - .squeebot - margin: 0 - width: 150px - margin: auto - display: block - .copyright - margin-left: 0 .document padding: 5px .tos diff --git a/views/layout.pug b/views/layout.pug index fcf339a..dd1e448 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -5,6 +5,7 @@ html meta(name="viewport", content="width=device-width, initial-scale=1") block links link(rel="stylesheet", type="text/css", href="/style/main.css") + link(rel="stylesheet", type="text/css", href="/style/footer.css") link(rel="stylesheet", type="text/css", href="//fonts.googleapis.com/css?family=Open+Sans") link(rel="stylesheet", type="text/css", href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css") script(src="/script/main.js")