diff --git a/src/app/page.tsx b/src/app/page.tsx index a72f1e9..753614e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -160,7 +160,6 @@ export default function LandingPage() { tag="Service Areas" textboxLayout="default" useInvertedBackground={false} - animationType="slide-up" names={["Dubai", "Ajman", "Abu Dhabi", "Sharjah", "UAE"]} speed={40} showCard={true} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..3f23e21 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,42 @@ -"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; + fontSize?: number; + fontWeight?: number | string; + fill?: string; + dominantBaseline?: 'middle' | 'central' | 'hanging' | 'auto' | 'baseline' | 'text-bottom' | 'alphabetic'; } -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, + fontSize = 48, + fontWeight = 700, + fill = 'currentColor', + dominantBaseline = 'middle' +}) => { return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file