From 64aa9b93e206756bc8dec861fab3bafe8c62da6c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 16 Jan 2019 21:25:25 +0000 Subject: [PATCH] Add colours and stuff --- layouts/index.html | 28 +++++++++++++++++++--------- static/src/index.scss | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+), 9 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 33e109b..f4d2b98 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -8,17 +8,27 @@ {{ partial "style.html" "css/materialize.css" }} {{ partial "style.html" "css/font-awesome.css" }} + {{ partial "style.html" "index.scss" }} - -
-
- {{ range sort .Pages "Title" }} -
- {{ partial "card.html" . }} -
- {{ end }} + +
+
+
+ {{ range .Pages.ByTitle }} +
+ {{ partial "card.html" . }} +
+ {{ end }} +
-
+ + {{ partial "script.html" "js/materialize.js" }} diff --git a/static/src/index.scss b/static/src/index.scss index 52784f7..36aaaad 100644 --- a/static/src/index.scss +++ b/static/src/index.scss @@ -1,5 +1,16 @@ $primary: #E85537; +body { + display: flex; + min-height: 100vh; + flex-direction: column; + } + + main { + flex: 1 0 auto; + } + + .card { text-align: center; color: black; @@ -12,3 +23,11 @@ $primary: #E85537; color: $primary; } } + +.cards-list { + margin-top: 3rem; +} + +footer { + padding-top: 0 !important; +}