From 1e2ad3a8f8cd2c12786b92210616325a33d1b209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Mon, 27 Oct 2025 17:32:41 +0100 Subject: feat(home): better display of sections --- backend/templates/home.html | 14 ++++++++------ frontend/scss/home.scss | 6 ++++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/backend/templates/home.html b/backend/templates/home.html index d5dbb28..d574525 100644 --- a/backend/templates/home.html +++ b/backend/templates/home.html @@ -4,12 +4,14 @@

{{ .Name }}

{{ .PageDescription }}

- {{ range .Sections }} -
-

{{ .Name }}

-

{{ .Description }}

- {{ template "section_display" . }} +
+ {{ range .Sections }} +
+

{{ .Name }}

+

{{ .Description }}

+ {{ template "section_display" . }} +
+ {{ end }}
- {{ end }} {{end}} diff --git a/frontend/scss/home.scss b/frontend/scss/home.scss index 6fa4192..075896e 100644 --- a/frontend/scss/home.scss +++ b/frontend/scss/home.scss @@ -2,6 +2,12 @@ margin: var(--margin-header) 0; } +.sections { + display: flex; + flex-direction: column; + gap: calc(1.5 * var(--margin-header)); +} + article article { margin-bottom: var(--margin-header); &:last-child { -- cgit v1.2.3