From ac9286bf7e73c1f013e9b5dc5bbac45c6f1c7d4a Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 4 Aug 2024 12:59:43 +0200 Subject: [PATCH] feat: add accordion component for services list Replaced the services list layout with a new accordion component. This allows for a more organized and user-friendly display of services, facilitating better content management and improved user interaction. The CSS was updated to include styles for the accordion structure. --- assets/css/base.css | 23 +++++++++++++++++++++++ templates/index.html | 34 ++++++++++++++++++++++------------ 2 files changed, 45 insertions(+), 12 deletions(-) diff --git a/assets/css/base.css b/assets/css/base.css index 7dbb925..b3f452a 100644 --- a/assets/css/base.css +++ b/assets/css/base.css @@ -272,4 +272,27 @@ h5 { .btn-primary .main-link:hover { text-decoration: none; color: black; +} + +/* Accordion Styles */ + +.accordion { + border: 1px solid #ddd; + border-radius: 5px; +} +.accordion-item { + border-bottom: 1px solid #ddd; +} +.accordion-header { + padding: 1rem; + cursor: pointer; +} +.accordion-button { + background: none; + border: none; + outline: none; + font-size: 1.25rem; +} +.accordion-collapse { + padding: 1rem; } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index f50c447..8066de4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -36,19 +36,32 @@
-
+
{% for service in services.services %} {% if not service.exclude_from_index %} -
-
-
+
+

+ +

+
+
{% if service.icon %}
{{ service.icon | icon | safe }} {% if service.homemade %} @@ -61,16 +74,13 @@ {% endif %}
{% endif %} -
{{ service.name }}

{{ service.long_description }}

{% for link in service.links %} {% if link.alternatives %}