From 5d703baed11f8f1b44df5ed7e03142cbdce839c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 10 Aug 2025 13:27:49 +0200 Subject: refactor(background): use event listener instead of onload --- src/component/MosaicBackground.astro | 16 +++++++++++----- src/pages/index.astro | 37 ++++++++++++++++++------------------ src/scss/style.scss | 4 ++-- 3 files changed, 31 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/component/MosaicBackground.astro b/src/component/MosaicBackground.astro index c8e01f5..8c38bcf 100644 --- a/src/component/MosaicBackground.astro +++ b/src/component/MosaicBackground.astro @@ -7,7 +7,7 @@ const { height = "400" } = Astro.props; diff --git a/src/pages/index.astro b/src/pages/index.astro index 3d5da47..7d5ef28 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -163,23 +163,22 @@ import Base from "../layout/Base.astro"; - - - + + diff --git a/src/scss/style.scss b/src/scss/style.scss index 17dd30c..a3c4639 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -7,7 +7,7 @@ body { font-size: 22px; background: $background; color: $text; - font-family: "Raveo", Inter, Roboto, sans-serif; + font-family: "Raveo", Inter, Roboto, Arial, "Liberation Sans", sans-serif; } h1 { @@ -159,7 +159,7 @@ section[data-scroll] .content { inset: 0; display: flex; justify-content: center; - height: 100%; + min-height: 100%; } & .content { padding: 4rem; -- cgit v1.2.3