From fba8cbdcc71eba7cf2e38299b4a560109108efe9 Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 23 Jan 2024 00:06:41 -0500 Subject: [PATCH] add little nav menu for categorizations --- dlibrary/static/dlibrary.css | 11 ++++++++++- dlibrary/templates/list.html | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlibrary/static/dlibrary.css b/dlibrary/static/dlibrary.css index af0b971..c2a8275 100644 --- a/dlibrary/static/dlibrary.css +++ b/dlibrary/static/dlibrary.css @@ -6,10 +6,19 @@ body { /* listing stuff */ -#list-title { +#list-title, nav { text-align: center; } +.nav { + display: flex; + justify-content: center; + gap: 20px; + font-size: 20px; + font-weight: bold; + margin-bottom: 25px; +} + .card-listing { display: flex; flex-wrap: wrap; diff --git a/dlibrary/templates/list.html b/dlibrary/templates/list.html index 8ab18ee..1d5b15b 100644 --- a/dlibrary/templates/list.html +++ b/dlibrary/templates/list.html @@ -2,6 +2,7 @@ {% block body %} {% from 'utils.html' import root with context %}

DLibrary{% if categorization %} > {{ categorization.capitalize() }}{% endif %}{% if title %} > {{ title }}{% endif %}

+
{% for work in works %}