From 1d6b45bebea66391a2a535a3bb328a5732aaa75d Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 5 Nov 2022 21:25:31 +0100 Subject: Add existing work --- data/.gitignore | 1 + data/static/add.html | 33 ++++++++++++++++++++++++ data/static/libweb.css | 1 + data/templates/index.html | 31 ++++++++++++++++++++++ data/templates/recipe.html | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 data/.gitignore create mode 100644 data/static/add.html create mode 120000 data/static/libweb.css create mode 100644 data/templates/index.html create mode 100644 data/templates/recipe.html (limited to 'data') diff --git a/data/.gitignore b/data/.gitignore new file mode 100644 index 0000000..fa780e2 --- /dev/null +++ b/data/.gitignore @@ -0,0 +1 @@ +storage diff --git a/data/static/add.html b/data/static/add.html new file mode 100644 index 0000000..ed02811 --- /dev/null +++ b/data/static/add.html @@ -0,0 +1,33 @@ + + + + + + + Recipes + + + + + + + + + +
+ +

Add a recipe

+ +
+
+
+
+
+ +
+ +
+ + + + diff --git a/data/static/libweb.css b/data/static/libweb.css new file mode 120000 index 0000000..efe201e --- /dev/null +++ b/data/static/libweb.css @@ -0,0 +1 @@ +../../libweb/libweb.css \ No newline at end of file diff --git a/data/templates/index.html b/data/templates/index.html new file mode 100644 index 0000000..f216ed4 --- /dev/null +++ b/data/templates/index.html @@ -0,0 +1,31 @@ + + + + + + + Recipes + + + + + + + + + +
+

Recipes

+ +

Here are the available recipes 😋🍳🍔🍕🥘

+ {{range .}} + +
+
{{.Title}}
+
+
{{end}} +
+ + + + diff --git a/data/templates/recipe.html b/data/templates/recipe.html new file mode 100644 index 0000000..fcfdf67 --- /dev/null +++ b/data/templates/recipe.html @@ -0,0 +1,64 @@ + + + + + + + Recipes + + + + + + + + + +
+

{{.Title}}

+ Recipe image{{if ne .UpstreamUrl ""}} +

Link to recipe

{{end}} +

Recipe description

+ + + + +
+ {{.RenderedDescriptionMarkdown}} +
+
+ + + + + + -- cgit v1.2.3-70-g09d2