diff --git a/src/app/page.tsx b/src/app/page.tsx index dfe1f75..47abf79 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -113,10 +113,10 @@ export default function LandingPage() { title: "Authenticated Luxury", description: "Every item undergoes rigorous verification by our expert team to ensure 100% authenticity and premium quality standards.", icon: Shield, mediaItems: [ { - imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg?_wi=1", imageAlt: "Authentication process" + imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg", imageAlt: "Authentication process" }, { - imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg?_wi=2", imageAlt: "Quality verification" + imageSrc: "http://img.b2bpic.net/free-photo/owner-getting-ready-reopening_23-2149142192.jpg", imageAlt: "Quality verification" } ] }, @@ -124,10 +124,10 @@ export default function LandingPage() { title: "Swift Delivery", description: "Experience premium packaging and expedited shipping to your doorstep with full tracking and insurance protection.", icon: Zap, mediaItems: [ { - imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg?_wi=1", imageAlt: "Fast shipping service" + imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg", imageAlt: "Fast shipping service" }, { - imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg?_wi=2", imageAlt: "Premium packaging" + imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-unboxing-products-ordered-online_23-2148577117.jpg", imageAlt: "Premium packaging" } ] }, @@ -135,10 +135,10 @@ export default function LandingPage() { title: "Dedicated Support", description: "Our luxury concierge team is available to assist you with personalized recommendations and expert guidance.", icon: Award, mediaItems: [ { - imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg?_wi=1", imageAlt: "Customer support team" + imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg", imageAlt: "Customer support team" }, { - imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg?_wi=2", imageAlt: "Premium service" + imageSrc: "http://img.b2bpic.net/free-photo/partners-sitting-table-working-cafe_1157-28459.jpg", imageAlt: "Premium service" } ] }, @@ -146,10 +146,10 @@ export default function LandingPage() { title: "Secure Transactions", description: "Protected payments with encrypted security protocols, buyer protection guarantee, and transparent pricing across all items.", icon: CheckCircle, mediaItems: [ { - imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg?_wi=1", imageAlt: "Secure payment" + imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg", imageAlt: "Secure payment" }, { - imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg?_wi=2", imageAlt: "Protected checkout" + imageSrc: "http://img.b2bpic.net/free-photo/paying-tea-with-contactless_1098-13405.jpg", imageAlt: "Protected checkout" } ] } diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..74b24de 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,48 @@ -"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 = 120, + fontWeight = 700, + letterSpacing = 0, +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const totalWidth = textLength * charWidth + letterSpacing * (textLength - 1); + const padding = 20; + const viewBoxWidth = totalWidth + padding * 2; + const viewBoxHeight = fontSize + padding * 2; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;