From cfa57992909bfe2f4340ea05667ef34c5a17494a Mon Sep 17 00:00:00 2001 From: JoshCreany Date: Sun, 8 Oct 2023 12:49:31 -0600 Subject: Cleaned up search area and started putting tasks into cards --- app.py | 2 +- templates/index.html | 20 +++++++++----------- templates/tasks.html | 29 +++++++++++++++++++---------- 3 files changed, 29 insertions(+), 22 deletions(-) diff --git a/app.py b/app.py index 7f77c4a..66257fb 100644 --- a/app.py +++ b/app.py @@ -85,7 +85,7 @@ def search(): print(my_cars, "MY CARS") except: print("Uh oh! Claude didn't return any results!") - return render_template("tasks.html", to_do=tasks) + return render_template("tasks.html", search_query=request.form["search"], to_do=tasks) @app.route("/progress") def progress(): diff --git a/templates/index.html b/templates/index.html index 34fde55..46fda41 100644 --- a/templates/index.html +++ b/templates/index.html @@ -208,18 +208,16 @@
-
- -
- - -
- ⌘K + +
+ + +
+ +
-
- - +
@@ -236,7 +234,7 @@ -
+
Notifications
diff --git a/templates/tasks.html b/templates/tasks.html index 2432aad..1a2e633 100644 --- a/templates/tasks.html +++ b/templates/tasks.html @@ -1,11 +1,20 @@ -{% for task in to_do %} -
-
- -
-
- -

{{task}}

-
+
+
+
+ "{{search_query}}" Tasks +
+ {% for task in to_do %} +
+
+ +
+
+ +

{{task}}

+
+
+ {% endfor %} +
+
-{% endfor %} \ No newline at end of file +
\ No newline at end of file -- cgit v1.2.3