aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/templates/resources/resource_card_featured.html
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-28 20:45:34 +0000
committerMatthew Lemon <y@yulqen.org>2024-10-28 20:45:34 +0000
commitfe61b793acf6140b32b79a922a2af7142160d767 (patch)
tree2c989948fa1c41015312ab651832b8b7533a34fc /alphabetlearning/templates/resources/resource_card_featured.html
parentb7a7acbc43bc7e574073c45c75f778404548c034 (diff)
Adds hover effect to featured images on resoure list page
Diffstat (limited to 'alphabetlearning/templates/resources/resource_card_featured.html')
-rw-r--r--alphabetlearning/templates/resources/resource_card_featured.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/alphabetlearning/templates/resources/resource_card_featured.html b/alphabetlearning/templates/resources/resource_card_featured.html
index bca4f53..c248922 100644
--- a/alphabetlearning/templates/resources/resource_card_featured.html
+++ b/alphabetlearning/templates/resources/resource_card_featured.html
@@ -2,7 +2,9 @@
{% load markdown_extras %}
<div class="featured-card" style="border-color: {{ resource.main_resource_category_colour_css_class }};">
- <img class="featured-img" src="{{ resource.thumbnail_urls|first }}" alt="{{ resource.thumbnail_filename }}">
+ <div class="featured-img">
+ <img src="{{ resource.thumbnail_urls|first }}" alt="{{ resource.thumbnail_filename }}">
+ </div>
<div>
<a class="card-title-link" href="{% url 'resources:resource_detail' resource_id=resource.id %}">{{ resource.name }}</a>
<div class="card-metadata-row">