diff --git a/src/app/page.tsx b/src/app/page.tsx index 7db6c73..539e744 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ export default function LandingPage() { borderRadius="rounded" contentWidth="small" sizing="largeSmallSizeLargeTitles" - background="aurora" + background="circleGradient" cardStyle="gradient-bordered" primaryButtonStyle="flat" secondaryButtonStyle="layered" @@ -48,7 +48,7 @@ export default function LandingPage() { tag="Serving Murfreesboro & Surrounding Counties" tagIcon={Leaf} tagAnimation="slide-up" - background={{ variant: "aurora" }} + background={{ variant: "glowing-orb" }} imageSrc="http://img.b2bpic.net/free-photo/aerial-drone-view-nature-moldova_1268-21404.jpg" imageAlt="Professional farm service operations" mediaAnimation="slide-up" @@ -177,7 +177,7 @@ export default function LandingPage() { description="Contact Farm Service Agency today for expert consultation, personalized service recommendations, or to schedule a farm visit. We're here to support your success." tagIcon={Phone} tagAnimation="slide-up" - background={{ variant: "aurora" }} + background={{ variant: "gradient-bars" }} useInvertedBackground={false} imageSrc="http://img.b2bpic.net/free-photo/gardeners-cutting-plants_23-2147768497.jpg" imageAlt="Farm Service Agency location" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..c6dc39b 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,49 @@ -"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; + letterSpacing?: number; + fill?: 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, + fontSize = 24, + fontWeight = 'bold', + letterSpacing = 0, + fill = 'currentColor', +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = textLength * charWidth + letterSpacing * (textLength - 1) + 40; + const height = fontSize + 20; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;