Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-13 02:18:00 +00:00
2 changed files with 27 additions and 39 deletions

View File

@@ -107,10 +107,10 @@ export default function LandingPage() {
speed={40}
testimonials={[
{
id: "1", name: "Sarah M.", handle: "Local Home Builder", testimonial: "Perry is a perfectionist and when a big investment like your house is at stake you need to put it in the right hands. His attention to detail is exceptional.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1zxpaa&_wi=1", imageAlt: "Sarah M., Local Home Builder"
id: "1", name: "Sarah M.", handle: "Local Home Builder", testimonial: "Perry is a perfectionist and when a big investment like your house is at stake you need to put it in the right hands. His attention to detail is exceptional.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1zxpaa", imageAlt: "Sarah M., Local Home Builder"
},
{
id: "2", name: "James T.", handle: "Washingtonville Homeowner", testimonial: "He picked up a new water heater, delivered it, and installed it all in the same day. Efficient and very reasonably priced. Best service I've had.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=izetu9&_wi=1", imageAlt: "James T., Satisfied Homeowner"
id: "2", name: "James T.", handle: "Washingtonville Homeowner", testimonial: "He picked up a new water heater, delivered it, and installed it all in the same day. Efficient and very reasonably priced. Best service I've had.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=izetu9", imageAlt: "James T., Satisfied Homeowner"
},
{
id: "3", name: "Maria R.", handle: "Monroe Homeowner", testimonial: "He solved multiple plumbing issues in my house and always at a fair price. Highly recommended. Perry goes above and beyond every time.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=kqn4z0", imageAlt: "Maria R., Homeowner in Monroe"
@@ -119,10 +119,10 @@ export default function LandingPage() {
id: "4", name: "Robert K.", handle: "Chester Resident", testimonial: "Professional, clean work, and they show up when they say they will. That's rare these days. Harris Perry Plumbing is worth every penny.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1sshxe", imageAlt: "Robert K., Chester Homeowner"
},
{
id: "5", name: "Linda P.", handle: "Goshen Homeowner", testimonial: "Emergency plumbing on a Saturday night and they answered immediately. Fixed the issue quickly and fairly priced. Couldn't ask for better service.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1zxpaa&_wi=2", imageAlt: "Linda P., Emergency Service Customer"
id: "5", name: "Linda P.", handle: "Goshen Homeowner", testimonial: "Emergency plumbing on a Saturday night and they answered immediately. Fixed the issue quickly and fairly priced. Couldn't ask for better service.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=1zxpaa", imageAlt: "Linda P., Emergency Service Customer"
},
{
id: "6", name: "David W.", handle: "Orange County Business Owner", testimonial: "We use Harris Perry for all our commercial plumbing needs. Reliable, professional, and they always deliver on their promises.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=izetu9&_wi=2", imageAlt: "David W., Commercial Client"
id: "6", name: "David W.", handle: "Orange County Business Owner", testimonial: "We use Harris Perry for all our commercial plumbing needs. Reliable, professional, and they always deliver on their promises.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=izetu9", imageAlt: "David W., Commercial Client"
}
]}
/>
@@ -167,6 +167,7 @@ export default function LandingPage() {
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=331hbg"
imageAlt="Contact us for plumbing help"
mediaPosition="right"
mediaAnimation="slide-up"
inputPlaceholder="Enter your email or phone"
buttonText="Request Service"
termsText="We respect your privacy. You'll hear from us within 24 hours."

View File

@@ -1,51 +1,38 @@
"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;
fontFamily?: string;
fill?: 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,
fontSize = 24,
fontFamily = 'system-ui, -apple-system, sans-serif',
fill = 'currentColor',
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * (fontSize * 0.6)} ${fontSize * 1.2}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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"
}}
y={fontSize}
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;