From 613ee9e54930e5d14a88c6a5ec13ea42aafe1660 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Thu, 7 Mar 2024 23:00:26 +0100 Subject: [PATCH] fix(landing): minor style change --- assets/sass/carousel.scss | 2 +- assets/sass/landing.scss | 12 ++++++++++++ assets/sass/news.scss | 2 +- layouts/index.html | 21 +++++++++++++++------ 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/assets/sass/carousel.scss b/assets/sass/carousel.scss index a8c3e90..5dbe7f8 100644 --- a/assets/sass/carousel.scss +++ b/assets/sass/carousel.scss @@ -301,7 +301,7 @@ $height: 30rem; .layout-grid-image { display: grid; grid-column-gap: 2rem; - + min-height: 25rem; .image-container { margin-top: 1.5rem; diff --git a/assets/sass/landing.scss b/assets/sass/landing.scss index b5df229..5c95fed 100644 --- a/assets/sass/landing.scss +++ b/assets/sass/landing.scss @@ -344,6 +344,18 @@ } } +.organization-content { + display: grid; + grid-template-columns: 1fr 1fr; + column-gap: 2rem; + padding-top: 2rem; + padding-bottom: 2rem; + + img { + border-radius: 3px; + } +} + @media (max-width: $md-breakpoint) { .cover__back { background-position-y: 0; diff --git a/assets/sass/news.scss b/assets/sass/news.scss index 6c2155b..ea6d181 100644 --- a/assets/sass/news.scss +++ b/assets/sass/news.scss @@ -4,7 +4,7 @@ } .news-item { - border-bottom: 1px solid $background; + border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 1rem 0rem; margin-bottom: 1rem; diff --git a/layouts/index.html b/layouts/index.html index 132c7f6..493d79c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -295,7 +295,7 @@
L'Histoire en détails @@ -437,11 +437,12 @@
{{ end }}{{ end }} - -
+ +
-
- {{ range $index, $element := $news }}{{ if (and (gt $index 0) (lt $index 3)) }} +
+ {{ range $index, $element := $news }} + {{ if (and (gt $index 0) (lt $index 3)) }} {{ $featuredImage := (resources.Get (printf "%s" ("cover/cover.jpg" | safeURL))) }} {{ with $element.Params.featured_image }} {{ $featuredImage = $element.Resources.GetMatch .src }} @@ -476,7 +477,15 @@
- {{ end }}{{ end }} + {{ end }} + {{ end }} + +
+ + Voir toutes les news +