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 9c019f7..3062bf4 100644 Binary files a/library.db and b/library.db differ diff --git a/static/style_default.css b/static/style_default.css index d982553..e9c7245 100644 --- a/static/style_default.css +++ b/static/style_default.css @@ -1,5 +1,5 @@ body{ - + font-family: sans-serif; } /* .formPanel{ @@ -14,8 +14,53 @@ body{ .all-cards{ display: flex; flex-flow: row; + flex-wrap: wrap; + width: 100vw; + } .card{ + flex-basis: 400px; + height: 400px; border: 1px solid rgb(147, 93, 255); padding: 4px; +} + +.card-header{ + display: flex; + justify-content: space-between; + margin-bottom: 16px; +} + +.card-header h6{ + margin: 0; + font-size: 1.8ch; +} + +.card .topics { + display: inline-block; + margin-bottom: 16px; + +} +.card .topics > * { + 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() %}