diff --git a/src/app/page.tsx b/src/app/page.tsx index a35c6d1..ad8dd8b 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -51,7 +51,7 @@ export default function HomePage() { borderRadius="rounded" contentWidth="medium" sizing="mediumSizeLargeTitles" - background="floatingGradient" + background="circleGradient" cardStyle="gradient-mesh" primaryButtonStyle="radial-glow" secondaryButtonStyle="layered" @@ -62,9 +62,7 @@ export default function HomePage() { brandName="Carré Vert" navItems={navItems} button={{ - text: "Demander un devis", - href: "/contact", - }} + text: "Demander un devis", href: "/contact"}} /> @@ -73,23 +71,18 @@ export default function HomePage() { title="Des jardins entretenus avec passion et professionnalisme" description="Carré Vert prend soin de vos espaces verts avec une attention particulière aux détails, à la propreté et au respect de la nature." background={{ - variant: "floatingGradient", - }} + variant: "plain"}} tag="Excellence en Entretien" tagIcon={Leaf} tagAnimation="slide-up" buttons={[ { - text: "Demander un devis gratuit", - href: "/contact", - }, + text: "Demander un devis gratuit", href: "/contact"}, { - text: "Découvrir nos services", - href: "/#services", - }, + text: "Découvrir nos services", href: "/#services"}, ]} buttonAnimation="slide-up" - imageSrc="http://img.b2bpic.net/free-photo/woman-working-alone-sustainable-greenhouse_23-2149072119.jpg?_wi=1" + imageSrc="http://img.b2bpic.net/free-photo/woman-working-alone-sustainable-greenhouse_23-2149072119.jpg" imageAlt="Jardin magnifiquement entretenu" mediaAnimation="slide-up" ariaLabel="Section héro Carré Vert" @@ -100,50 +93,20 @@ export default function HomePage() { -
+
diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..4875446 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,31 @@ -"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; + textClassName?: 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 = "", textClassName = ""}) => { return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file