From 84b036b926d90b52956350d99b3a070b3dd1d7ac Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 19 Mar 2025 14:53:53 +0000 Subject: first commit --- templates/base.html | 15 ++++++++++++ templates/components/app.html | 48 ++++++++++++++++++++++++++++++++++++++ templates/components/header.html | 21 +++++++++++++++++ templates/pages/about.html | 20 ++++++++++++++++ templates/pages/account.html | 16 +++++++++++++ templates/pages/home.html | 26 +++++++++++++++++++++ templates/pages/landing.html | 15 ++++++++++++ templates/pages/login.html | 13 +++++++++++ templates/pages/signup.html | 18 ++++++++++++++ templates/pages/single-recipe.html | 29 +++++++++++++++++++++++ 10 files changed, 221 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/components/app.html create mode 100644 templates/components/header.html create mode 100644 templates/pages/about.html create mode 100644 templates/pages/account.html create mode 100644 templates/pages/home.html create mode 100644 templates/pages/landing.html create mode 100644 templates/pages/login.html create mode 100644 templates/pages/signup.html create mode 100644 templates/pages/single-recipe.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..64ae319 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,15 @@ + + + + + + index.cooking - {% block title %}{% endblock %} + + + + + {% include "/components/header.html" %} +

{% block heading %}Some heading!{% endblock %}

+ {% block content %}{% endblock %} + + diff --git a/templates/components/app.html b/templates/components/app.html new file mode 100644 index 0000000..6a4c83a --- /dev/null +++ b/templates/components/app.html @@ -0,0 +1,48 @@ + + +
+

Filter by tag

+
+ {% for facet in facets %} + + {% endfor %} +
+
+ + {% if recipes|length > 0 %} + + + {% else %} +

No recipes found

+ {% endif %} +
+
diff --git a/templates/components/header.html b/templates/components/header.html new file mode 100644 index 0000000..e69cedf --- /dev/null +++ b/templates/components/header.html @@ -0,0 +1,21 @@ +
+ +
diff --git a/templates/pages/about.html b/templates/pages/about.html new file mode 100644 index 0000000..d719941 --- /dev/null +++ b/templates/pages/about.html @@ -0,0 +1,20 @@ +{% extends "base.html" %} {% block title %} about {% endblock %} {% block +heading %} +

about

+{% endblock %} {% block content %} +

+ index.cooking is a simple website that allows you to add your favourite + recipes from the internet to your own personal searchable index (hence the + name). +

+

+ Simply add URLs for your recipes and index.cooking will remove all the bloat + and stories about grandmother's blah blah blah....and just give you the info + you need to cook your favourite meals. +

+

+ Right now index.cooking supports extracting markup from Wordpress sites using + Yoast SEO Schema. If you have other websites that you would like us to index, + then reach out here. +

+{% endblock %} diff --git a/templates/pages/account.html b/templates/pages/account.html new file mode 100644 index 0000000..db28632 --- /dev/null +++ b/templates/pages/account.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} {% block title %} account {% endblock %} {% block +heading %} +

Hey {{ session.username }} 👋

+{% endblock %} {% block content %} +

+ Remember that index.cooking does not store any personal information such as + email addresses, so you are responsible for keeping access to your account at + all times, be sure to keep your username and password safe! +

+

+ If you have lost account access and you need the URLs of all the recipes you + previously addedd, then contact me + here. +

+ +{% endblock %} 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 %} +

add new recipe

+
+ + +
+ +

search for recipes 🔎

+ + +{% include "/components/app.html" %} {% endblock %} diff --git a/templates/pages/landing.html b/templates/pages/landing.html new file mode 100644 index 0000000..d6697c8 --- /dev/null +++ b/templates/pages/landing.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} {% block title %} welcome 👋{% endblock %} {% block +heading %}{% endblock %} {% block content %} +
+

index.recipes

+

+ Welcome. Index.recipes is your own personal recipe database that gets rids + of all the noise and bloat of modern recipe sites. +

+

+ You can add URLs for your favourite recipes and your own personal searchable + recipe database will be created. +

+

Cheers 🍻

+
+{% endblock %} diff --git a/templates/pages/login.html b/templates/pages/login.html new file mode 100644 index 0000000..dfee9a0 --- /dev/null +++ b/templates/pages/login.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} {% block title %}login{% endblock %} {% block heading +%} +

login

+{% endblock %} {% block content %} +
+ + + + + +
+

+{% endblock %} diff --git a/templates/pages/signup.html b/templates/pages/signup.html new file mode 100644 index 0000000..c706074 --- /dev/null +++ b/templates/pages/signup.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} {% block title %}signup{% endblock %} {% block heading +%} +

signup*

+{% endblock %} {% block content %} +
+ + + + + +
+

+

+ * index.cooking does not store any personal information about you, + including email. So be sure to keep your login information safe, as it won't + be recoverable. +

+{% endblock %} diff --git a/templates/pages/single-recipe.html b/templates/pages/single-recipe.html new file mode 100644 index 0000000..35c03c0 --- /dev/null +++ b/templates/pages/single-recipe.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} {% block heading %} {{ single_recipe.title }} {% +endblock %} {% block content %} +
+
+ {{ single_recipe.title }} +
Source
+
+

Ingredients

+ +

Instructions

+ +
+ +

+{% endblock %} -- cgit v1.2.3