diff --git a/assets/images/cover_big.jpg b/assets/images/cover_big.jpg new file mode 100644 index 0000000..0e09753 Binary files /dev/null and b/assets/images/cover_big.jpg differ diff --git a/assets/sass/landing.scss b/assets/sass/landing.scss index b723c38..1ea141f 100644 --- a/assets/sass/landing.scss +++ b/assets/sass/landing.scss @@ -2,11 +2,27 @@ width: 100%; } -.landing { +.landing-border { + border: 2px solid rgba(0, 0, 0, 0.4); + border-radius: 4px; +} + +.landing-two-sections { + display: grid; + grid-template-columns: 1fr 1fr; + @extend .landing-border; +} + +.landing-cover { + img { + object-fit: cover; + object-position: center; + width: 100%; + height: 100%; + } } .landing-brand { - border: 1px solid rgba(0, 0, 0, 0.4); padding: 1rem; text-align: center; display: flex; @@ -27,9 +43,6 @@ } -.brand__role2 { -} - .brand__logo { svg { max-width: 25rem; @@ -37,3 +50,21 @@ } } +@media (max-width: $md-breakpoint) { + .landing-two-sections { + display: block; + } + .landing-cover { + img { + height: 13rem; + } + } + .landing-brand { + .brand__logo svg { + max-width: 15rem; + } + .brand__name { + font-size: 2.5rem; + } + } +} diff --git a/layouts/index.html b/layouts/index.html index e01c22b..55a8fa6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,15 @@ {{ define "main" }}
-
+
+
+ {{ $featuredImage := (resources.Get (printf "%s" ("images/cover_big.jpg" | safeURL))) }} + {{ $featuredImage := $featuredImage.Fill "800x500 Center" }} + Laurent en plein travail de réparation sur un vélo +
Réparation & Entretien - Toutes marques
-
- {{ .Content }} -
+
+ {{ .Content }} +
+
{{ end }}