40 lines
919 B
TypeScript
40 lines
919 B
TypeScript
import React from "react";
|
|
|
|
interface SvgTextLogoProps {
|
|
text: string;
|
|
className?: string;
|
|
ariaLabel?: string;
|
|
}
|
|
|
|
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
|
|
text = "WEBILD", className = "", ariaLabel = "Logo"}) => {
|
|
return (
|
|
<svg
|
|
viewBox="0 0 300 100"
|
|
className={`w-40 h-auto ${className}`}
|
|
aria-label={ariaLabel}
|
|
role="img"
|
|
>
|
|
<defs>
|
|
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
<stop offset="0%" stopColor="#3b82f6" />
|
|
<stop offset="100%" stopColor="#8b5cf6" />
|
|
</linearGradient>
|
|
</defs>
|
|
<text
|
|
x="50%"
|
|
y="50%"
|
|
textAnchor="middle"
|
|
dominantBaseline="central"
|
|
fontSize="48"
|
|
fontWeight="bold"
|
|
fill="url(#textGradient)"
|
|
letterSpacing="2"
|
|
>
|
|
{text}
|
|
</text>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
export default SvgTextLogo; |