From 0f35a67391916b6b0b51656315585c419ec752f9 Mon Sep 17 00:00:00 2001 From: nikolaswollenberg Date: Tue, 20 Feb 2024 11:17:06 +0100 Subject: [PATCH] tabs layouts --- templates/components/heatmap.html | 60 ++++++++++++ templates/index.html | 157 ++++++++++++++---------------- 2 files changed, 133 insertions(+), 84 deletions(-) create mode 100644 templates/components/heatmap.html diff --git a/templates/components/heatmap.html b/templates/components/heatmap.html new file mode 100644 index 0000000..5b50004 --- /dev/null +++ b/templates/components/heatmap.html @@ -0,0 +1,60 @@ +{% extends 'index.html' %} + +{% block heatmap %} + +
+
+
📅 Heatmap
+
+
+
+ + + +{% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 489a930..54961bd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,8 @@ {% extends 'layouts/main.html' %} {% block content %} -

{{ title }}

+

+ {{ title }}

{{ utc_dt }}

@@ -25,11 +26,11 @@ } -
-
-
+ +
+
-
Heatmap
+
📅 Heatmap
@@ -85,94 +86,82 @@
-

Gewohnheiten

+
📋 Gewohnheiten
Neue Liste erstellen
-
-
- -
-
Special title treatment
-

- With supporting text below as a natural lead-in to additional content. -

-
- - - {% for habit_list in habit_lists %} - -
-

{{ habit_list.name }}

- Gewohnheit - erstellen -
- -
    - {% for habit in habit_list.habits %} -
  • -
    - -
    -
    - -
    - -
    - {{ habit.name }} -
    - -
    - {{ habit.note }} - -
    - -
    - {% if habit %} - - {% else %} - 5 🔥 - {% endif %} - -
    - - -
    -
    -
    -
    -
    +
  • - {% endfor %}
+
+ {% for habit_list in habit_lists %} +
+ + +
    + {% for habit in habit_list.habits %} +
  • +
    + +
    +
    + +
    + +
    + {{ habit.name }} +
    + +
    + {{ habit.note }} + +
    + +
    + {% if not habit.streak == 0 %} + {{ habit.streak }} 🔥 + {% endif %} + +
    + + +
    +
    +
    +
    +
    +
  • + + {% endfor %} +
+
+ {% endfor %} +
- {% endfor %}
-
+