From c18bc4f6fd0d0193dfe698535329127fdbdea906 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Feb 2026 11:34:42 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20ajouter=20la=20photo=20de=20Cyprien=20d?= =?UTF-8?q?ans=20l'admin=20et=20la=20page=20ma=C3=A7on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - lib/site-images.ts : nouvelle clé macon_photo_cyprien (url vide par défaut, l'admin upload la vraie photo) - app/macon/page.tsx : remplace le placeholder SVG par un conditionnel — affiche l'image quand la clé est renseignée, conserve le placeholder texte "Photo de Cyprien (sur le chantier)" tant qu'aucune photo n'est uploadée https://claude.ai/code/session_01PzA98VhLMmsHpzs7gnLHGs --- app/macon/page.tsx | 27 ++++++++++++++++++--------- lib/site-images.ts | 4 ++++ 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/app/macon/page.tsx b/app/macon/page.tsx index fc1626d..5afa8da 100644 --- a/app/macon/page.tsx +++ b/app/macon/page.tsx @@ -382,17 +382,26 @@ export default async function MaconPage() {
-
-
-
- - - + {images.macon_photo_cyprien ? ( + // eslint-disable-next-line @next/next/no-img-element + Cyprien, artisan maçon + ) : ( +
+
+
+ + + +
+

Photo de Cyprien

+

(sur le chantier)

-

Photo de Cyprien

-

(sur le chantier)

-
+ )}
Artisan depuis 10 ans diff --git a/lib/site-images.ts b/lib/site-images.ts index c0a6461..b6d9496 100644 --- a/lib/site-images.ts +++ b/lib/site-images.ts @@ -44,6 +44,10 @@ export const DEFAULT_IMAGES: Record = { }, // ── Démo Maçon ───────────────────────────────────────────────────────────── + macon_photo_cyprien: { + url: "", + label: "Maçon — Photo de Cyprien (sur le chantier)", + }, macon_hero: { url: "https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1920&q=80", label: "Maçon — Photo fond Hero",