From 7d86a8a0d80ba95977fe514516321f621d466fce Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 13 Mar 2026 02:05:40 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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" } ]} /> -- 2.49.1 From 51c13d78f0e070f031064a9ddc22b43eb2b92710 Mon Sep 17 00:00:00 2001 From: bender Date: Fri, 13 Mar 2026 02:05:40 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 65 +++++++++---------- 1 file changed, 29 insertions(+), 36 deletions(-) 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 -- 2.49.1