From 19b65ab51e5b08ffdb51f5146610fe157713b5a0 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 18:10:25 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 3e95616..aac4b09 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -46,8 +46,8 @@ export default function LandingPage() { ]} slides={[ { imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-working-as-plumber_23-2150746316.jpg", imageAlt: "Professional plumber at work" }, - { imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-man-posing-studio_176474-38422.jpg?_wi=1", imageAlt: "Emergency plumbing service 24/7" }, - { imageSrc: "http://img.b2bpic.net/free-photo/close-up-worker-checking-freon-tank_482257-78533.jpg?_wi=1", imageAlt: "Heating system installation service" } + { imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-man-posing-studio_176474-38422.jpg", imageAlt: "Emergency plumbing service 24/7" }, + { imageSrc: "http://img.b2bpic.net/free-photo/close-up-worker-checking-freon-tank_482257-78533.jpg", imageAlt: "Heating system installation service" } ]} autoplayDelay={5000} showDimOverlay={true} @@ -69,6 +69,7 @@ export default function LandingPage() { imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ar7Ss4Ry3yL10iQwYhrUgTO6B9/uploaded-1773338903806-mvj92w77.png" imageAlt="Équipe Plomberie Chauffage ML" imagePosition="right" + mediaAnimation="none" buttons={[ { text: "Demander un devis", href: "contact" } ]} @@ -88,11 +89,11 @@ export default function LandingPage() { }, { id: 2, - tag: "Chauffage", title: "Installation chauffage", subtitle: "Confort thermique assuré", description: "Installation de systèmes de chauffage modernes et économes en énergie. Maintenance et dépannage disponibles.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-worker-checking-freon-tank_482257-78533.jpg?_wi=2", imageAlt: "Heating installation" + tag: "Chauffage", title: "Installation chauffage", subtitle: "Confort thermique assuré", description: "Installation de systèmes de chauffage modernes et économes en énergie. Maintenance et dépannage disponibles.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-worker-checking-freon-tank_482257-78533.jpg", imageAlt: "Heating installation" }, { id: 3, - tag: "Urgence", title: "Service d'urgence", subtitle: "Disponible 24h/24, 7j/7", description: "Fuites, ruptures de canalisation, problèmes de chauffage? Nous intervenons rapidement pour résoudre vos urgences.", imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-man-posing-studio_176474-38422.jpg?_wi=2", imageAlt: "Emergency plumbing service" + tag: "Urgence", title: "Service d'urgence", subtitle: "Disponible 24h/24, 7j/7", description: "Fuites, ruptures de canalisation, problèmes de chauffage? Nous intervenons rapidement pour résoudre vos urgences.", imageSrc: "http://img.b2bpic.net/free-photo/expressive-young-man-posing-studio_176474-38422.jpg", imageAlt: "Emergency plumbing service" } ]} /> @@ -110,6 +111,7 @@ export default function LandingPage() { { title: "Dimanche", description: "Fermé (urgence disponible)" }, { title: "Service d'urgence", description: "24h/24, 7j/7 pour dépannages" } ]} + mediaAnimation="none" buttons={[ { text: "Appeler maintenant", href: "tel:0611646402" } ]} -- 2.49.1 From 4fe6f47fc802c0675eddfeaf88d37d11cc1f87c9 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 18:10:25 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 65 +++++++++---------- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..b2ad8ba 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,44 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + fontSize?: number; + fontWeight?: string | number; + fill?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 32, + fontWeight = 'bold', + fill = 'currentColor', +}) => { + // Estimate text width based on font size and character count + const estimatedWidth = text.length * fontSize * 0.6; + const estimatedHeight = fontSize * 1.2; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1