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 img
width: 175px width: 175px
padding: 0 12px padding: 0 12px
.show-more-cnt
display: none
.login-btn .login-btn
display: block display: block
text-decoration: none text-decoration: none

View File

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

View File

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

View File

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