Files
84299767-90bd-4d5e-9f45-e72…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

44 lines
1.0 KiB
TypeScript

import React from 'react';
interface SvgTextLogoProps {
text: string;
className?: string;
dominantBaseline?: 'auto' | 'text-before-edge' | 'middle' | 'central' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit' | 'use-script' | 'no-change' | 'reset-size';
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
dominantBaseline = 'middle',
}) => {
return (
<svg
viewBox="0 0 1000 300"
className={`w-full h-auto ${className}`}
preserveAspectRatio="xMidYMid meet"
>
<defs>
<style>{`
.logo-text {
font-size: 120px;
font-weight: bold;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
letter-spacing: 2px;
}
`}</style>
</defs>
<text
x="50%"
y="50%"
dominantBaseline={dominantBaseline}
textAnchor="middle"
className="logo-text inherit"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;