From 511786f9ad75bd20157f3cbff1b17e48ac9734f5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 1 Sep 2024 17:00:09 +0100 Subject: Logo and new navbar and new detail design - logo in place - new navbar - removed Joanna Lemon, etc - tidying up the detail page, using cards and nicer titles - better detail panel at the top of the page with a table in it --- pyblackbird_cc/templates/base.html | 61 ++++---- pyblackbird_cc/templates/pages/home.html | 18 +++ .../templates/resources/resource_detail.html | 169 ++++++++++++--------- 3 files changed, 146 insertions(+), 102 deletions(-) (limited to 'pyblackbird_cc/templates') diff --git a/pyblackbird_cc/templates/base.html b/pyblackbird_cc/templates/base.html index b02c52c..36c8c5a 100644 --- a/pyblackbird_cc/templates/base.html +++ b/pyblackbird_cc/templates/base.html @@ -51,40 +51,39 @@
-
-
 
-
-
-

Joanna Lemon Learning

-

- Experienced primary school teacher, dedicated to creating colourful and - clear educational learning resources. -

+
+ +
-
{% block body %} {% if messages %} diff --git a/pyblackbird_cc/templates/pages/home.html b/pyblackbird_cc/templates/pages/home.html index 2d60d83..1b557f4 100644 --- a/pyblackbird_cc/templates/pages/home.html +++ b/pyblackbird_cc/templates/pages/home.html @@ -90,6 +90,24 @@ + + {# Image section#} +
+
+
+

Sample Resources

+
+ Sample Resource +
+

This is a sample of the high-quality educational resources you can + access with our membership plans. Our resources are carefully crafted by experienced educators + to engage and inspire young learners.

+
+
+
+ +
diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html index a68c321..64747a2 100644 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ b/pyblackbird_cc/templates/resources/resource_detail.html @@ -4,103 +4,130 @@ {% block content %}
+ +
-

{{ resource.name }}

-
-
- Subject: {{ resource.main_resource_category }} -
-
- Age range: {{ resource.age_range }} -
-
- Resource type: {{ resource.resource_type }} +
+
+

{{ resource.name }}

-
- Number of files in this resource: {{ resource.pdf_filenames|length }} -
-
-
-
- Created: {{ resource.created|date:"D d M Y" }} -
-
- {% if request.user.is_authenticated and request.user.is_staff %} - Edit this resource - {% endif %} +
+ + + + + + + + + + + + + + + + + + + + + + + +
Subject{{ resource.main_resource_category }}
Age range{{ resource.age_range }}
Resource type{{ resource.resource_type }}
Number of files{{ resource.pdf_filenames|length }}
Created{{ resource.created|date:"D d M Y" }}
+
+
Resource Description
+
{{ resource.description | markdown | safe }}
+
+ +
+ {% if request.user.is_authenticated and request.user.is_staff %} + Edit this resource + {% endif %} +
+
-

Feature images

-
- {% for tn_url, tn_filename in resource.thumbnails %} -
- {{ tn_filename }} +
+
+

Feature Images

+
+
+
+ {% for tn_url, tn_filename in resource.thumbnails %} +
+ {{ tn_filename }} +
+ {% endfor %}
- {% endfor %} +
+ + {% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} -
+
- {% if resource.snapshot_urls.items|length > 1 %} -

File preview {{ forloop.counter }}: {{ snapshot_filename|cut:".pdf" }}

- {% else %} -

File preview: {{ snapshot_filename|cut:".pdf" }}

- {% endif %} - -