From 1f8b5c2bbe20c4c6b7b334b00ae5e6622dcd51f7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 11 Jan 2023 20:02:10 +0100 Subject: Switch to simple.css This makes it easier to maintain and it looks better. --- data/static/add.html | 19 +++++++++++-------- data/static/libweb.css | 1 - data/static/style.css | 1 + data/templates/index.html | 25 ++++++++++++++++--------- data/templates/recipe.html | 25 ++++++++++++++++++------- 5 files changed, 46 insertions(+), 25 deletions(-) delete mode 120000 data/static/libweb.css create mode 120000 data/static/style.css (limited to 'data') diff --git a/data/static/add.html b/data/static/add.html index ed02811..15d9f0e 100644 --- a/data/static/add.html +++ b/data/static/add.html @@ -8,24 +8,27 @@ - + -
- +

Add a recipe

+
+
-
-
-
-
- +
+
+
+
diff --git a/data/static/libweb.css b/data/static/libweb.css deleted file mode 120000 index efe201e..0000000 --- a/data/static/libweb.css +++ /dev/null @@ -1 +0,0 @@ -../../libweb/libweb.css \ No newline at end of file diff --git a/data/static/style.css b/data/static/style.css new file mode 120000 index 0000000..c954338 --- /dev/null +++ b/data/static/style.css @@ -0,0 +1 @@ +../../simple.css/simple.min.css \ No newline at end of file diff --git a/data/templates/index.html b/data/templates/index.html index f216ed4..9115d31 100644 --- a/data/templates/index.html +++ b/data/templates/index.html @@ -8,22 +8,29 @@ - + -
+
+

Recipes

- +
+ +

Here are the available recipes 😋🍳🍔🍕🥘

- {{range .}} - -
-
{{.Title}}
-
-
{{end}} + + +
diff --git a/data/templates/recipe.html b/data/templates/recipe.html index fcfdf67..536cac9 100644 --- a/data/templates/recipe.html +++ b/data/templates/recipe.html @@ -8,24 +8,35 @@ - + -
+
{{if ne .UpstreamUrl ""}} + + {{end}}

{{.Title}}

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

Link to recipe

{{end}} +
+ +
+ Recipe image

Recipe description

- - - + + +
{{.RenderedDescriptionMarkdown}}
+ +