From a505c844c0537c7aeb59e287687561d2d0a9d6e4 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 22 Oct 2024 17:12:20 +0100 Subject: wip: resource index page my CSS changes - using flex for featured, grid for standard - nice rainbow underline to h1 using ::after, etc - lorem ipsum text - spaced out content of standard cards a little - new Noto font from Google fonts --- .../resources/resource_card_standard.html | 84 ++++++++++------------ 1 file changed, 39 insertions(+), 45 deletions(-) (limited to 'alphabetlearning/templates/resources/resource_card_standard.html') diff --git a/alphabetlearning/templates/resources/resource_card_standard.html b/alphabetlearning/templates/resources/resource_card_standard.html index cf2b786..4cfa929 100644 --- a/alphabetlearning/templates/resources/resource_card_standard.html +++ b/alphabetlearning/templates/resources/resource_card_standard.html @@ -3,56 +3,50 @@ -
+
+
+ {{ resource.thumbnail_filename }} +
- {{ resource.thumbnail_filename }} +
{{ resource.name }} +
-
- -
- {{ resource.age_range }} - {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} - EFL - {% else %} - {{ resource.main_resource_category_name }} - {% endif %} - {% if request.user.is_authenticated and request.user.is_staff %} - Feature slot: {{ resource.feature_slot }} - {% endif %} -
-
-

{{ resource.card_description }}

-
-
-

1 credit

- - {% if resource.in_cart %} -
- {% csrf_token %} - -
- {% else %} -
- {% csrf_token %} - -
- {% endif %} -
-
+ {{ resource.age_range }} + {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} + EFL + {% else %} + {{ resource.main_resource_category_name }} + {% endif %} + {% if request.user.is_authenticated and request.user.is_staff %} + Feature slot: {{ resource.feature_slot }} + {% endif %} +
+
+

{{ resource.card_description }}

- {% if request.user.is_authenticated and request.user.is_staff %}
- Edit - Edit Feature Images - Add PDFs -
- {% endif %} +

1 credit

+ + {% if resource.in_cart %} +
+ {% csrf_token %} + +
+ {% else %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+ {% if request.user.is_authenticated and request.user.is_staff %} +
+ Edit + Edit Feature Images + Add PDFs
+ {% endif %}
-- cgit v1.2.3