From 50b531cb8a980d9f5babe2ee5b6776f5735ed500 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 14:52:47 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 6d9cdbf..4815b4a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -21,7 +21,7 @@ export default function LandingPage() { borderRadius="pill" contentWidth="mediumLarge" sizing="largeSmallSizeMediumTitles" - background="noise" + background="circleGradient" cardStyle="inset" primaryButtonStyle="primary-glow" secondaryButtonStyle="radial-glow" @@ -44,7 +44,7 @@ export default function LandingPage() { Date: Thu, 12 Mar 2026 14:52:47 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 104 ++++++++++-------- 1 file changed, 61 insertions(+), 43 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..1cae32e 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,69 @@ -"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"; +interface SvgTextLogoProps extends SVGProps { + text: string; + fontSize?: number; + fontFamily?: string; + fontWeight?: string | number; + letterSpacing?: number; className?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo = React.forwardRef( + ( + { + text, + fontSize = 32, + fontFamily = 'system-ui, -apple-system, sans-serif', + fontWeight = 'bold', + letterSpacing = 0, + className = '', + ...props + }, + ref + ) => { + const textElement = React.useRef(null); + const [bbox, setBbox] = React.useState({ width: 0, height: 0 }); - return ( - - { + if (textElement.current) { + try { + const bounds = textElement.current.getBBox(); + setBbox({ + width: bounds.width + 20, + height: bounds.height + 20, + }); + } catch (e) { + // Handle error silently + } + } + }, [text]); + + return ( + - {logoText} - - - ); -}); + + {text} + + + ); + } +); -SvgTextLogo.displayName = "SvgTextLogo"; +SvgTextLogo.displayName = 'SvgTextLogo'; -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1