From 467f2396cad46f4a8f080cc4202e148d198dba06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Sun, 2 Feb 2025 19:48:55 +0200 Subject: [PATCH] Add dark template --- gallery/templates/gallery/album_detail.html | 2 +- gallery/templates/gallery/album_list.html | 9 +- gallery/templates/gallery/main.html | 4 +- .../gallery/partials/pagination.html | 10 +-- gallery/templates/gallery/photo_detail.html | 4 +- gallery/templates/gallery/photo_list.html | 4 +- static/css/muistox.css | 4 + templates/base_dark.html | 89 +++++++++++++++++++ 8 files changed, 108 insertions(+), 18 deletions(-) create mode 100644 templates/base_dark.html diff --git a/gallery/templates/gallery/album_detail.html b/gallery/templates/gallery/album_detail.html index 4e107bd..24c9d70 100644 --- a/gallery/templates/gallery/album_detail.html +++ b/gallery/templates/gallery/album_detail.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base_dark.html" %} {% load static %} diff --git a/gallery/templates/gallery/album_list.html b/gallery/templates/gallery/album_list.html index 72d1e60..2d1b405 100644 --- a/gallery/templates/gallery/album_list.html +++ b/gallery/templates/gallery/album_list.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base_dark.html" %} {% load static %} @@ -8,7 +8,6 @@ {% block content %} -
{% for album in album_list %}
@@ -25,10 +24,8 @@
{% endfor %} - - - - {% include "./partials/pagination.html" %} + +{% include "./partials/pagination.html" %} {% endblock %} \ No newline at end of file diff --git a/gallery/templates/gallery/main.html b/gallery/templates/gallery/main.html index 125753a..691afed 100644 --- a/gallery/templates/gallery/main.html +++ b/gallery/templates/gallery/main.html @@ -1,7 +1,7 @@ -{% extends "base.html" %} +{% extends "base_dark.html" %} -{% block title %} Galleria {% endblock %} +{% block title %} Gallery {% endblock %} {% block content %} diff --git a/gallery/templates/gallery/partials/pagination.html b/gallery/templates/gallery/partials/pagination.html index 5f63a44..1d1c226 100644 --- a/gallery/templates/gallery/partials/pagination.html +++ b/gallery/templates/gallery/partials/pagination.html @@ -1,13 +1,13 @@ {% load link_tags %} {% if page_obj.has_other_pages %} -
+
diff --git a/gallery/templates/gallery/photo_detail.html b/gallery/templates/gallery/photo_detail.html index f8cf95d..0842948 100644 --- a/gallery/templates/gallery/photo_detail.html +++ b/gallery/templates/gallery/photo_detail.html @@ -1,7 +1,7 @@ -{% extends "base.html" %} +{% extends "base_dark.html" %} -{% block title %} Gallery : Photo {% endblock %} +{% block title %} Gallery : Photo : {{ photo.slug }} {% endblock %} diff --git a/gallery/templates/gallery/photo_list.html b/gallery/templates/gallery/photo_list.html index 56a00b8..44ef8b1 100644 --- a/gallery/templates/gallery/photo_list.html +++ b/gallery/templates/gallery/photo_list.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "base_dark.html" %} @@ -8,7 +8,7 @@ {% block content %} {% load link_tags %} -
    +
    • Latest
    • Top Liked
    • Popular
    • diff --git a/static/css/muistox.css b/static/css/muistox.css index 4bec60f..19430c7 100644 --- a/static/css/muistox.css +++ b/static/css/muistox.css @@ -6,6 +6,10 @@ body { min-height: 50px; } +header { + margin-bottom: 0px; +} + .uk-breadcrumb>:nth-child(n+2):not(.uk-first-column)::before { margin: 0 10px 0 calc(10px - 4px); } \ No newline at end of file diff --git a/templates/base_dark.html b/templates/base_dark.html new file mode 100644 index 0000000..1e72e9c --- /dev/null +++ b/templates/base_dark.html @@ -0,0 +1,89 @@ + + + + + {% load static %} + + + + {% block title %}Gallery{% endblock %} + + + + + + + + + + + + +
      + + + {% block parallax %}{% endblock %} + + + {% block navbar %} +
      + +
      + + +
      +
      + + +
      +
      + {% endblock %} + +
      + + +
      + {% block content %} No Content {% endblock %} +
      + + +
      +
      + © {% now "Y" %} Nyymix, powered by muistox. +
      +
      + + + + + + + + + + \ No newline at end of file