diff --git a/src/app/page.tsx b/src/app/page.tsx index 2425669..5a2366a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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" }} /> @@ -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() { ); -} \ No newline at end of file +} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..3602fc3 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + 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 ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;