Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 15:58:08 +00:00
2 changed files with 35 additions and 41 deletions

View File

@@ -59,14 +59,14 @@ export default function LandingPage() {
imageSrc: "http://img.b2bpic.net/free-photo/low-angle-shot-four-buildings-blue-sky_181624-49869.jpg", imageAlt: "Luxury Miami home with professional roofing installation"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/bearded-man-smoking-roof_1321-1036.jpg?_wi=1", imageAlt: "Professional roof replacement in progress"
imageSrc: "http://img.b2bpic.net/free-photo/bearded-man-smoking-roof_1321-1036.jpg", imageAlt: "Professional roof replacement in progress"
},
{
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-white-wooden-bridge-across-water-sun_146671-18753.jpg?_wi=1", imageAlt: "Premium luxury home exterior in Miami"
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-white-wooden-bridge-across-water-sun_146671-18753.jpg", imageAlt: "Premium luxury home exterior in Miami"
}
]}
mediaAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "radial-gradient" }}
/>
</div>
@@ -143,7 +143,7 @@ export default function LandingPage() {
description="Experienced & Professional"
subdescription="15+ Years of Excellence in South Florida"
icon={Award}
imageSrc="http://img.b2bpic.net/free-photo/beautiful-white-wooden-bridge-across-water-sun_146671-18753.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/beautiful-white-wooden-bridge-across-water-sun_146671-18753.jpg"
imageAlt="Professional roofing team working on luxury home"
mediaAnimation="slide-up"
useInvertedBackground={false}
@@ -181,7 +181,7 @@ export default function LandingPage() {
description="Before & After: See the quality and transformation of our roofing work in Miami"
products={[
{
id: "1", name: "Luxury Home Roof Replacement", price: "Completed", imageSrc: "http://img.b2bpic.net/free-photo/bearded-man-smoking-roof_1321-1036.jpg?_wi=2", imageAlt: "Professional roof replacement on luxury home"
id: "1", name: "Luxury Home Roof Replacement", price: "Completed", imageSrc: "http://img.b2bpic.net/free-photo/bearded-man-smoking-roof_1321-1036.jpg", imageAlt: "Professional roof replacement on luxury home"
},
{
id: "2", name: "Hurricane Storm Damage Restoration", price: "Emergency", imageSrc: "http://img.b2bpic.net/free-photo/old-rural-house-with-wild-grape-covering-part-yard_1268-15653.jpg", imageAlt: "Storm damage roof repair and restoration"
@@ -231,4 +231,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -1,51 +1,45 @@
"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?: string | number;
letterSpacing?: number;
}
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 = 48,
fontWeight = 700,
letterSpacing = 0,
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.5;
const width = textLength * charWidth + 40;
const height = fontSize + 40;
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 ${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}
textAnchor="middle"
dominantBaseline="central"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;