36 lines
803 B
TypeScript
36 lines
803 B
TypeScript
import React from 'react';
|
|
|
|
interface SvgTextLogoProps {
|
|
text: string;
|
|
className?: string;
|
|
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'baseline' | 'central' | 'ideographic' | 'mathematical';
|
|
}
|
|
|
|
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
|
text,
|
|
className = '',
|
|
dominantBaseline = 'middle',
|
|
}) => {
|
|
return (
|
|
<svg
|
|
viewBox="0 0 1000 200"
|
|
className={`w-full h-auto ${className}`}
|
|
preserveAspectRatio="xMidYMid meet"
|
|
>
|
|
<text
|
|
x="50%"
|
|
y="50%"
|
|
textAnchor="middle"
|
|
dominantBaseline={dominantBaseline}
|
|
fontSize="120"
|
|
fontWeight="bold"
|
|
fill="currentColor"
|
|
fontFamily="system-ui, -apple-system, sans-serif"
|
|
>
|
|
{text}
|
|
</text>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default SvgTextLogo; |