From ee6cc2de6d93fd850f687bb716092417b02b6f1f Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 23 May 2024 17:23:04 +0200 Subject: [PATCH] feat(sitemap): redesign UI for improved navigation The sitemap page has undergone a significant redesign for enhanced user navigation. The update introduces a card-based layout with updated CSS for better visuals and user interaction, focusing on accessibility and aesthetics. The redesigned sitemap now features a containerized layout with cards, improving the overall page structure and readability. Each group within the sitemap is now displayed as a card, making individual sections more distinguishable and easier to navigate. This change aims to provide a more engaging user experience by making information easier to find and the page more pleasant to interact with. --- src/structables/static/css/style.css | 31 +++++++++++++++++++ src/structables/templates/sitemap.html | 42 ++++++++++++++------------ 2 files changed, 54 insertions(+), 19 deletions(-) diff --git a/src/structables/static/css/style.css b/src/structables/static/css/style.css index 6962e61..22d85b5 100644 --- a/src/structables/static/css/style.css +++ b/src/structables/static/css/style.css @@ -320,4 +320,35 @@ iframe { .text-muted { color: #6c757d !important; +} + + + +.sitemap-group .card { + background-color: var(--primary-bg); + border: 1px solid var(--border-color); + border-radius: 8px; + box-shadow: 0 2px 4px var(--shadow-color); + overflow: hidden; +} + +.sitemap-group .card-title { + font-size: 1.5em; + margin-bottom: 0.5em; +} + +.sitemap-group .list-unstyled { + padding-left: 0; +} + +.sitemap-group .list-unstyled li { + margin-bottom: 0.5em; +} + +.sitemap-group .list-unstyled li a { + color: var(--link-color); +} + +.sitemap-group .list-unstyled li a:hover { + text-decoration: underline; } \ No newline at end of file diff --git a/src/structables/templates/sitemap.html b/src/structables/templates/sitemap.html index 4011540..ef9da67 100644 --- a/src/structables/templates/sitemap.html +++ b/src/structables/templates/sitemap.html @@ -1,23 +1,27 @@ {% extends "base.html" %} {% block content %} -
-

Sitemap

-
-
- {% for group in groups %} -
- -

{{ group[0] }}

-
- -
- {% endfor %} -
- -
+
+
+

Sitemap

+
+
+ {% for group in groups %} +
+
+
+

+ {{ group[0] }} +

+ +
+
+
+ {% endfor %} +
+
{% endblock %} \ No newline at end of file