Clean up welcome page and login flow
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-10-23 12:01:01 -05:00
parent 677f5fa2de
commit bd03f2709e
5 changed files with 28 additions and 95 deletions

View File

@@ -5,6 +5,7 @@ html
link(rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css')
link(rel='stylesheet' href='/assets/auth/forms.css')
link(href="https://fonts.googleapis.com/css?family=Merienda:700&display=swap" rel="stylesheet")
script(src="https://kit.fontawesome.com/5043ba9cc5.js" crossorigin="anonymous")
body
.container-fluid
.row.no-gutter

View File

@@ -3,3 +3,16 @@ extends ./auth_page
block content
h3.login-heading.mb-4 #{message}
a.btn.btn-lg.btn-primary.btn-block.btn-login.text-uppercase.font-weight-bold.mb-2.form-submit-button(href=button_link) #{button_text}
script.
const href = "#{button_link}"
window.location.href = href
.text-center
div(style="margin: 30px")
span Or, continue with:
a(style="margin-left: 10px;" title="Local Login" href="/auth/flitter/login")
i.fas.fa-user
a(style="margin-left: 10px;" title="Continue with Starship CoreID" href="/auth/starship_oauth/login")
i.fas.fa-rocket
a(style="margin-left: 10px;" title="Continue with GitHub" href="/auth/github_oauth/login")
i.fab.fa-github

View File

@@ -8,10 +8,16 @@ block form
input#inputPassword.form-control(type='password' name='password' required placeholder='Password')
label(for='inputPassword') Password
button.btn.btn-lg.btn-primary.btn-block.btn-login.text-uppercase.font-weight-bold.mb-2.form-submit-button(type='submit') Login
.text-center
div(style="margin: 30px")
span Or, continue with:
a(style="margin-left: 10px;" title="Continue with Starship CoreID" href="/auth/starship_oauth/login")
i.fas.fa-rocket
a(style="margin-left: 10px;" title="Continue with GitHub" href="/auth/github_oauth/login")
i.fab.fa-github
if registration_enabled
.text-center
span.small Need an account? 
a(href='./register') Register here.
.text-center
span.small(style="color: #999999;") Provider: #{provider_name}