diff --git a/src/app/page.tsx b/src/app/page.tsx index a67fc8a..8edd58e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -4,7 +4,6 @@ import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline"; import HeroSplit from "@/components/sections/hero/HeroSplit"; import TextAbout from "@/components/sections/about/TextAbout"; -import ProjectShowcase from "@/components/sections/product/ProjectShowcase"; import FeatureCardSix from "@/components/sections/feature/FeatureCardSix"; import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo"; import ContactSplit from "@/components/sections/contact/ContactSplit"; @@ -75,7 +74,7 @@ export default function LandingPage() {
- diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..f7816ee 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,39 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + fontSize?: number; + fontWeight?: number | string; + dominantBaseline?: 'auto' | 'text-top' | 'text-bottom' | 'middle' | 'central' | 'hanging' | 'mathematical' | 'inherit'; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +export const SvgTextLogo: React.FC = ({ + text, + className, + fontSize = 24, + fontWeight = 'bold', + dominantBaseline = 'middle', +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;