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() { (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