diff --git a/src/app/page.tsx b/src/app/page.tsx index 4b2998b..17eafe1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -56,7 +56,7 @@ export default function HomePage() { borderRadius="pill" contentWidth="mediumLarge" sizing="largeSmallSizeLargeTitles" - background="noiseDiagonalGradient" + background="circleGradient" cardStyle="gradient-radial" primaryButtonStyle="primary-glow" secondaryButtonStyle="glass" @@ -81,7 +81,7 @@ export default function HomePage() { diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..0ab9763 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,36 @@ -"use client"; +import React, { SVGProps } from 'react'; -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; - -interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; - className?: string; +interface SvgTextLogoProps extends SVGProps { + text?: string; + fontSize?: number; + dominantBaseline?: 'auto' | 'baseline' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'central' | 'middle'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - - return ( - - ( + ({ text = 'Logo', fontSize = 32, dominantBaseline = 'auto', ...props }, ref) => { + return ( + - {logoText} - - - ); -}); + + {text} + + + ); + } +); -SvgTextLogo.displayName = "SvgTextLogo"; +SvgTextLogo.displayName = 'SvgTextLogo'; -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file