Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 03:44:16 +00:00
2 changed files with 27 additions and 41 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumSmall"
sizing="mediumLargeSizeMediumTitles"
background="blurBottom"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="double-inset"
secondaryButtonStyle="radial-glow"
@@ -42,7 +42,7 @@ export default function LandingPage() {
<HeroBillboardRotatedCarousel
title="Reliable Heating & Cooling When You Need It Most"
description="Fast, professional HVAC service from technicians who take pride in doing the job right the first time. Available for emergency calls and new installations."
background={{ variant: "blurBottom" }}
background={{ variant: "plain" }}
tag="Emergency Service Available"
tagIcon={Zap}
tagAnimation="slide-up"
@@ -59,7 +59,7 @@ export default function LandingPage() {
id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-woman-working-as-plumber_23-2150746386.jpg", imageAlt: "Emergency HVAC service technician ready to help"
},
{
id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/expert-repairman-doing-condenser-investigations-filter-replacements-necessary-fixes-prevent-major-breakdowns-proficient-worker-checking-up-hvac-system-writing-findings-clipboard_482257-65742.jpg?_wi=1", imageAlt: "Certified HVAC technician with expertise and experience"
id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/expert-repairman-doing-condenser-investigations-filter-replacements-necessary-fixes-prevent-major-breakdowns-proficient-worker-checking-up-hvac-system-writing-findings-clipboard_482257-65742.jpg", imageAlt: "Certified HVAC technician with expertise and experience"
},
{
id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/photovoltaics-smart-factory-team-leader-workers-analyzing-data_482257-126207.jpg", imageAlt: "Expert technician installing air conditioning unit"
@@ -86,7 +86,7 @@ export default function LandingPage() {
description="Elite HVAC Experts"
subdescription="Licensed, Insured & Certified Technicians"
icon={Shield}
imageSrc="http://img.b2bpic.net/free-photo/expert-repairman-doing-condenser-investigations-filter-replacements-necessary-fixes-prevent-major-breakdowns-proficient-worker-checking-up-hvac-system-writing-findings-clipboard_482257-65742.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/expert-repairman-doing-condenser-investigations-filter-replacements-necessary-fixes-prevent-major-breakdowns-proficient-worker-checking-up-hvac-system-writing-findings-clipboard_482257-65742.jpg"
imageAlt="Certified HVAC technicians with years of expertise"
mediaAnimation="slide-up"
useInvertedBackground={false}
@@ -218,7 +218,7 @@ export default function LandingPage() {
{ text: "Schedule Service Now", href: "#" },
{ text: "Call: (555) 123-4567", href: "tel:+15551234567" }
]}
background={{ variant: "blurBottom" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,37 @@
"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;
textClassName?: string;
svgClassName?: string;
}
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 = '',
textClassName = '',
svgClassName = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={`inline-block ${svgClassName}`}
viewBox={`0 0 ${text.length * 60} 100`}
width="200"
height="50"
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%"
dominantBaseline="middle"
textAnchor="middle"
className={`font-bold text-2xl fill-current ${textClassName}`}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;