diff --git a/src/app/page.tsx b/src/app/page.tsx index 5aee3f9..243c044 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -40,10 +40,10 @@ 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, + className = '', + fontSize = 48, + fontWeight = 700, + letterSpacing = 0, + fill = 'currentColor', +}) => { + // Calculate dimensions based on text length and font size + const charWidth = fontSize * 0.6; + const totalWidth = charWidth * text.length + letterSpacing * (text.length - 1) + 40; + const totalHeight = fontSize + 40; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;