From ef81bee960e89e02a6228a1e6facfae7e652ae35 Mon Sep 17 00:00:00 2001 From: Lorenz Padberg Date: Wed, 13 Apr 2022 14:33:07 +0200 Subject: [PATCH] added basic styling to templates --- package.json | 3 +++ server/vbv_lernwelt/templates/base.html | 2 +- .../templates/learnpath/circle.html | 20 ++++++++++-------- .../templates/learnpath/learning_path.html | 21 +++++++++++++------ 4 files changed, 30 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 3f5ec7aa..c358f6b8 100644 --- a/package.json +++ b/package.json @@ -10,5 +10,8 @@ }, "devDependencies": { "cypress": "^9.4.1" + }, + "dependencies": { + "tailwindcss": "^3.0.24" } } diff --git a/server/vbv_lernwelt/templates/base.html b/server/vbv_lernwelt/templates/base.html index 0c162dad..fc9f5f06 100644 --- a/server/vbv_lernwelt/templates/base.html +++ b/server/vbv_lernwelt/templates/base.html @@ -15,7 +15,7 @@ - + {% endblock %} diff --git a/server/vbv_lernwelt/templates/learnpath/circle.html b/server/vbv_lernwelt/templates/learnpath/circle.html index 2d0e3337..de0abbe4 100644 --- a/server/vbv_lernwelt/templates/learnpath/circle.html +++ b/server/vbv_lernwelt/templates/learnpath/circle.html @@ -5,19 +5,18 @@ {% block body_class %}template-cicle{% endblock %} {% block content %} -
+
+
Zurück zum Lernpfad
-

{{ page.title }}

-
{{ page.description }}
-
{{ page.goals }}
+

{{ page.title }}

+
{{ page.description }}
+
{{ page.goals }}
-
- -
{{ page.intro|richtext }}
+
{% for learning_sequence in page.get_children %} -
-

{{ learning_sequence.title }}

+
+

{{ learning_sequence.title }}

{% for learning_unit in learning_sequence.get_children %}

{{ learning_unit.title }}

@@ -25,5 +24,8 @@ {% endfor %}
{% endfor %} +
+
+ {% endblock %} diff --git a/server/vbv_lernwelt/templates/learnpath/learning_path.html b/server/vbv_lernwelt/templates/learnpath/learning_path.html index 2c44b537..3ea14e52 100644 --- a/server/vbv_lernwelt/templates/learnpath/learning_path.html +++ b/server/vbv_lernwelt/templates/learnpath/learning_path.html @@ -5,15 +5,24 @@ {% block body_class %}template-learningpath{% endblock %} {% block content %} -

{{ page.title }}

+

{{ page.title }}

-
{{ page.intro|richtext }}
+
{{ page.intro|richtext }}
+
{% for topic in page.get_children %} -

{{ topic.title }}

- {% for circle in topic.get_children %} -

{{ circle.title }}

- {% endfor %} +
+

{{ topic.title }}

+
+ {% for circle in topic.get_children %} + + {% endfor %} +
+
+ {% endfor %} +
{% endblock %}