diff --git a/src/app/page.tsx b/src/app/page.tsx index 1a75eaf..1c11469 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -62,8 +62,6 @@ export default function LandingPage() { imagePosition="right" className="py-12 md:py-20" containerClassName="max-w-7xl" - titleClassName="text-4xl md:text-5xl font-bold" - descriptionClassName="text-lg md:text-xl leading-relaxed" /> @@ -106,9 +104,6 @@ export default function LandingPage() { useInvertedBackground={false} className="py-12 md:py-20" containerClassName="max-w-7xl" - titleClassName="text-4xl md:text-5xl font-bold mb-4" - descriptionClassName="text-lg md:text-xl text-gray-600 mb-12" - cardClassName="rounded-xl shadow-md hover:shadow-lg transition-all" /> @@ -130,8 +125,6 @@ export default function LandingPage() { useInvertedBackground={true} className="py-12 md:py-20" containerClassName="max-w-7xl" - titleClassName="text-4xl md:text-5xl font-bold mb-4" - descriptionClassName="text-lg md:text-xl mb-12" /> @@ -151,8 +144,6 @@ export default function LandingPage() { useInvertedBackground={false} className="py-12 md:py-20" containerClassName="max-w-4xl" - titleClassName="text-3xl md:text-4xl font-bold mb-4" - descriptionClassName="text-lg md:text-xl mb-8 leading-relaxed" /> @@ -188,9 +179,6 @@ export default function LandingPage() { } ]} className="bg-white" - logoTextClassName="text-2xl font-bold text-gray-800 mb-6" - columnTitleClassName="font-semibold text-gray-800 mb-4" - columnItemClassName="text-gray-600 hover:text-gray-800 transition-colors" /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..7e0d698 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,44 @@ -"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; + fontSize?: number; + fontWeight?: number | string; + fill?: string; className?: string; } -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, + fontSize = 24, + fontWeight = 'bold', + fill = 'currentColor', + className = '', +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = charWidth * textLength + 20; + const height = fontSize + 20; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +};