aboutsummaryrefslogtreecommitdiff
path: root/templates/pages/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pages/home.html')
-rw-r--r--templates/pages/home.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/pages/home.html b/templates/pages/home.html
new file mode 100644
index 0000000..6a5d4cd
--- /dev/null
+++ b/templates/pages/home.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %} {% block title %} home {% endblock %} {% block heading
+%}recipes{% endblock %} {% block content %}
+<h3>add new recipe</h3>
+<form
+ hx-post="/recipes/add"
+ hx-trigger="submit load"
+ hx-target=".app"
+ hx-swap="innerHTML"
+>
+ <input type="text" name="url" class="border-2 border-black" />
+ <button type="submit" class="cursor-pointer">Submit</button>
+</form>
+
+<h3>search for recipes 🔎</h3>
+<input
+ type="text"
+ hx-trigger="input"
+ hx-post="/recipes/search"
+ hx-target=".app"
+ hx-include="#facets"
+ name="q"
+ class="border-2 border-black"
+ id="search"
+/>
+
+{% include "/components/app.html" %} {% endblock %}