Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
2026-03-12 22:26:08 +00:00
2 changed files with 35 additions and 47 deletions

View File

@@ -17,7 +17,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumSmall"
sizing="medium"
background="floatingGradient"
background="circleGradient"
cardStyle="subtle-shadow"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="solid"
@@ -42,7 +42,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="Électricien La Roche-sur-Yon"
description="Installation • Dépannage • Rénovation. Artisan électricien local avec 15+ ans d'expérience. Disponible rapidement. Travail soigné. Tarifs compétitifs."
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
buttons={[
{ text: "📞 Appeler maintenant", href: "tel:+33XXXXXXXXX" },
{ text: "📩 Demander un devis", href: "#contact" }
@@ -60,16 +60,16 @@ export default function LandingPage() {
<FeatureCardThree
features={[
{
id: "01", title: "Installation Électrique", description: "Maisons neuves, extensions, circuits électriques. Travail aux normes en vigueur.", imageSrc: "http://img.b2bpic.net/free-photo/young-builder-orange-work-clothes-yellow-hardhat-using-electric-drill-making-hole-wall_574295-1572.jpg?_wi=1", imageAlt: "Installation électrique professionnelle"
id: "01", title: "Installation Électrique", description: "Maisons neuves, extensions, circuits électriques. Travail aux normes en vigueur.", imageSrc: "http://img.b2bpic.net/free-photo/young-builder-orange-work-clothes-yellow-hardhat-using-electric-drill-making-hole-wall_574295-1572.jpg", imageAlt: "Installation électrique professionnelle"
},
{
id: "02", title: "Rénovation Électrique", description: "Mise aux normes, remplacement installations anciennes, tableaux électriques sécurisés.", imageSrc: "http://img.b2bpic.net/free-photo/female-electrician-checks-control-cabinet-blue-light-electrical-inspection_169016-71036.jpg?_wi=1", imageAlt: "Rénovation électrique résidentielle"
id: "02", title: "Rénovation Électrique", description: "Mise aux normes, remplacement installations anciennes, tableaux électriques sécurisés.", imageSrc: "http://img.b2bpic.net/free-photo/female-electrician-checks-control-cabinet-blue-light-electrical-inspection_169016-71036.jpg", imageAlt: "Rénovation électrique résidentielle"
},
{
id: "03", title: "Dépannage Rapide", description: "Pannes électriques, disjonctions, prises défectueuses. Intervention d'urgence disponible.", imageSrc: "http://img.b2bpic.net/free-photo/woman-electrician-repairs-breaker-inside-switchboard-cabinet-safe-installation_169016-70967.jpg?_wi=1", imageAlt: "Dépannage électrique professionnel"
id: "03", title: "Dépannage Rapide", description: "Pannes électriques, disjonctions, prises défectueuses. Intervention d'urgence disponible.", imageSrc: "http://img.b2bpic.net/free-photo/woman-electrician-repairs-breaker-inside-switchboard-cabinet-safe-installation_169016-70967.jpg", imageAlt: "Dépannage électrique professionnel"
},
{
id: "04", title: "Tableaux Électriques", description: "Installation, remplacement, sécurisation des tableaux. Conformité garantie.", imageSrc: "http://img.b2bpic.net/free-photo/young-builder-orange-work-clothes-yellow-hardhat-using-electric-drill-making-hole-wall_574295-1572.jpg?_wi=2", imageAlt: "Tableau électrique professionnel"
id: "04", title: "Tableaux Électriques", description: "Installation, remplacement, sécurisation des tableaux. Conformité garantie.", imageSrc: "http://img.b2bpic.net/free-photo/young-builder-orange-work-clothes-yellow-hardhat-using-electric-drill-making-hole-wall_574295-1572.jpg", imageAlt: "Tableau électrique professionnel"
}
]}
title="Nos Services"
@@ -127,13 +127,13 @@ export default function LandingPage() {
<FeatureCardThree
features={[
{
id: "01", title: "La Roche-sur-Yon", description: "Intervention rapide dans le centre-ville et tous les quartiers", imageSrc: "http://img.b2bpic.net/free-photo/young-builder-orange-work-clothes-yellow-hardhat-using-electric-drill-making-hole-wall_574295-1572.jpg?_wi=3", imageAlt: "Service La Roche-sur-Yon"
id: "01", title: "La Roche-sur-Yon", description: "Intervention rapide dans le centre-ville et tous les quartiers", imageSrc: "http://img.b2bpic.net/free-photo/young-builder-orange-work-clothes-yellow-hardhat-using-electric-drill-making-hole-wall_574295-1572.jpg", imageAlt: "Service La Roche-sur-Yon"
},
{
id: "02", title: "Vendée", description: "Zone d'intervention : communes alentours et département", imageSrc: "http://img.b2bpic.net/free-photo/female-electrician-checks-control-cabinet-blue-light-electrical-inspection_169016-71036.jpg?_wi=2", imageAlt: "Service Vendée"
id: "02", title: "Vendée", description: "Zone d'intervention : communes alentours et département", imageSrc: "http://img.b2bpic.net/free-photo/female-electrician-checks-control-cabinet-blue-light-electrical-inspection_169016-71036.jpg", imageAlt: "Service Vendée"
},
{
id: "03", title: "Disponibilité", description: "Appel en permanence. Dépannages d'urgence possibles", imageSrc: "http://img.b2bpic.net/free-photo/woman-electrician-repairs-breaker-inside-switchboard-cabinet-safe-installation_169016-70967.jpg?_wi=2", imageAlt: "Disponibilité"
id: "03", title: "Disponibilité", description: "Appel en permanence. Dépannages d'urgence possibles", imageSrc: "http://img.b2bpic.net/free-photo/woman-electrician-repairs-breaker-inside-switchboard-cabinet-safe-installation_169016-70967.jpg", imageAlt: "Disponibilité"
}
]}
title="Zone d'Intervention"
@@ -151,7 +151,7 @@ export default function LandingPage() {
tag="Contact"
title="📞 Contactez votre électricien"
description="Besoin d'un devis ? D'un dépannage urgent ? Appelez-moi ou remplissez ce formulaire pour une demande rapide."
background={{ variant: "floatingGradient" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
inputPlaceholder="Votre email"
buttonText="Envoyer"

View File

@@ -1,51 +1,39 @@
"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;
fontSize?: number;
fontWeight?: string | number;
fill?: string;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 48,
fontWeight = 'bold',
fill = 'currentColor',
className = '',
}) => {
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<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="middle"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;