diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index d72a0c0..1c1bbe6 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -6,6 +6,7 @@ interface SvgTextLogoProps { fontSize?: number; fontWeight?: number | string; letterSpacing?: number; + fill?: string; } const SvgTextLogo: React.FC = ({ @@ -14,27 +15,28 @@ const SvgTextLogo: React.FC = ({ fontSize = 48, fontWeight = 700, letterSpacing = 0, + fill = 'currentColor', }) => { - const svgWidth = text.length * (fontSize * 0.6) + 40; - const svgHeight = fontSize + 20; + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = charWidth * textLength + letterSpacing * (textLength - 1); + const height = fontSize * 1.2; return ( {text}