From 4c444dc68288eafac500fc3a64d9fa689830cc34 Mon Sep 17 00:00:00 2001 From: ordinarthur <@arthurbarre.js@gmail.com> Date: Sun, 5 Apr 2026 15:11:41 +0200 Subject: [PATCH] add better hero --- .astro/types.d.ts | 1 + src/components/Header.astro | 2 +- src/pages/index.astro | 180 +++++++++++++++++++++--------------- 3 files changed, 107 insertions(+), 76 deletions(-) diff --git a/.astro/types.d.ts b/.astro/types.d.ts index f964fe0..03d7cc4 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -1 +1,2 @@ /// +/// \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index d6dcb09..6858712 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,6 +1,6 @@ --- const currentPath = Astro.url.pathname; -const isHome = currentPath === '/'; +const isHome = false; // hero is now white bg, no dark variant needed const nav = [ { label: 'projets', href: '/creations-evenement' }, { label: 'pérenne', href: '/realisations-perennes' }, diff --git a/src/pages/index.astro b/src/pages/index.astro index c11257b..baf11f2 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,9 +2,7 @@ import BaseLayout from '../layouts/BaseLayout.astro'; import { getMockFeaturedProjects, getMockProjects } from '../lib/mock-data'; -const featured = getMockFeaturedProjects(); const allProjects = getMockProjects(); -// Pick 6 best projects for the index const showcase = [ allProjects.find(p => p.slug.current === 'moet-chandon'), allProjects.find(p => p.slug.current === 'dior-christmas'), @@ -14,30 +12,47 @@ const showcase = [ allProjects.find(p => p.slug.current === 'ami'), ].filter(Boolean); +// 4 images for the hero strip +const stripImages = [ + { src: '/images/events/alula/06.jpg', alt: 'AlUla' }, + { src: '/images/events/ami/04.jpg', alt: 'AMI Paris' }, + { src: '/images/perennes/cisco/03.jpeg', alt: 'Cisco' }, + { src: '/images/events/moet/05.jpg', alt: 'Moët' }, +]; + const allEvents = getMockProjects('event'); const allPerennes = getMockProjects('perenne'); --- - +
-
- Dior Christmas +
+
+

+ Aurélie + Barré +

+
+

directrice artistique
& design d'intérieur

+
+
+
+
+
-
-

- Aurélie - Barré -

-

directrice artistique & design d'intérieur

-
-
- scroll -
+ + +
+ {stripImages.map((img, i) => ( +
+ {img.alt} +
+ ))}
- +
sélection @@ -65,7 +80,7 @@ const allPerennes = getMockProjects('perenne');
- +
@@ -114,12 +129,12 @@ const allPerennes = getMockProjects('perenne');
- +

- Aurélie Barré conçoit des espaces qui racontent. Du siège social au lancement produit, + Du siège social au lancement produit, chaque projet naît d'une écoute attentive et se construit dans le souci du détail.

@@ -182,75 +197,61 @@ const allPerennes = getMockProjects('perenne');