aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-29 18:31:48 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-29 18:31:48 +0100
commitb6652547fae6b3d7992dc89288b207d64e89dfb1 (patch)
treed9ef275fa874a185f23d66521e4b6b3431076654
parentbe20146f25ff459d7b2b6330c4897ddeb405e113 (diff)
downloadcheatdb-b6652547fae6b3d7992dc89288b207d64e89dfb1.tar.xz
Improve sign in form
-rw-r--r--app/scss/components.scss2
-rw-r--r--app/templates/flask_user/login.html4
2 files changed, 4 insertions, 2 deletions
diff --git a/app/scss/components.scss b/app/scss/components.scss
index 36343ff..79bba1c 100644
--- a/app/scss/components.scss
+++ b/app/scss/components.scss
@@ -25,7 +25,7 @@ a:hover {
padding: 0;
}
-.box h2, .box h3 {
+.box > h2, .box > h3 {
margin: 0;
padding: 0.5em 0.5em 0.5em 15px;
border-bottom: 1px solid #444;
diff --git a/app/templates/flask_user/login.html b/app/templates/flask_user/login.html
index ba5ce8c..8409f79 100644
--- a/app/templates/flask_user/login.html
+++ b/app/templates/flask_user/login.html
@@ -11,9 +11,11 @@ Sign in
<h2>{%trans%}Sign in{%endtrans%}</h2>
<form action="" method="POST" class="form box-body" role="form">
- <a href="{{ url_for('github_signin_page') }}">GitHub</a>
+ <h3>Sign in with Github</h3>
+ <p><a class="button" href="{{ url_for('github_signin_page') }}">GitHub</a></p>
+ <h3>Sign in with username/password</h3>
{{ form.hidden_tag() }}
{# Username or Email field #}