Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 16:55:01 +00:00
2 changed files with 32 additions and 38 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSmall"
background="noise"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="glass"
@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroBillboard
title="Fast & Reliable AC Repair, Installation & Maintenance"
description="Expert HVAC technicians serving all of Kuwait with emergency repairs, professional installations, and preventive maintenance. 5-star rated with 93 customer reviews—trust the professionals."
background={{ variant: "noise" }}
background={{ variant: "sparkles-gradient" }}
tag="Expert HVAC Service"
tagIcon={Zap}
tagAnimation="slide-up"
@@ -72,6 +72,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/technician-sweeping-debris-hvac-unit_482257-92789.jpg"
imageAlt="Experienced HVAC team with professional expertise"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,44 @@
"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?: number | string;
fontFamily?: string;
fill?: string;
dominantBaseline?: 'middle' | 'central' | 'auto' | 'text-top' | 'text-bottom' | 'ideographic' | 'mathematical' | 'hanging';
}
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 = '',
fontSize = 24,
fontWeight = 700,
fontFamily = 'system-ui, -apple-system, sans-serif',
fill = 'currentColor',
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"
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="100"
y="30"
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
textAnchor="middle"
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;