From 597a67f1d4c0a9b77d351cc1e1fe07f53d9f388d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 1 Sep 2024 19:55:34 +0100 Subject: Drop shadows on the featured and standard resource panels --- pyblackbird_cc/static/css/project.css | 9 +++++++ pyblackbird_cc/templates/resources/admin_bar.html | 29 ++++++++-------------- .../resources/resource_card_featured.html | 2 +- .../resources/resource_card_standard.html | 2 +- .../templates/resources/resource_list.html | 6 +++-- 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/pyblackbird_cc/static/css/project.css b/pyblackbird_cc/static/css/project.css index dca4100..8586e51 100644 --- a/pyblackbird_cc/static/css/project.css +++ b/pyblackbird_cc/static/css/project.css @@ -32,6 +32,15 @@ /* background-color: #eee;*/ /*}*/ +/* Change the colour of the box shadow */ +.my-card-shadow-sm { + box-shadow: 0 0.25rem 0.5rem rgba(100, 100, 100, 0.1); +} + +.my-card-shadow-lg { + box-shadow: 7px 7px 7px rgba(100, 100, 100, 0.5); +} + h1 { /*color: #657c76;*/ font-size: 2.0rem; diff --git a/pyblackbird_cc/templates/resources/admin_bar.html b/pyblackbird_cc/templates/resources/admin_bar.html index 5bddde6..ddb8e00 100644 --- a/pyblackbird_cc/templates/resources/admin_bar.html +++ b/pyblackbird_cc/templates/resources/admin_bar.html @@ -1,28 +1,21 @@ {# admin block #} {% if request.user.is_authenticated and request.user.is_staff %} -
-
Admin bar
+
+
Admin bar

Only you will see this bar - normal users will not see it. It allows us to include buttons for adding new resources, etc.

-
-
- -
- Logged in as - {{ request.user.email }} -
-
-
- {% csrf_token %} - -
-
+
+ Add a new resource +
+ Logged in as + {{ request.user.email }}
+
+ {% csrf_token %} + +
{% endif %} diff --git a/pyblackbird_cc/templates/resources/resource_card_featured.html b/pyblackbird_cc/templates/resources/resource_card_featured.html index 2d11ee8..e920cef 100644 --- a/pyblackbird_cc/templates/resources/resource_card_featured.html +++ b/pyblackbird_cc/templates/resources/resource_card_featured.html @@ -1,7 +1,7 @@ {% load static %} {% load markdown_extras %} -
+
{{ resource.thumbnail_filename }} diff --git a/pyblackbird_cc/templates/resources/resource_card_standard.html b/pyblackbird_cc/templates/resources/resource_card_standard.html index 8dc6fba..2b280a9 100644 --- a/pyblackbird_cc/templates/resources/resource_card_standard.html +++ b/pyblackbird_cc/templates/resources/resource_card_standard.html @@ -4,7 +4,7 @@
-
+
+ {% include "resources/admin_bar.html" %} +
{# featured resources #} {% if featured_resources %} @@ -41,7 +43,7 @@
{% for resource in resource_list %} - {% include "resources/resource_card_standard.html" with resource=resource %} + {% include "resources/resource_card_standard.html" with resource=resource %} {% endfor %}
{% else %} -- cgit v1.2.3