From 0142577499ef821e02f04948ceb912d74bb4ebb8 Mon Sep 17 00:00:00 2001 From: Felix Sargent Date: Thu, 13 Jun 2024 12:11:44 -0700 Subject: [PATCH] Update styles for login page. --- approval_polls/staticfiles/style.css | 4 +- approval_polls/templates/account/login.html | 75 ++++++++++++-------- approval_polls/templates/account/signup.html | 3 +- approval_polls/templates/base.html | 4 +- 4 files changed, 51 insertions(+), 35 deletions(-) diff --git a/approval_polls/staticfiles/style.css b/approval_polls/staticfiles/style.css index ad3c20f..b522ac8 100644 --- a/approval_polls/staticfiles/style.css +++ b/approval_polls/staticfiles/style.css @@ -4,8 +4,8 @@ } .btn-secondary { - background-color: #7ec242 !important; - border-color: #7ec242 !important; + background-color: #42c2a1 !important; /* Teal */ + border-color: #42c2a1 !important; } .btn-primary { diff --git a/approval_polls/templates/account/login.html b/approval_polls/templates/account/login.html index 5b862e7..c820266 100644 --- a/approval_polls/templates/account/login.html +++ b/approval_polls/templates/account/login.html @@ -7,39 +7,54 @@ {% trans "Sign In" %} {% endblock head_title %} {% block content %} - {% element h1 %} - {% trans "Sign In" %} -{% endelement head_title %} -{% comment %} {% if SOCIALACCOUNT_ENABLED %} {% endcomment %} +

{% trans "Sign In" %}

+ +{% load widget_tweaks %} +
+ {% csrf_token %} +
+
+ + {{ form.login|add_class:"form-control" }} +
+
+ + {{ form.password|add_class:"form-control" }} + +
+ {% if redirect_field_value %} + + {% endif %} +
+
+
+
+
+ + + + +
+
+
+
+
+
+
Sign in with Google + alt="Sign in with Google" + width="200px" + height="45px" /> +
-
-{% url 'account_login' as login_url %} -{% element form form=form method="post" action=login_url tags="entrance,login" %} -{% slot body %} -{% csrf_token %} -{% element fields form=form unlabeled=True %} -{% endelement %} -{% if redirect_field_value %} - -{% endif %} -{% endslot %} -{% slot actions %} -{% element button type="submit" tags="prominent,login" %} -{% trans "Sign In" %} -{% endelement %} -{% endslot %} -{% endelement %} -
- - - - + {% endblock content %} diff --git a/approval_polls/templates/account/signup.html b/approval_polls/templates/account/signup.html index ca100a0..d7c33cb 100644 --- a/approval_polls/templates/account/signup.html +++ b/approval_polls/templates/account/signup.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load widget_tweaks %} -{% load allauth i18n %} +{% load allauth %} +{% load i18n %} {% block head_title %} {% trans "Signup" %} {% endblock head_title %} diff --git a/approval_polls/templates/base.html b/approval_polls/templates/base.html index 9914759..d6d908d 100644 --- a/approval_polls/templates/base.html +++ b/approval_polls/templates/base.html @@ -47,7 +47,7 @@ {% get_current_timezone as TIME_ZONE %}