diff --git a/templates/index.html.tmpl b/templates/index.html.tmpl index bd9f946..35ad5d9 100644 --- a/templates/index.html.tmpl +++ b/templates/index.html.tmpl @@ -8,14 +8,18 @@ -

{{.title}}

+
+
+

{{.title}}

- {{if ne (len .recipes) 0}} - - {{end}} + {{if ne (len .recipes) 0}} + + {{end}} +
+
diff --git a/templates/recipe.html.tmpl b/templates/recipe.html.tmpl index 1ca5be2..b92b90b 100644 --- a/templates/recipe.html.tmpl +++ b/templates/recipe.html.tmpl @@ -8,35 +8,39 @@ -

{{.name}}

+
+
+

{{.name}}

- {{$recipeImage := recipeImage .path}} - {{if ne $recipeImage ""}} - - {{end}} - - {{if ne (len .recipe.Metadata) 0}} - - {{end}} - {{recipeSteps .recipe .path}} - -

{{.ingredientsTitle}}

- - + + {{recipeSteps .recipe .path}} + +

{{.ingredientsTitle}}

+ + +
+
diff --git a/templates/style.css b/templates/style.css index f20ce33..6c1fd47 100644 --- a/templates/style.css +++ b/templates/style.css @@ -1,8 +1,30 @@ body { + font-size: 1.3rem; background-color: lightgrey; font-family: monospace; } +main { + display: flex; + flex-flow: column; + align-items: center; + width: 100%; + height: 100%; +} + +#content { + width: 80%; + display: flex; + flex-flow: column; + align-items: center; + justify-content: center; +} + +img { + max-width: 50%; + max-height: 500px; +} + .ingredient { font-weight: bold; color: green;