diff --git a/src/app/page.tsx b/src/app/page.tsx index 1e699d8..9f25140 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -52,10 +52,10 @@ export default function LandingPage() { imageSrc: "http://img.b2bpic.net/free-photo/front-view-little-cute-boys-hiding-with-checkered-sheet_179666-45446.jpg", imageAlt: "Adorable baby onesie collection" }, { - imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-beautiful-baby-shower-concept_23-2148731362.jpg?_wi=1", imageAlt: "Cute baby apparel design" + imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-beautiful-baby-shower-concept_23-2148731362.jpg", imageAlt: "Cute baby apparel design" }, { - imageSrc: "http://img.b2bpic.net/free-vector/everything-will-be-ok-spanish_23-2148483407.jpg?_wi=1", imageAlt: "Playful kids shirt design" + imageSrc: "http://img.b2bpic.net/free-vector/everything-will-be-ok-spanish_23-2148483407.jpg", imageAlt: "Playful kids shirt design" } ]} autoplayDelay={5000} @@ -84,13 +84,13 @@ export default function LandingPage() { tag="Bestsellers" products={[ { - id: "1", name: "Sunshine Onesie", price: "$24.99", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-beautiful-baby-shower-concept_23-2148731362.jpg?_wi=2", imageAlt: "Sunshine Onesie" + id: "1", name: "Sunshine Onesie", price: "$24.99", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-beautiful-baby-shower-concept_23-2148731362.jpg", imageAlt: "Sunshine Onesie" }, { id: "2", name: "Mint Dream Onesie", price: "$24.99", imageSrc: "http://img.b2bpic.net/free-photo/baby-shoes-romper_23-2147698699.jpg", imageAlt: "Mint Dream Onesie" }, { - id: "3", name: "Adventure Kids Tee", price: "$19.99", imageSrc: "http://img.b2bpic.net/free-vector/everything-will-be-ok-spanish_23-2148483407.jpg?_wi=2", imageAlt: "Adventure Kids Tee" + id: "3", name: "Adventure Kids Tee", price: "$19.99", imageSrc: "http://img.b2bpic.net/free-vector/everything-will-be-ok-spanish_23-2148483407.jpg", imageAlt: "Adventure Kids Tee" }, { id: "4", name: "Dreamer Toddler Shirt", price: "$21.99", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-boy-with-toy-hat_23-2148350077.jpg", imageAlt: "Dreamer Toddler Shirt" @@ -200,4 +200,4 @@ export default function LandingPage() { ); -} \ No newline at end of file +} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..347dd15 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; + fontFamily?: string; + letterSpacing?: number; + textAnchor?: 'start' | 'middle' | 'end'; + dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'baseline' | 'central' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'mathematical'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +export default function SvgTextLogo({ + text, + className = '', + fontSize = 48, + fontWeight = 700, + fontFamily = 'Arial, sans-serif', + letterSpacing = 0, + textAnchor = 'middle', + dominantBaseline = 'middle', +}: SvgTextLogoProps) { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +}