From d54a3477c705d51e2df022eec81b4631eaa43f0d Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 23:28:24 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 6eb861c..579eecf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -161,7 +161,7 @@ export default function LandingPage() { tag="Impact" tagIcon={TrendingUp} tagAnimation="slide-up" - textboxLayout="centered" + textboxLayout="default" useInvertedBackground={false} animationType="slide-up" metrics={[ -- 2.49.1 From b448a312fd47ec2b30f7f073dd65f87d243cfcd8 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 23:28:25 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 96 ++++++++++--------- 1 file changed, 52 insertions(+), 44 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..e40d118 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,59 @@ -"use client"; +import React, { SVGProps } from 'react'; -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; - -interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; - className?: string; +interface SvgTextLogoProps extends SVGProps { + text?: string; + fontSize?: number; + fontWeight?: string | number; + fill?: string; + fontFamily?: 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.forwardRef( + ( + { + text = 'Webild', + fontSize = 32, + fontWeight = 700, + fill = 'currentColor', + fontFamily = 'system-ui, -apple-system, sans-serif', + letterSpacing = 0, + className = '', + ...props + }, + ref + ) => { + const textWidth = text.length * (fontSize * 0.6); + const viewBoxWidth = textWidth + 40; + const viewBoxHeight = fontSize * 1.5; - return ( - - - {logoText} - - - ); -}); + + {text} + + + ); + } +); -SvgTextLogo.displayName = "SvgTextLogo"; +SvgTextLogo.displayName = 'SvgTextLogo'; -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1