Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #1.
This commit is contained in:
2026-03-11 07:46:45 +00:00
2 changed files with 33 additions and 39 deletions

View File

@@ -10,7 +10,7 @@ import TestimonialCardFifteen from '@/components/sections/testimonial/Testimonia
import ContactText from '@/components/sections/contact/ContactText';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Activity, Award, CheckCircle, Heart, Muscle, Shield, Spine, Zap } from 'lucide-react';
import { Activity, Award, CheckCircle, Heart, Shield, Zap } from 'lucide-react';
export default function LandingPage() {
return (
@@ -97,14 +97,14 @@ export default function LandingPage() {
tagAnimation="slide-up"
features={[
{
title: "Rééducation après blessure", description: "Accompagnement complet pour retrouver votre mobilité et force après accident ou traumatisme.", icon: Muscle,
title: "Rééducation après blessure", description: "Accompagnement complet pour retrouver votre mobilité et force après accident ou traumatisme.", icon: Activity,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/female-doctor-helping-patient-with-exercise_23-2148328469.jpg", imageAlt: "Rehabilitation therapy session" },
{ imageSrc: "http://img.b2bpic.net/free-photo/doctor-patient-ophthalmologist-s-office_23-2150923349.jpg", imageAlt: "Recovery progress measurement" }
]
},
{
title: "Traitement des douleurs dorsales", description: "Solutions efficaces pour soulager mal de dos, lumbago et autres douleurs lombaires.", icon: Spine,
title: "Traitement des douleurs dorsales", description: "Solutions efficaces pour soulager mal de dos, lumbago et autres douleurs lombaires.", icon: Heart,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/patient-doing-physical-rehabilitation-helped-by-therapists_23-2149227821.jpg", imageAlt: "Back pain treatment techniques" },
{ imageSrc: "http://img.b2bpic.net/free-photo/portrait-patient-doctor-looking-camera_1170-2179.jpg", imageAlt: "Spinal therapy equipment" }

View File

@@ -1,51 +1,45 @@
"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;
width?: number;
height?: number;
fontSize?: number;
fontWeight?: number | string;
fontFamily?: string;
fill?: string;
className?: 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,
width = 200,
height = 100,
fontSize = 32,
fontWeight = "bold", fontFamily = "Arial, sans-serif", 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`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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%"
dominantBaseline="middle"
textAnchor="middle"
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;