Files
aebdb2a1-aacd-4dac-bafd-87f…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

37 lines
869 B
TypeScript

import React from "react";
interface SvgTextLogoProps {
text: string;
className?: string;
}
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = "" }) => {
return (
<svg
viewBox="0 0 200 100"
className={`w-full h-full ${className}`}
aria-label={text}
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style={{ stopColor: "#ffffff", stopOpacity: 1 }} />
<stop offset="100%" style={{ stopColor: "#e5e7eb", stopOpacity: 1 }} />
</linearGradient>
</defs>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize="24"
fontWeight="bold"
fill="url(#textGradient)"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;