From ac8d795ca1c578545f060cb2355dcb53c9c9c30f Mon Sep 17 00:00:00 2001 From: grgr Date: Tue, 8 Nov 2022 20:23:24 +0100 Subject: [PATCH] some css modified, some todo added --- app.py | 7 ++++++ library.db | Bin 24576 -> 24576 bytes static/style_default.css | 47 ++++++++++++++++++++++++++++++++++++++- templates/base.html | 8 +++---- templates/home.html | 44 ++++++++++++++++++++---------------- 5 files changed, 81 insertions(+), 25 deletions(-) diff --git a/app.py b/app.py index cd18645..47a3ec6 100644 --- a/app.py +++ b/app.py @@ -190,5 +190,12 @@ def delete(id): # TODO: + +# - categoryes are added to the wrong card, fix it +# - check for double tags +# - add more topic tags + +# - add title to cards # - list the cards # - put its category inside + diff --git a/library.db b/library.db index 9c019f7553cb419717b23b0ee9c674c7e6f4411c..3062bf4b961783c859b2a43631d01bbd43eb299a 100644 GIT binary patch delta 232 zcmZoTz}Rqrae_4C?1?hYtg{*POcXYzEa2y3<-fri!&xC7Nrz(Z2q7xC?Lu&#lX&YnSuW{ z|62Y={vf^|e3$vvfQIemn|#^N-GYIEfd`1eK#PNwfz#N~$iT=**U(Vcz(T>$(#pud z%E&m#(Z$!(PoXF^F(tJ~0jR)Wa*+QfA$I;C2B7P%^6%tdz~985!XE@Q*oI$7fSs8^ Wy(lpyGdVFwAu%O4GjDQA{2TyidOQ38 delta 195 zcmZoTz}Rqrae_4CjEOSNtTPz&{A)L+Ea2y2=6}P$|BL@K|C`N<0( * { + font-size: 1.8ch; + color: white; + background-color: rgb(147, 93, 255); +} + +.topic-tag::before{ + content: "—"; +} + +.btn { + text-decoration: none; + background-color: white; + border: none; + color: grey; +} + +.btn:hover{ + cursor: pointer; + background: grey; + color: white; + transition: background 0.4s, color 0.4s; } \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 6cb558e..fe06706 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,15 +7,13 @@ - + {% for message in get_flashed_messages() %}
{{ message }}
diff --git a/templates/home.html b/templates/home.html index 398263c..deb5909 100644 --- a/templates/home.html +++ b/templates/home.html @@ -4,6 +4,9 @@

{% block title %} Welcome to grgr's library {% endblock %}

+
+ + +
{% for category, cards in categories.items() %} @@ -12,33 +15,36 @@
{{ category }}
+ + + +
+
+ +
+
+ - {% if card['topics'] %} - {% for topic in card['topics'] %} -
- {{ topic['content'] }} -
- {% endfor %} - {% endif %}
- + {% if card['topics'] %} +
+ {% for topic in card['topics'] %} + + {{ topic['content'] }} + + {% endfor %} +
+ {% endif %} -
{{ card['content'] }}
+
{{ card['content'] }}
-
- Edit -
- - -
-
- -
-
+
{% endfor %}