Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 21:32:47 +00:00
2 changed files with 36 additions and 38 deletions

View File

@@ -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"

View File

@@ -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<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
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 (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x={width / 2}
y={height / 2}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fill}
textAnchor="middle"
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;