small things

This commit is contained in:
Evert Prants 2017-08-31 12:22:38 +03:00
parent 95467dc041
commit 37f6ca5eda
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
4 changed files with 49 additions and 29 deletions

View File

@ -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) {

46
src/style/footer.styl Normal file
View File

@ -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

View File

@ -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

View File

@ -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")