From 313e30487d93d900abda5120966f3e29f24ce6e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 26 Jan 2024 10:12:15 +0200 Subject: [PATCH] e11sync: move base template to e11sync/ --- app/e11sync/apps.py | 6 ++++++ app/e11sync/settings.py | 1 + .../signup => e11sync/templates}/base.html | 11 +++++++++-- app/signup/static/signup/style.scss | 13 ++++++++++--- app/signup/templates/signup/index.html | 2 +- 5 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 app/e11sync/apps.py rename app/{signup/templates/signup => e11sync/templates}/base.html (80%) diff --git a/app/e11sync/apps.py b/app/e11sync/apps.py new file mode 100644 index 0000000..0a29bf3 --- /dev/null +++ b/app/e11sync/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class E11SyncConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'e11sync' diff --git a/app/e11sync/settings.py b/app/e11sync/settings.py index afd7b62..9a29f26 100644 --- a/app/e11sync/settings.py +++ b/app/e11sync/settings.py @@ -46,6 +46,7 @@ INTERNAL_IPS = ["127.0.0.1"] INSTALLED_APPS = (['debug_toolbar'] if DEBUG else []) + [ 'compressor', + 'e11sync.apps.E11SyncConfig', 'signup.apps.SignupConfig', 'django.contrib.admin', diff --git a/app/signup/templates/signup/base.html b/app/e11sync/templates/base.html similarity index 80% rename from app/signup/templates/signup/base.html rename to app/e11sync/templates/base.html index 023449d..02257ad 100644 --- a/app/signup/templates/signup/base.html +++ b/app/e11sync/templates/base.html @@ -13,10 +13,17 @@
- +
{% block "body" %}{% endblock %} diff --git a/app/signup/static/signup/style.scss b/app/signup/static/signup/style.scss index f297733..baa1b53 100644 --- a/app/signup/static/signup/style.scss +++ b/app/signup/static/signup/style.scss @@ -102,17 +102,24 @@ main { margin-top: 33px; } -#header { +header { margin-left: auto; margin-right: auto; padding: 1rem 2rem 2rem 2rem; border-radius: 10px; max-width: 1000px; - background-color: #e6e6e6; background: radial-gradient(circle at top left, $lightBlue 0%, #aaa 50%, #666 100%); } +nav { + padding: 10px 0; + text-align: right; + a { + padding-left: 15px; + } +} + /*******************************/ /* Shared by a couple of pages */ /*******************************/ @@ -272,7 +279,7 @@ blockquote { color: #ececec; } - #header { + header { background-color: $darkBgGrey; background: radial-gradient(circle at top left, $blueLinkVisited 0%, $darkBgGrey 50%, $darkTextColor 100%); } diff --git a/app/signup/templates/signup/index.html b/app/signup/templates/signup/index.html index 67d1d34..06ff19d 100644 --- a/app/signup/templates/signup/index.html +++ b/app/signup/templates/signup/index.html @@ -1,4 +1,4 @@ -{% extends "signup/base.html" %} +{% extends "base.html" %} {% block "pagename" %}index{% endblock %}