From d2438b02b6398636643085aa5f14d2ede1b2946a Mon Sep 17 00:00:00 2001 From: Walidoux Date: Mon, 18 Apr 2022 18:17:43 +0000 Subject: [PATCH] fix: improve styles code --- styles/base/_helpers.scss | 4 ++-- styles/pages/home.module.scss | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/styles/base/_helpers.scss b/styles/base/_helpers.scss index 0fd0a89..c738861 100644 --- a/styles/base/_helpers.scss +++ b/styles/base/_helpers.scss @@ -1,13 +1,13 @@ @import 'variables'; -%content { +%no-content { position: absolute; content: ''; } %container { max-width: 1280px; - margin: 0 auto; + margin-inline: auto; padding: 20px; } diff --git a/styles/pages/home.module.scss b/styles/pages/home.module.scss index 86f62ad..1535050 100644 --- a/styles/pages/home.module.scss +++ b/styles/pages/home.module.scss @@ -6,7 +6,8 @@ min-height: 100vh; max-width: 100vw; - background: hsla(0deg 0% 0% / 50%); + background: url('/images/Background.jpg') no-repeat; + background-size: cover; .title { @extend %typo-title;