From 666e177701afaeb46eb6dc6ca7e75e7fa80a7cde Mon Sep 17 00:00:00 2001 From: Ahurac Date: Thu, 16 May 2024 13:31:28 +0200 Subject: [PATCH] src : modularisation avec un layout --- src/layouts/Page.astro | 62 +++++++++++++++++++++++ src/pages/index.astro | 110 +++++++++++------------------------------ 2 files changed, 92 insertions(+), 80 deletions(-) create mode 100644 src/layouts/Page.astro diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro new file mode 100644 index 0000000..47e4b24 --- /dev/null +++ b/src/layouts/Page.astro @@ -0,0 +1,62 @@ +--- +import Header from '../components/Header.astro'; + +const { title } = Astro.props; +--- + + + + + + + + { title } + + +
+
+ + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index 703cf20..40d1a42 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,91 +1,41 @@ --- -import Header from '../components/Header.astro'; +import Page from '../layouts/Page.astro'; import Card from '../components/Card.astro'; + +const title = 'Home'; --- - - - - - - - Ahurac - - -
-
-

Home of a FOSS extremist and music nerd.

-

My services

-
- A straight-to-the-point source code forge - Encrypt and send files privately - The messenger that doesn't spy on you - A (Rust) based password manager -
-
- - + +

Home of a FOSS extremist and music nerd.

+ +

My services

+ +
+A straight-to-the-point source code forge +Encrypt and send files privately +The messenger that doesn't spy on you +A (Rust) based password manager +