Merge version_1 into main #2

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

View File

@@ -55,34 +55,33 @@ export default function LandingPage() {
buttonAnimation="slide-up"
leftCarouselItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/close-up-experienced-carpenter-his-younger-employee_329181-15694.jpg?_wi=1", imageAlt: "Professional roofing team at work"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-experienced-carpenter-his-younger-employee_329181-15694.jpg", imageAlt: "Professional roofing team at work"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/closeup-unrecognizable-couple-signing-contract-with-financial-advisor_637285-11092.jpg?_wi=1", imageAlt: "Storm damage roof inspection"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-unrecognizable-couple-signing-contract-with-financial-advisor_637285-11092.jpg", imageAlt: "Storm damage roof inspection"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-man-working-roof_23-2149343672.jpg?_wi=1", imageAlt: "Premium roof installation"
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-man-working-roof_23-2149343672.jpg", imageAlt: "Premium roof installation"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/diverse-team-members-brainstrom-together-informal-meeting_273609-28644.jpg?_wi=1", imageAlt: "Insurance claim support meeting"
imageSrc: "http://img.b2bpic.net/free-photo/diverse-team-members-brainstrom-together-informal-meeting_273609-28644.jpg", imageAlt: "Insurance claim support meeting"
}
]}
rightCarouselItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/diverse-team-members-brainstrom-together-informal-meeting_273609-28644.jpg?_wi=2", imageAlt: "Expert roofing assessment"
imageSrc: "http://img.b2bpic.net/free-photo/diverse-team-members-brainstrom-together-informal-meeting_273609-28644.jpg", imageAlt: "Expert roofing assessment"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-man-working-roof_23-2149343672.jpg?_wi=2", imageAlt: "Skilled roof repair work"
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-smiley-man-working-roof_23-2149343672.jpg", imageAlt: "Skilled roof repair work"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/close-up-experienced-carpenter-his-younger-employee_329181-15694.jpg?_wi=2", imageAlt: "Roofing contractor team"
imageSrc: "http://img.b2bpic.net/free-photo/close-up-experienced-carpenter-his-younger-employee_329181-15694.jpg", imageAlt: "Roofing contractor team"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/closeup-unrecognizable-couple-signing-contract-with-financial-advisor_637285-11092.jpg?_wi=2", imageAlt: "Damage assessment documentation"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-unrecognizable-couple-signing-contract-with-financial-advisor_637285-11092.jpg", imageAlt: "Damage assessment documentation"
}
]}
carouselPosition="right"
useInvertedBackground={false}
/>
</div>
@@ -91,7 +90,7 @@ export default function LandingPage() {
title="Why Homeowners Trust Dallas Advanced Roofing"
description="We specialize in honest communication and transparent pricing. No hidden costs, no pressure tactics—just expert roofing solutions backed by insurance expertise and a genuine commitment to protecting your home."
tag="Our Philosophy"
imageSrc="http://img.b2bpic.net/free-photo/diverse-team-members-brainstrom-together-informal-meeting_273609-28644.jpg?_wi=3"
imageSrc="http://img.b2bpic.net/free-photo/diverse-team-members-brainstrom-together-informal-meeting_273609-28644.jpg"
imageAlt="Dallas Advanced Roofing insurance consultation"
buttons={[
{ text: "Schedule Inspection", href: "contact" }

View File

@@ -1,51 +1,43 @@
"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;
fontFamily?: string;
fill?: string;
dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'hanging' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'mathematical' | 'inherit';
}
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 = 32,
fontFamily = 'system-ui, -apple-system, sans-serif',
fill = 'currentColor',
dominantBaseline = 'middle'
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox="0 0 400 100"
className={className}
role="img"
aria-label={`${logoText} logo`}
aria-label={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="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
fontWeight="600"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;