Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 18:10:30 +00:00
2 changed files with 35 additions and 40 deletions

View File

@@ -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" }
]}

View File

@@ -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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
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 (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${estimatedWidth} ${estimatedHeight}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
aria-label={text}
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;