From c356fa51943dc5ab8a659963e93244435aadf627 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 15:14:25 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 2bccc56..2fd64bf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ export default function LandingPage() { borderRadius="rounded" contentWidth="mediumLarge" sizing="medium" - background="aurora" + background="circleGradient" cardStyle="soft-shadow" primaryButtonStyle="radial-glow" secondaryButtonStyle="solid" @@ -44,7 +44,7 @@ export default function LandingPage() { Date: Thu, 12 Mar 2026 15:14:26 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 81 +++++++++++-------- 1 file changed, 48 insertions(+), 33 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..bd619a5 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,66 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React, { useEffect, useRef } from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; + fontSize?: number; + fontFamily?: string; + fontWeight?: string | number; + fill?: string; + strokeWidth?: number; + stroke?: string; className?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + fontSize = 48, + fontFamily = 'Arial, sans-serif', + fontWeight = 'bold', + fill = 'currentColor', + strokeWidth = 0, + stroke = 'none', + className = '', +}) => { + const svgRef = useRef(null); + const textRef = useRef(null); + + useEffect(() => { + if (textRef.current && svgRef.current) { + const bbox = textRef.current.getBBox(); + const padding = 16; + + svgRef.current.setAttribute('width', String(bbox.width + padding * 2)); + svgRef.current.setAttribute('height', String(bbox.height + padding * 2)); + svgRef.current.setAttribute( + 'viewBox', + `${bbox.x - padding} ${bbox.y - padding} ${bbox.width + padding * 2} ${bbox.height + padding * 2}` + ); + } + }, [text]); return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1