8 Commits

Author SHA1 Message Date
67b508defb Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx 2026-03-12 16:49:41 +00:00
ea8b146b17 Merge version_2 into main
Merge version_2 into main
2026-03-12 16:47:57 +00:00
c49ed74a90 Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx 2026-03-12 16:47:42 +00:00
d16b90e65a Update src/app/page.tsx 2026-03-12 16:47:42 +00:00
c8710233bd Merge version_2 into main
Merge version_2 into main
2026-03-12 16:45:31 +00:00
fab0651c19 Merge version_1 into main
Merge version_1 into main
2026-03-12 16:45:04 +00:00
901713ee01 Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx 2026-03-12 16:45:00 +00:00
0855841c6a Update src/app/page.tsx 2026-03-12 16:45:00 +00:00

View File

@@ -1,32 +1,38 @@
import { FC, SVGProps } from "react";
import React from 'react';
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
interface SvgTextLogoProps {
text: string;
className?: string;
fontSize?: number;
fontWeight?: string;
letterSpacing?: string;
fill?: string;
}
const SvgTextLogo: FC<SvgTextLogoProps> = ({ text, className = "", ...props }) => {
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 48,
fontWeight = '700',
letterSpacing = '0.05em',
fill = 'currentColor',
}) => {
return (
<svg
viewBox={`0 0 ${text.length * 60} 100`}
className={`w-full h-auto ${className}`}
{...props}
viewBox={`0 0 ${text.length * (fontSize * 0.6)} ${fontSize * 1.2}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
>
<defs>
<style>{`
.svg-text {
font-size: 72px;
font-weight: bold;
fill: currentColor;
}
`}</style>
</defs>
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className="svg-text"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fill}
>
{text}
</text>
@@ -34,4 +40,4 @@ const SvgTextLogo: FC<SvgTextLogoProps> = ({ text, className = "", ...props }) =
);
};
export default SvgTextLogo;
export default SvgTextLogo;