Clean up login page

This commit is contained in:
Evert Prants 2020-06-06 10:46:50 +03:00
parent 51fd91e3db
commit b15a4e4773
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
5 changed files with 32 additions and 17 deletions

View File

@ -323,4 +323,11 @@ $(document).ready(function () {
}
})
})
$('a[data-toggle]').click(function (e) {
var bn = $(this)
var target = $(bn.attr('data-toggle'))
var speed = bn.attr('data-speed') || 'fast'
$(target).slideToggle(speed)
})
})

View File

@ -99,7 +99,8 @@ code
img
width: 175px
padding: 0 12px
.show-more-cnt
display: none
.login-btn
display: block
text-decoration: none

View File

@ -39,23 +39,23 @@ block body
if scope.indexOf('email') !== -1
li
i.fas.fa-fw.fa-envelope
|See your Email address
| See your Email address
li
i.fas.fa-fw.fa-user
|See your Display Name
| See your Display Name
.noaccess
span This application cannot
ul.nobulletin
if scope.indexOf('email') === -1
li
i.fas.fa-fw.fa-envelope
|See your Email address
| See your Email address
li
i.fas.fa-fw.fa-lock
|See your Password
| See your Password
li
i.fas.fa-fw.fa-cogs
|Change your Account Settings
| Change your Account Settings
.alert.alert-info
b Note!
|You can revoke #{client.title} at any time from your

View File

@ -76,6 +76,8 @@ html
a.nav-link(href="/news") News
li.nav-item
a.nav-link(href="https://forum.icynet.eu/") Forum
li.nav-item
a.nav-link(href="https://social.icynet.eu/") Social
ul.navbar-nav.my-2.my-lg-0
if user
li.nav-item

View File

@ -3,10 +3,11 @@ block title
|Icy Network - Log In
block body
.container.mb-4.mt-4
h1 Log in
.container.mb-4.mt-4.pt-4
.row
.col-sm-8
.col
.col-6
h1.mt-1.mb-5.text-center Log in to Icy Network
if message.text
if message.error
.alert.alert-danger
@ -23,11 +24,15 @@ block body
label(for="password") Password
input.form-control(type="password", name="password", id="password")
button.btn.btn-primary(type="submit") Log in
a(href="/register") Create an account
| ·
a(href="/login/reset") Forgot password?
if auth
aside.col-sm-4
if !registrations
.alert.alert-warning These links can only be used to log in to existing accounts.
include ../includes/external.pug
| or
a(href="/register") Create an account
| ·
a(href="/login/reset") Forgot password?
if auth
| ·
a.show-more(href="#",data-toggle="#extlogins") More options..
.show-more-cnt.mt-4#extlogins
if !registrations
.alert.alert-warning These links can only be used to log in to existing accounts.
include ../includes/external.pug
.col