Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:10:37 +00:00
2 changed files with 28 additions and 49 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="small"
sizing="mediumLarge"
background="circleGradient"
background="aurora"
cardStyle="gradient-radial"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="solid"
@@ -48,8 +48,8 @@ export default function LandingPage() {
{ text: "Get a Quote", href: "contact" },
{ text: "Learn More", href: "about" }
]}
background={{ variant: "circleGradient" }}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-man-working-with-equipment_23-2148921407.jpg?_wi=1"
background={{ variant: "sparkles-gradient" }}
imageSrc="http://img.b2bpic.net/free-photo/full-shot-man-working-with-equipment_23-2148921407.jpg"
imageAlt="Modern air conditioning unit installation"
mediaAnimation="slide-up"
frameStyle="card"
@@ -64,7 +64,7 @@ export default function LandingPage() {
description="AirAix Cooling"
subdescription="Professional Air Conditioning Services"
icon={ThermometerSun}
imageSrc="http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17800.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17800.jpg"
imageAlt="Professional air conditioning maintenance service"
mediaAnimation="slide-up"
useInvertedBackground={false}
@@ -79,20 +79,16 @@ export default function LandingPage() {
tagIcon={Zap}
features={[
{
id: 1,
title: "Installation", description: "Expert installation of air conditioning systems for homes and businesses, ensuring optimal performance and energy efficiency.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-with-equipment_23-2148921407.jpg?_wi=2", imageAlt: "AC installation service"
id: "1", title: "Installation", description: "Expert installation of air conditioning systems for homes and businesses, ensuring optimal performance and energy efficiency.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-with-equipment_23-2148921407.jpg", imageAlt: "AC installation service"
},
{
id: 2,
title: "Maintenance", description: "Regular system servicing to keep your air conditioning running smoothly, preventing breakdowns and extending equipment life.", imageSrc: "http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17800.jpg?_wi=2", imageAlt: "AC maintenance service"
id: "2", title: "Maintenance", description: "Regular system servicing to keep your air conditioning running smoothly, preventing breakdowns and extending equipment life.", imageSrc: "http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17800.jpg", imageAlt: "AC maintenance service"
},
{
id: 3,
title: "Repair", description: "Fast, reliable repair services with quick response times. We diagnose and fix any cooling system issues promptly.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-with-equipment_23-2148921407.jpg?_wi=3", imageAlt: "AC repair service"
id: "3", title: "Repair", description: "Fast, reliable repair services with quick response times. We diagnose and fix any cooling system issues promptly.", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-with-equipment_23-2148921407.jpg", imageAlt: "AC repair service"
},
{
id: 4,
title: "Diagnosis", description: "Thorough fault diagnosis to identify problems with your system. We provide detailed reports and recommended solutions.", imageSrc: "http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17800.jpg?_wi=3", imageAlt: "AC system diagnosis"
id: "4", title: "Diagnosis", description: "Thorough fault diagnosis to identify problems with your system. We provide detailed reports and recommended solutions.", imageSrc: "http://img.b2bpic.net/free-photo/electrician-is-mounting-electric-sockets-white-wall-indoors_169016-17800.jpg", imageAlt: "AC system diagnosis"
}
]}
textboxLayout="default"
@@ -173,7 +169,7 @@ export default function LandingPage() {
tagIcon={MessageSquare}
title="Ready to stay cool?"
description="Contact AirAix Cooling today for a free quote or to schedule a service. Our friendly team is here to help keep your home or business comfortable."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/businesspeople-having-discussion-team-meeting-modern-office-interior_1163-4771.jpg"
imageAlt="Modern office workspace"

View File

@@ -1,51 +1,34 @@
"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;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'baseline';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
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 1000 200"
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className="font-bold text-4xl"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;