Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 22:30:54 +00:00
2 changed files with 20 additions and 42 deletions

View File

@@ -58,7 +58,7 @@ export default function LandingPage() {
{ text: "Call: (801) 899-9161", href: "tel:+18018999161" },
{ text: "Get Free Estimate" }
]}
imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721549.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721549.jpg"
imageAlt="Professional plumber ready to serve"
mediaAnimation="opacity"
imagePosition="right"
@@ -76,13 +76,13 @@ export default function LandingPage() {
id: "01", title: "Water Heater Services", description: "Installation, repair, and replacement of gas and electric water heaters. Expert testing and maintenance.", imageSrc: "http://img.b2bpic.net/free-photo/electrician-builder-work-servicing-fuselage-industrial-switchboard-professional-overalls-with-electrician-s-tool_169016-7337.jpg", imageAlt: "Water heater installation"
},
{
id: "02", title: "Emergency Repairs", description: "24/7 response to burst pipes, leaks, and urgent plumbing issues. Available around the clock.", imageSrc: "http://img.b2bpic.net/free-photo/happy-casual-woman-talking-mobile-phone_171337-11889.jpg?_wi=1", imageAlt: "Emergency plumbing response"
id: "02", title: "Emergency Repairs", description: "24/7 response to burst pipes, leaks, and urgent plumbing issues. Available around the clock.", imageSrc: "http://img.b2bpic.net/free-photo/happy-casual-woman-talking-mobile-phone_171337-11889.jpg", imageAlt: "Emergency plumbing response"
},
{
id: "03", title: "Bathroom Renovations", description: "Complete plumbing work for modern bathroom upgrades. Fixtures, drainage, and installation.", imageSrc: "http://img.b2bpic.net/free-photo/man-white-terry-bathrobe-filling-bathtub-with-water_259150-59739.jpg", imageAlt: "Bathroom renovation plumbing"
},
{
id: "04", title: "Drain Cleaning", description: "Professional drain clearing and maintenance to keep your plumbing flowing smoothly.", imageSrc: "http://img.b2bpic.net/free-photo/happy-casual-woman-talking-mobile-phone_171337-11889.jpg?_wi=2", imageAlt: "Drain cleaning service"
id: "04", title: "Drain Cleaning", description: "Professional drain clearing and maintenance to keep your plumbing flowing smoothly.", imageSrc: "http://img.b2bpic.net/free-photo/happy-casual-woman-talking-mobile-phone_171337-11889.jpg", imageAlt: "Drain cleaning service"
}
]}
gridVariant="four-items-2x2-equal-grid"
@@ -176,7 +176,7 @@ export default function LandingPage() {
]}
textboxLayout="default"
useInvertedBackground={false}
faqsAnimation="entrance-slide"
faqsAnimation="slide-up"
animationType="smooth"
/>
</div>
@@ -196,7 +196,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721549.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721549.jpg"
imageAlt="Professional plumbing service"
logoText="Rush Plumbing"
copyrightText="© 2025 Rush Plumbing. All rights reserved. Licensed and Insured."

View File

@@ -1,51 +1,29 @@
"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 = '' }) => {
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 200 50"
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"
}}
x="10"
y="35"
fontSize="32"
fontWeight="bold"
fill="currentColor"
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;