From 8bb70aca2fac63b10107da36205e044797124291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sat, 30 May 2026 19:01:55 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20images=20locales=20avec=20composant=20I?= =?UTF-8?q?mage=20Astro=20(WebP=20auto-optimis=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/About.astro | 9 ++++-- src/components/Food.astro | 11 +++++-- src/components/Gallery.astro | 57 ++++++++++++++++++++---------------- src/components/Hero.astro | 14 ++++++--- 4 files changed, 56 insertions(+), 35 deletions(-) diff --git a/src/components/About.astro b/src/components/About.astro index 6f4d1be..11a8e3d 100644 --- a/src/components/About.astro +++ b/src/components/About.astro @@ -1,3 +1,8 @@ +--- +import { Image } from 'astro:assets'; +import gallery1 from '../assets/images/gallery_1.jpg'; +--- +
@@ -35,8 +40,8 @@
- Intérieur du gîte diff --git a/src/components/Food.astro b/src/components/Food.astro index c4cdad2..6099ca8 100644 --- a/src/components/Food.astro +++ b/src/components/Food.astro @@ -1,12 +1,17 @@ +--- +import { Image } from 'astro:assets'; +import facade from '../assets/images/facade.jpg'; +--- +
- Repas fait maison
diff --git a/src/components/Gallery.astro b/src/components/Gallery.astro index 7bbca4b..ce2683d 100644 --- a/src/components/Gallery.astro +++ b/src/components/Gallery.astro @@ -1,3 +1,24 @@ +--- +import { Image } from 'astro:assets'; +import g1 from '../assets/images/gallery_1.jpg'; +import g2 from '../assets/images/gallery_2.jpg'; +import g3 from '../assets/images/gallery_3.jpg'; +import g4 from '../assets/images/gallery_4.jpg'; +import g5 from '../assets/images/gallery_5.jpg'; +import g6 from '../assets/images/gallery_6.jpg'; +import g7 from '../assets/images/gallery_7.jpg'; + +const photos = [ + { src: g1, alt: 'Le gîte' }, + { src: g2, alt: 'Chambre' }, + { src: g3, alt: 'Cuisine' }, + { src: g4, alt: 'Salon' }, + { src: g5, alt: 'Extérieur' }, + { src: g6, alt: 'Rivière' }, + { src: g7, alt: 'Vue panoramique' }, +]; +--- +
-
+
\ No newline at end of file diff --git a/src/components/Hero.astro b/src/components/Hero.astro index aaed03f..24e2cd4 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -1,14 +1,20 @@ +--- +import { Image } from 'astro:assets'; +import facade from '../assets/images/facade.jpg'; +--- +
- Vallée de l'Allier
- docker inspect moulin-web-1 | grep -A5 "Networks" +