From db3547adc3d705b8863b262fa45452f852f49ae0 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 10 Jun 2025 13:37:17 +0200 Subject: [PATCH] Cleaned up components --- src/components/BgGrid.astro | 24 +++ src/components/{home => }/BgParticles.astro | 0 src/components/home/Hero.astro | 36 +---- src/components/home/HeroVerticalCards.astro | 142 ----------------- src/components/home/Tooling.astro | 165 -------------------- src/layouts/Layout.astro | 18 ++- 6 files changed, 40 insertions(+), 345 deletions(-) create mode 100644 src/components/BgGrid.astro rename src/components/{home => }/BgParticles.astro (100%) delete mode 100644 src/components/home/HeroVerticalCards.astro delete mode 100644 src/components/home/Tooling.astro diff --git a/src/components/BgGrid.astro b/src/components/BgGrid.astro new file mode 100644 index 0000000..65f51c6 --- /dev/null +++ b/src/components/BgGrid.astro @@ -0,0 +1,24 @@ +
+ + + + + + + + + +
+ + diff --git a/src/components/home/BgParticles.astro b/src/components/BgParticles.astro similarity index 100% rename from src/components/home/BgParticles.astro rename to src/components/BgParticles.astro diff --git a/src/components/home/Hero.astro b/src/components/home/Hero.astro index 58cdfcd..4194352 100644 --- a/src/components/home/Hero.astro +++ b/src/components/home/Hero.astro @@ -1,11 +1,10 @@ --- import Button from "../Button.astro"; import Heading from "../Heading.astro"; -import BgParticles from "./BgParticles.astro"; // import HeroVerticalCards from "./HeroVerticalCards.astro"; --- -
+
@@ -51,37 +50,4 @@ import BgParticles from "./BgParticles.astro";

@2025 · Website is currently a WIP ; some things may change !

- -
- - - - - - - - - -
- -
- - diff --git a/src/components/home/HeroVerticalCards.astro b/src/components/home/HeroVerticalCards.astro deleted file mode 100644 index 2ae0f6d..0000000 --- a/src/components/home/HeroVerticalCards.astro +++ /dev/null @@ -1,142 +0,0 @@ ---- -import Card from "../Card.astro"; ---- - -
- {[...Array(3)].map((_key, i) => ( -
-
- {[...Array(2)].map(() => ( -
- - - - - - -
-
- - - - - -
-
- - - - - -
-
- - - - - - - - - - -
-
- - - - - -
-
- - - - - -
-
- - - - - - - -
-
- - - - - - - - - -
- ))} -
-
- ))} -
- - - - \ No newline at end of file diff --git a/src/components/home/Tooling.astro b/src/components/home/Tooling.astro deleted file mode 100644 index a6ec51a..0000000 --- a/src/components/home/Tooling.astro +++ /dev/null @@ -1,165 +0,0 @@ ---- -import Card from "../Card.astro"; -import Heading from "../Heading.astro"; ---- - -
- - What I use - - -
-
-
-
- - - - - - - - - Astro - - -
-
- - - - - - - - Vue - - -
-
- - - - - - - - Nuxt - - -
-
- - - - - - - - - - - - - React - - -
-
- - - - - - - - Tailwind - - -
-
- - - - - - - - Scss - - -
-
- - - - - - - - - - Typescript - - -
-
- - - - - - - - - - - - Wordpress - - -
-
- - - - - - - - - - Obsidian - - -
-
-
-
-
- - - - \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 103ed93..20b8297 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,12 +1,16 @@ --- import '../../assets/css/main.css'; +import BgParticles from '../components/BgParticles.astro'; +import BgGrid from '../components/BgGrid.astro'; interface Props { - title?: string; + title?: string description?: string + hasParticles?: boolean + hasGrid?: boolean } -const { title = "Home" } = Astro.props; +const { title = "Home", hasParticles = true, hasGrid = true } = Astro.props; const baseTitle = 'Alexis Pelé' const renderedTitle = `${title} · ${baseTitle}` @@ -106,7 +110,15 @@ const { description = baseTitle } = Astro.props; - + + + {hasParticles && + + } + + {hasGrid && + + }