From 9f91df679dbc63621b7abb89f8c72e947ad9185d Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 18:44:24 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 1ca258a..2afa69f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ export default function LandingPage() { borderRadius="rounded" contentWidth="small" sizing="largeSmallSizeMediumTitles" - background="fluid" + background="circleGradient" cardStyle="layered-gradient" primaryButtonStyle="flat" secondaryButtonStyle="layered" @@ -46,7 +46,7 @@ export default function LandingPage() { tag="Limited Edition" tagIcon={Zap} tagAnimation="slide-up" - background={{ variant: "fluid" }} + background={{ variant: "plain" }} buttons={[ { text: "SHOP GOLF GEAR", href: "#products" }, { text: "SHOP BASKETBALL", href: "#products" } @@ -103,8 +103,8 @@ export default function LandingPage() { { text: "TOGGLE CATEGORIES", href: "#" } ]} buttonAnimation="slide-up" - titleClassName="text-4xl md:text-6xl font-bold" - descriptionClassName="text-base md:text-lg" + textBoxTitleClassName="text-4xl md:text-6xl font-bold" + textBoxDescriptionClassName="text-base md:text-lg" cardBrandClassName="text-xs font-semibold text-opacity-70" cardNameClassName="text-lg font-bold mt-3" cardPriceClassName="text-xl font-bold mt-2 text-primary-cta" @@ -142,8 +142,8 @@ export default function LandingPage() { { text: "VIEW ALL BESTSELLERS", href: "#" } ]} buttonAnimation="slide-up" - titleClassName="text-4xl md:text-6xl font-bold" - descriptionClassName="text-base md:text-lg" + textBoxTitleClassName="text-4xl md:text-6xl font-bold" + textBoxDescriptionClassName="text-base md:text-lg" /> @@ -164,8 +164,8 @@ export default function LandingPage() { ]} speed={50} showCard={true} - titleClassName="text-4xl md:text-6xl font-bold" - descriptionClassName="text-base md:text-lg" + textBoxTitleClassName="text-4xl md:text-6xl font-bold" + textBoxDescriptionClassName="text-base md:text-lg" /> @@ -217,8 +217,8 @@ export default function LandingPage() { id: "6", title: "Trusted by the Best", quote: "In professional sports, you don't take chances with equipment. Drive & Dunk has earned the trust of top competitors across both golf and basketball.", name: "Elena Vasquez", role: "Competitive Sports Analyst", imageSrc: "http://img.b2bpic.net/free-photo/press-reporter-fallowing-leads-case_23-2149579761.jpg", imageAlt: "Elena Vasquez sports analyst" } ]} - titleClassName="text-4xl md:text-6xl font-bold" - descriptionClassName="text-base md:text-lg" + textBoxTitleClassName="text-4xl md:text-6xl font-bold" + textBoxDescriptionClassName="text-base md:text-lg" buttonAnimation="slide-up" /> -- 2.49.1 From 0e9b77d1470511dba556ff93c32b50c6c41e3926 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 18:44:24 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 68 +++++++++---------- 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..d146b47 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,49 @@ -"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?: 'normal' | 'bold' | 'lighter' | 'bolder' | number; + fontFamily?: string; + fill?: 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 = 32, + fontWeight = 'bold', + fontFamily = 'system-ui, -apple-system, sans-serif', + fill = 'currentColor', + letterSpacing = 0, +}) => { + const padding = 20; + const estimatedWidth = text.length * (fontSize * 0.6) + padding * 2; + const estimatedHeight = fontSize + padding * 2; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo; -- 2.49.1