From 1b763e17ecbe46a3cee806a7177b0bd60e15bf44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sat, 9 Aug 2025 17:21:33 +0200 Subject: refactor(html): create layout --- src/layout/Base.astro | 16 ++++++++++++++++ src/pages/index.astro | 41 +++++++++++++++++------------------------ src/scss/style.scss | 6 +++++- 3 files changed, 38 insertions(+), 25 deletions(-) create mode 100644 src/layout/Base.astro diff --git a/src/layout/Base.astro b/src/layout/Base.astro new file mode 100644 index 0000000..a67fc9f --- /dev/null +++ b/src/layout/Base.astro @@ -0,0 +1,16 @@ +--- +const { title = "Arnaud Hergès" } = Astro.props; +--- + + + + + + + + {title} + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index 39e338f..d648c4b 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,31 +2,24 @@ import "../scss/style.scss"; import MosaicBackground from "../component/MosaicBackground.astro"; import VideoAuto from "../component/VideoAuto.astro"; +import Base from "../layout/Base.astro"; --- - - - - - - - Arnaud Hergès - - -
-

Arnaud Hergès

-
-

batteur

-

-

-

compositeur

-

-

-

producteur

-

-

-

références

-

-

-

contact

-
-
+ +
+

Arnaud Hergès

+
+

batteur

+

-

+

compositeur

+

-

+

producteur

+

-

+

références

+

-

+

contact

+
+
@@ -66,7 +59,7 @@ import VideoAuto from "../component/VideoAuto.astro";
- +