diff --git a/src/app/page.tsx b/src/app/page.tsx index d8f79f4..cf08363 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -80,11 +80,11 @@ export default function LandingPage() { products={[ { id: "1", brand: "Our Love Story", name: "Memory One", price: "Forever", rating: 5, - reviewCount: "∞", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=r4tdak&_wi=1", imageAlt: "Our first memory" + reviewCount: "∞", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=r4tdak", imageAlt: "Our first memory" }, { id: "2", brand: "Our Love Story", name: "Memory Two", price: "Forever", rating: 5, - reviewCount: "∞", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=fnb7fu&_wi=1", imageAlt: "Our special moment" + reviewCount: "∞", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=fnb7fu", imageAlt: "Our special moment" }, { id: "3", brand: "Our Love Story", name: "Memory Three", price: "Forever", rating: 5, @@ -108,10 +108,10 @@ export default function LandingPage() { animationType="slide-up" metrics={[ { - id: "1", value: "∞", title: "Moments Together", description: "Each one treasured forever", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=r4tdak&_wi=2", imageAlt: "Our special moments" + id: "1", value: "∞", title: "Moments Together", description: "Each one treasured forever", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=r4tdak", imageAlt: "Our special moments" }, { - id: "2", value: "365", title: "Days of Love", description: "And counting with you", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=fnb7fu&_wi=2", imageAlt: "Our love journey" + id: "2", value: "365", title: "Days of Love", description: "And counting with you", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=fnb7fu", imageAlt: "Our love journey" } ]} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..002f058 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,44 @@ -"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; + letterSpacing?: number; } -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, + letterSpacing = 0, +}) => { + const textLength = text.length; + const estimatedWidth = textLength * (fontSize * 0.5); + const padding = 20; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file