Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 19:25:03 +00:00
2 changed files with 42 additions and 53 deletions

View File

@@ -10,7 +10,7 @@ import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Award, CheckCircle, Droplet, Flame, Pipe, Wind, Wrench, Mail, Building2, Star, Zap, Users, MapPin } from 'lucide-react';
import { Award, CheckCircle, Droplet, Flame, PipeIcon, Wind, Wrench, Mail, Building2, Star, Zap, Users, MapPin } from 'lucide-react';
export default function LandingPage() {
return (
@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="mediumSizeLargeTitles"
background="grid"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="gradient"
secondaryButtonStyle="radial-glow"
@@ -54,7 +54,7 @@ export default function LandingPage() {
{ text: "Demander un devis", href: "#contact" }
]}
buttonAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "glowing-orb" }}
imageSrc="http://img.b2bpic.net/free-photo/man-engaged-household-task_23-2151741241.jpg"
imageAlt="Installation professionnelle de plomberie par BEST CELCIUS"
mediaAnimation="slide-up"
@@ -105,10 +105,10 @@ export default function LandingPage() {
title: "Plomberie", description: "Installation, dépannage et rénovation de réseaux de plomberie pour résidentiels et professionnels.", icon: Droplet,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/technician-checking-heating-system-boiler-room_169016-53608.jpg?_wi=1", imageAlt: "Installation plomberie moderne"
imageSrc: "http://img.b2bpic.net/free-photo/technician-checking-heating-system-boiler-room_169016-53608.jpg", imageAlt: "Installation plomberie moderne"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/technician-checking-heating-system-boiler-room_169016-53608.jpg?_wi=2", imageAlt: "Rénovation salle de bain"
imageSrc: "http://img.b2bpic.net/free-photo/technician-checking-heating-system-boiler-room_169016-53608.jpg", imageAlt: "Rénovation salle de bain"
}
]
},
@@ -116,10 +116,10 @@ export default function LandingPage() {
title: "Chauffage", description: "Installation, entretien et remplacement de systèmes de chauffage performants et économes.", icon: Flame,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881677.jpg?_wi=1", imageAlt: "Système de chauffage professionnel"
imageSrc: "http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881677.jpg", imageAlt: "Système de chauffage professionnel"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881677.jpg?_wi=2", imageAlt: "Installation chaudière moderne"
imageSrc: "http://img.b2bpic.net/free-photo/modern-automobile-mechanic-composition_23-2147881677.jpg", imageAlt: "Installation chaudière moderne"
}
]
},
@@ -127,21 +127,21 @@ export default function LandingPage() {
title: "Ventilation", description: "VMC et systèmes de ventilation pour une meilleure qualité d'air intérieur.", icon: Wind,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/industry-40-photovoltaics-plant-manager-overseeing-work-done-by-employees_482257-120485.jpg?_wi=1", imageAlt: "Système de ventilation VMC"
imageSrc: "http://img.b2bpic.net/free-photo/industry-40-photovoltaics-plant-manager-overseeing-work-done-by-employees_482257-120485.jpg", imageAlt: "Système de ventilation VMC"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/industry-40-photovoltaics-plant-manager-overseeing-work-done-by-employees_482257-120485.jpg?_wi=2", imageAlt: "Installation ventilation bâtiment"
imageSrc: "http://img.b2bpic.net/free-photo/industry-40-photovoltaics-plant-manager-overseeing-work-done-by-employees_482257-120485.jpg", imageAlt: "Installation ventilation bâtiment"
}
]
},
{
title: "Réseaux & Tuyauterie", description: "Réseaux eau, gaz et tuyauterie industrielle pour tous types de projets.", icon: Pipe,
title: "Réseaux & Tuyauterie", description: "Réseaux eau, gaz et tuyauterie industrielle pour tous types de projets.", icon: PipeIcon,
mediaItems: [
{
imageSrc: "http://img.b2bpic.net/free-photo/steel-pipelines-cables-plant_1359-130.jpg?_wi=1", imageAlt: "Réseaux d'eau professionnels"
imageSrc: "http://img.b2bpic.net/free-photo/steel-pipelines-cables-plant_1359-130.jpg", imageAlt: "Réseaux d'eau professionnels"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/steel-pipelines-cables-plant_1359-130.jpg?_wi=2", imageAlt: "Tuyauterie industrielle"
imageSrc: "http://img.b2bpic.net/free-photo/steel-pipelines-cables-plant_1359-130.jpg", imageAlt: "Tuyauterie industrielle"
}
]
}
@@ -234,7 +234,7 @@ export default function LandingPage() {
description="Remplissez le formulaire ci-dessous et recevez un devis personnalisé sous 48h. BEST CELCIUS vous répond rapidement."
tagIcon={Mail}
tagAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "glowing-orb" }}
useInvertedBackground={true}
imageSrc="http://img.b2bpic.net/free-photo/close-up-person-working-call-center_23-2149288157.jpg"
imageAlt="Contact et devis BEST CELCIUS"

View File

@@ -1,51 +1,40 @@
"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";
className?: string;
text: string;
fontSize?: number;
fontWeight?: number | string;
fontFamily?: string;
fill?: string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'hanging' | 'middle' | 'ideographic' | 'alphabetic' | 'central' | 'mathematical' | 'inherit';
}
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,
fontSize = 24,
fontWeight = 'bold',
fontFamily = 'Arial, sans-serif',
fill = 'currentColor',
textAnchor = 'start',
dominantBaseline = 'middle'
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<svg viewBox="0 0 200 100" width="200" height="100" 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="100"
y="50"
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;