diff --git a/app/views/auth/auth_page.pug b/app/views/auth/auth_page.pug index fc4bfc8..4d7346b 100644 --- a/app/views/auth/auth_page.pug +++ b/app/views/auth/auth_page.pug @@ -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 diff --git a/app/views/auth/form_page.pug b/app/views/auth/form_page.pug index a9511a8..4d551b9 100644 --- a/app/views/auth/form_page.pug +++ b/app/views/auth/form_page.pug @@ -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 \ No newline at end of file diff --git a/app/views/auth/login.pug b/app/views/auth/login.pug index 1849814..e70d16c 100644 --- a/app/views/auth/login.pug +++ b/app/views/auth/login.pug @@ -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} diff --git a/app/views/login.pug b/app/views/login.pug index fd7e573..54adb36 100644 --- a/app/views/login.pug +++ b/app/views/login.pug @@ -2,94 +2,5 @@ html head title Login | #{_app.name} meta(name="viewport" content="width=device-width, initial-scale=1") - link(rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous") - script(src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous") - script(src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous") - script(src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous") - script(src="https://kit.fontawesome.com/5043ba9cc5.js" crossorigin="anonymous") - link(href="https://fonts.googleapis.com/css?family=Merienda:700&display=swap" rel="stylesheet") - - style(type="text/css"). - @import url('https://fonts.googleapis.com/css?family=Rajdhani'); - html, - body { - background-color:#343a40; - } - .container-intro { - margin-top: 1em; - color: #cccccc; - text-align: center; - } - #name { - font-family: 'Merienda', cursive; - } - #login { - width: 50em; - } - .login-container { - display: grid; - color: #cccccc; - //- border: solid 7em #cccccc; - align-self: center; - background: transparent; - -webkit-transition: all .5s ease; - transition: all .5s ease; - outline: none; - box-shadow: 20em 38em 34em -26em rgba(0, 0, 0, 0.2); - border-radius: 82em 65em 185em 1085em/72em 225em 58em 15em; - width: 90%; - margin: auto; - } - .btn-login { - color: #cccccc; - border: solid em #cccccc; - margin: .5rem; - align-self: center; - background: transparent; - -webkit-transition: all .5s ease; - transition: all .5s ease; - outline: none; - box-shadow: 20em 38em 34em -26em rgba(0, 0, 0, 0.2); - border-radius: 255em 15em 225em 15em/15em 225em 15em 255em; - padding: 1em; - } - .login-container div a { - width: 100%; - } - .icons { - font-size: 1.8em; - padding: 1em 1em 1em 1em; - } - - body - .container-intro - h1 Welcome to - span#name #{AppName} - h2 Choose your login method: - - .container-login - .login-container - div - a.btn.btn-login.btn-light(href="/auth/flitter/login") - i.icons.fas.fa-sign-in-alt - span Local Login - div - a.btn.btn-login.btn-light(href="/auth/starship_oauth/login") - i.icons.fas.fa-rocket - span Login with Starship CoreID - div - a.btn.btn-login.btn-light(href="/auth/github_oauth/login") - i.icons.fab.fa-github - span Login with GitHub - //div - a.btn.btn-login.btn-light.disabled(href="google.com") - i.icons.fab.fa-google - span Login with Google - //div - a.btn.btn-login.btn-light.disabled(href="microsoft.com") - i.icons.fab.fa-microsoft - span Login with Microsoft - //div - a.btn.btn-login.btn-light.disabled(href="apple.com") - i.icons.fab.fa-apple - span Login with Apple + script. + window.location.href = 'auth/login' \ No newline at end of file diff --git a/app/views/welcome.pug b/app/views/welcome.pug index 1fc806b..963959f 100644 --- a/app/views/welcome.pug +++ b/app/views/welcome.pug @@ -37,10 +37,12 @@ html body .flitter-container img.flitter-image(src="/assets/logo/3x/logo3x.png") - a.flitter-name(href="/login" target="_blank") powered by #{_app.name} + div + a.flitter-name(href="/login" target="_blank") #{_app.name} + p.flitter-text(style="margin-left: 38px;") #{_app.name} is your personal information tree if user .flitter-container p.flitter-text Welcome, #{user.uid}! Log out. else .flitter-container - p.flitter-text New to #{_app.name}? Start here. + p.flitter-text Get started here.