Files
ac2f0aac-e834-48a5-bde6-0d9…/src/components/shared/SvgTextLogo/SvgTextLogo.tsx

41 lines
1.0 KiB
TypeScript

import { FC, SVGProps } from "react";
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text: string;
className?: string;
}
const SvgTextLogo: FC<SvgTextLogoProps> = ({
text = "Webild", className = "w-full h-auto", ...props
}) => {
return (
<svg
viewBox="0 0 800 200"
xmlns="http://www.w3.org/2000/svg"
className={className}
{...props}
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style={{ stopColor: "#3b82f6", stopOpacity: 1 }} />
<stop offset="100%" style={{ stopColor: "#8b5cf6", stopOpacity: 1 }} />
</linearGradient>
</defs>
<text
x="50%"
y="50%"
dominantBaseline="middle"
textAnchor="middle"
fontSize="80"
fontWeight="bold"
fill="url(#textGradient)"
fontFamily="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"
>
{text}
</text>
</svg>
);
};
export default SvgTextLogo;