From e548e02390b7e4c1f1d89f7559a59c3c27d3664a Mon Sep 17 00:00:00 2001 From: Corban-Lee Date: Wed, 31 Jul 2024 16:01:44 +0100 Subject: [PATCH] basic login page --- apps/static/css/base.css | 30 ++++++++++++ apps/templates/accounts/login.html | 30 +++++++----- apps/templates/includes/navbar.html | 6 ++- .../layouts/base-authentication.html | 49 ------------------- apps/templates/layouts/base-error.html | 36 -------------- apps/templates/layouts/base.html | 1 + 6 files changed, 53 insertions(+), 99 deletions(-) create mode 100644 apps/static/css/base.css delete mode 100644 apps/templates/layouts/base-authentication.html delete mode 100644 apps/templates/layouts/base-error.html diff --git a/apps/static/css/base.css b/apps/static/css/base.css new file mode 100644 index 0000000..60ff730 --- /dev/null +++ b/apps/static/css/base.css @@ -0,0 +1,30 @@ + +:root { + --discord-blurple: #5865F2; +} + +:root, +[data-bs-theme="light"] { + +} + +[data-bs-theme="dark"] { + +} + +.btn-discord { + --bs-btn-color: #fff; + --bs-btn-bg: var(--discord-blurple); + --bs-btn-border-color: var(--discord-blurple); + --bs-btn-hover-color: #fff; + --bs-btn-hover-bg: #505CD6; + --bs-btn-hover-border-color: #4954C9; + --bs-btn-focus-shadow-rgb: 49, 132, 253; + --bs-btn-active-color: #fff; + --bs-btn-active-bg: #434DBB; + --bs-btn-active-border-color: #434DBB; + --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + --bs-btn-disabled-color: #fff; + --bs-btn-disabled-bg: var(--discord-blurple); + --bs-btn-disabled-border-color: var(--discord-blurple); +} \ No newline at end of file diff --git a/apps/templates/accounts/login.html b/apps/templates/accounts/login.html index 19d7b80..4fe1965 100644 --- a/apps/templates/accounts/login.html +++ b/apps/templates/accounts/login.html @@ -1,24 +1,30 @@ -{% extends "layouts/base-authentication.html" %} +{% extends "layouts/base.html" %} {% load static %} -{% block title %} Sign IN {% endblock title %} +{% block title %} - Login {% endblock title %} {% block stylesheets %}{% endblock stylesheets %} {% block content %} - -
-
-
-
- PYRSS Logo +
+
+ + -
-
-

PYRSS - Login

- Login with Discord +
{% endblock content %} diff --git a/apps/templates/includes/navbar.html b/apps/templates/includes/navbar.html index 46c457d..d03f884 100644 --- a/apps/templates/includes/navbar.html +++ b/apps/templates/includes/navbar.html @@ -21,6 +21,7 @@ + {% if request.user.is_authenticated %}
  • {% comment %}{% endcomment %} @@ -54,6 +55,7 @@
  • + {% endif %}
    diff --git a/apps/templates/layouts/base-authentication.html b/apps/templates/layouts/base-authentication.html deleted file mode 100644 index 011f433..0000000 --- a/apps/templates/layouts/base-authentication.html +++ /dev/null @@ -1,49 +0,0 @@ - -{% load static %} - - - - - - - Django Adminator - {% block title %}{% endblock %} | AppSeed - - - - - - - - - - - - - - - {% block stylesheets %}{% endblock stylesheets %} - - - - -
    -
    -
    - - - - {% block content %}{% endblock content %} - - - - {% block javascripts %}{% endblock javascripts %} - - - diff --git a/apps/templates/layouts/base-error.html b/apps/templates/layouts/base-error.html deleted file mode 100644 index 0291659..0000000 --- a/apps/templates/layouts/base-error.html +++ /dev/null @@ -1,36 +0,0 @@ - -{% load static %} - - - - - - - Django Adminator - {% block title %}{% endblock %} | AppSeed - - - - - - - - - - - - - - - {% block stylesheets %}{% endblock stylesheets %} - - - - - {% block content %}{% endblock content %} - - - - {% block javascripts %}{% endblock javascripts %} - - - \ No newline at end of file diff --git a/apps/templates/layouts/base.html b/apps/templates/layouts/base.html index 060ea51..77928c0 100644 --- a/apps/templates/layouts/base.html +++ b/apps/templates/layouts/base.html @@ -20,6 +20,7 @@ +