Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 01:19:09 +00:00
2 changed files with 24 additions and 37 deletions

View File

@@ -47,7 +47,7 @@ export default function LandingPage() {
title="Professional Lawn Care & Landscaping in Frisco, TX"
description="Trusted by 260+ homeowners for dependable lawn care and landscaping services. Get a free quote today."
tag="Frisco, TX"
imageSrc="http://img.b2bpic.net/free-photo/view-robot-tending-maintaining-gardens_23-2151803960.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/view-robot-tending-maintaining-gardens_23-2151803960.jpg"
imageAlt="Professional landscape maintenance"
showBlur={true}
showDimOverlay={true}
@@ -192,9 +192,10 @@ export default function LandingPage() {
title="Get Your Free Quote Today"
description="Contact JC's Landscaping for a no-obligation consultation. Our team is ready to transform your outdoor space."
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/view-robot-tending-maintaining-gardens_23-2151803960.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/view-robot-tending-maintaining-gardens_23-2151803960.jpg"
imageAlt="Beautiful landscaped yard"
mediaPosition="right"
mediaAnimation="none"
inputPlaceholder="Enter your email"
buttonText="Request Quote"
termsText="By requesting a quote, you agree to be contacted about landscaping services. We respect your privacy."

View File

@@ -1,51 +1,37 @@
"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;
}
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 = '' }) => {
const charWidth = 30;
const width = text.length * charWidth + 20;
const height = 60;
const fontSize = 40;
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}
aria-label={`Logo: ${text}`}
>
<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="bold"
textAnchor="middle"
dominantBaseline="central"
className="fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;