diff --git a/src/app/page.tsx b/src/app/page.tsx index b0c445f..11c2ebe 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -17,7 +17,7 @@ export default function LandingPage() { borderRadius="rounded" contentWidth="medium" sizing="medium" - background="grid" + background="circleGradient" cardStyle="inset" primaryButtonStyle="gradient" secondaryButtonStyle="glass" @@ -45,7 +45,7 @@ export default function LandingPage() { { text: "Appeler maintenant", href: "tel:+33240200902" }, { text: "Réserver une commande", href: "#contact" } ]} - background={{ variant: "grid" }} + background={{ variant: "plain" }} imageSrc="http://img.b2bpic.net/free-photo/view-autumn-food-with-copy-space_23-2148234245.jpg" imageAlt="Intérieur chaleureux de la boulangerie avec pains et pâtisseries fraîchement cuits" frameStyle="card" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..f94d63f 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,35 @@ -"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; + fill?: string; + fontSize?: number; + fontFamily?: string; + dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + fill = '#000000', + fontSize = 48, + fontFamily = 'Arial, sans-serif', + dominantBaseline = 'middle', +}) => { return ( - + - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;