diff --git a/src/app/page.tsx b/src/app/page.tsx index f7e002c..ac6aa91 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -85,8 +85,8 @@ export default function LandingPage() { animationType="blur-reveal" useInvertedBackground={false} containerClassName="py-12 md:py-20" - titleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" - descriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" + cardTitleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" + textBoxDescriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" /> @@ -113,8 +113,8 @@ export default function LandingPage() { animationType="slide-up" useInvertedBackground={false} containerClassName="py-12 md:py-20" - titleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" - descriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" + cardTitleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" + textBoxDescriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" /> @@ -149,8 +149,8 @@ export default function LandingPage() { animationType="scale-rotate" useInvertedBackground={false} containerClassName="py-12 md:py-20" - titleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" - descriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" + cardTitleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" + textBoxDescriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" /> @@ -168,8 +168,8 @@ export default function LandingPage() { animationType="slide-up" useInvertedBackground={false} containerClassName="py-12 md:py-20" - titleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" - descriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" + textBoxTitleClassName="text-3xl md:text-5xl text-[#25190c] font-manrope font-bold" + textBoxDescriptionClassName="text-base md:text-lg text-[#25190c] font-dm-sans mt-4" /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..7479be7 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,31 @@ -"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; + textClassName?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +const SvgTextLogo: React.FC = ({ + text, + className = "", textClassName = ""}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;