Merge version_1 into main #2
@@ -46,18 +46,18 @@ export default function LandingPage() {
|
||||
description="Emergency air conditioning and heating repair when you need it most. Fast response. Honest pricing. Local technicians."
|
||||
tag="Emergency Service Available"
|
||||
tagIcon={Zap}
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
buttons={[
|
||||
{ text: "Call Now (24/7 Service)", href: "#contact" },
|
||||
{ text: "Get Free Estimate", href: "#contact" }
|
||||
]}
|
||||
carouselItems={[
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg?_wi=1", imageAlt: "HVAC technician working on air conditioning unit" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/worker-repairing-water-heater_23-2149334225.jpg?_wi=1", imageAlt: "Professional AC repair service" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-mean-cleaning-air_23-2149482329.jpg?_wi=1", imageAlt: "Air conditioning installation" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/african-american-worker-sweeping-away-loose-debris-accumulated-around-air-conditioner-base-trained-engineer-cleaning-hvac-system-body-control-panel-with-dusting-brush-tool-remove-loose-dirt_482257-70162.jpg?_wi=1", imageAlt: "Heating system service" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/mechanic-examining-car_1170-1605.jpg?_wi=1", imageAlt: "HVAC maintenance service" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg?_wi=2", imageAlt: "Emergency HVAC technician" }
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg", imageAlt: "HVAC technician working on air conditioning unit" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/worker-repairing-water-heater_23-2149334225.jpg", imageAlt: "Professional AC repair service" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-mean-cleaning-air_23-2149482329.jpg", imageAlt: "Air conditioning installation" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/african-american-worker-sweeping-away-loose-debris-accumulated-around-air-conditioner-base-trained-engineer-cleaning-hvac-system-body-control-panel-with-dusting-brush-tool-remove-loose-dirt_482257-70162.jpg", imageAlt: "Heating system service" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/mechanic-examining-car_1170-1605.jpg", imageAlt: "HVAC maintenance service" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg", imageAlt: "Emergency HVAC technician" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
autoPlayInterval={4000}
|
||||
@@ -103,22 +103,22 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
features={[
|
||||
{
|
||||
id: "01", title: "AC Repair", description: "Fast diagnosis and repair for all major air conditioning systems. Same-day service available.", imageSrc: "http://img.b2bpic.net/free-photo/worker-repairing-water-heater_23-2149334225.jpg?_wi=2", imageAlt: "AC repair service"
|
||||
id: "01", title: "AC Repair", description: "Fast diagnosis and repair for all major air conditioning systems. Same-day service available.", imageSrc: "http://img.b2bpic.net/free-photo/worker-repairing-water-heater_23-2149334225.jpg", imageAlt: "AC repair service"
|
||||
},
|
||||
{
|
||||
id: "02", title: "AC Installation", description: "Energy-efficient AC units installed professionally by certified technicians.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-mean-cleaning-air_23-2149482329.jpg?_wi=2", imageAlt: "AC installation"
|
||||
id: "02", title: "AC Installation", description: "Energy-efficient AC units installed professionally by certified technicians.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-mean-cleaning-air_23-2149482329.jpg", imageAlt: "AC installation"
|
||||
},
|
||||
{
|
||||
id: "03", title: "Heating Repair", description: "Keep your home warm when temperatures drop. Furnace and heat pump repairs.", imageSrc: "http://img.b2bpic.net/free-photo/african-american-worker-sweeping-away-loose-debris-accumulated-around-air-conditioner-base-trained-engineer-cleaning-hvac-system-body-control-panel-with-dusting-brush-tool-remove-loose-dirt_482257-70162.jpg?_wi=2", imageAlt: "Heating service"
|
||||
id: "03", title: "Heating Repair", description: "Keep your home warm when temperatures drop. Furnace and heat pump repairs.", imageSrc: "http://img.b2bpic.net/free-photo/african-american-worker-sweeping-away-loose-debris-accumulated-around-air-conditioner-base-trained-engineer-cleaning-hvac-system-body-control-panel-with-dusting-brush-tool-remove-loose-dirt_482257-70162.jpg", imageAlt: "Heating service"
|
||||
},
|
||||
{
|
||||
id: "04", title: "System Replacement", description: "Upgrade outdated systems to modern, efficient units that save on energy costs.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-mean-cleaning-air_23-2149482329.jpg?_wi=3", imageAlt: "System replacement"
|
||||
id: "04", title: "System Replacement", description: "Upgrade outdated systems to modern, efficient units that save on energy costs.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-mean-cleaning-air_23-2149482329.jpg", imageAlt: "System replacement"
|
||||
},
|
||||
{
|
||||
id: "05", title: "Emergency HVAC", description: "Available nights, weekends, and holidays. We're here when you need us most.", imageSrc: "http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg?_wi=3", imageAlt: "Emergency service"
|
||||
id: "05", title: "Emergency HVAC", description: "Available nights, weekends, and holidays. We're here when you need us most.", imageSrc: "http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg", imageAlt: "Emergency service"
|
||||
},
|
||||
{
|
||||
id: "06", title: "Maintenance Plans", description: "Keep your system running smoothly year-round with our preventive maintenance packages.", imageSrc: "http://img.b2bpic.net/free-photo/mechanic-examining-car_1170-1605.jpg?_wi=2", imageAlt: "Maintenance service"
|
||||
id: "06", title: "Maintenance Plans", description: "Keep your system running smoothly year-round with our preventive maintenance packages.", imageSrc: "http://img.b2bpic.net/free-photo/mechanic-examining-car_1170-1605.jpg", imageAlt: "Maintenance service"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -207,7 +207,7 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg?_wi=4"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/modern-skyscrapers-business-district_23-2148836795.jpg"
|
||||
imageAlt="24-7 Emergency HVAC Service"
|
||||
buttonText="Request Service"
|
||||
inputs={[
|
||||
|
||||
@@ -1,51 +1,48 @@
|
||||
"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;
|
||||
fontWeight?: string | number;
|
||||
letterSpacing?: number;
|
||||
className?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'hanging' | 'middle' | 'central' | 'mathematical' | 'ideographic';
|
||||
}
|
||||
|
||||
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 = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 0,
|
||||
className = '',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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 60"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={`w-full h-auto ${className}`}
|
||||
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="100"
|
||||
y="30"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user