diff --git a/src/app/page.tsx b/src/app/page.tsx index 19fee11..7b22df6 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -197,10 +197,9 @@ export default function LandingPage() { "Store Interior", "Trendy Outfits", "Blazer Collection", "Party Wear", "Customer Moments", "Accessories Display" ]} textboxLayout="default" - animationType="slide-up" - useInvertedBackground={false} speed={40} showCard={true} + useInvertedBackground={false} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..8af1335 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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; className?: string; + fontSize?: number; + fontWeight?: number | 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 = '', + fontSize = 24, + fontWeight = 700, +}) => { + const textWidth = text.length * (fontSize as number) * 0.6; + const padding = 16; + const width = textWidth + padding * 2; + const height = (fontSize as number) + padding * 2; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file