Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 12:05:59 +00:00
2 changed files with 38 additions and 42 deletions

View File

@@ -9,7 +9,7 @@ import TestimonialCardSixteen from '@/components/sections/testimonial/Testimonia
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { AlertTriangle, Award, Building2, CheckCircle, Clock, Eye, Gauge, Home, Lightbulb, Search, Shield, Star, Tool, Wrench, Zap } from 'lucide-react';
import { AlertTriangle, Award, Building2, CheckCircle, Clock, Eye, Gauge, Home, Lightbulb, Search, Shield, Star, Wrench, Zap, AlertCircle } from 'lucide-react';
export default function LandingPage() {
return (
@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="medium"
sizing="large"
background="grid"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="gradient"
secondaryButtonStyle="glass"
@@ -47,7 +47,7 @@ export default function LandingPage() {
description="Professional, reliable, and highly rated electrical services for homes and businesses. ⭐ 5.0 Google Rating | 100+ Customer Reviews | 24/7 Availability"
tag="Expert Electricians"
tagIcon={Zap}
background={{ variant: "grid" }}
background={{ variant: "glowing-orb" }}
buttons={[
{ text: "Call Now", href: "tel:+442080792944" },
{ text: "Request a Quote", href: "#contact" }
@@ -93,7 +93,7 @@ export default function LandingPage() {
title: "Electrical Repairs", description: "Professional diagnosis and repair of electrical faults, circuit issues, and defective wiring", bentoComponent: "icon-info-cards", items: [
{ icon: Lightbulb, label: "Faulty Lights", value: "Fixed" },
{ icon: Zap, label: "Circuit Faults", value: "Diagnosed" },
{ icon: Tool, label: "Expert Repair", value: "Reliable" }
{ icon: Wrench, label: "Expert Repair", value: "Reliable" }
]
},
{
@@ -120,7 +120,7 @@ export default function LandingPage() {
{
title: "Electrical Maintenance", description: "Regular maintenance services to ensure your electrical systems operate safely and efficiently", bentoComponent: "icon-info-cards", items: [
{ icon: Wrench, label: "Regular Check", value: "Scheduled" },
{ icon: AlertTriangle, label: "Issue Prevention", value: "Proactive" },
{ icon: AlertCircle, label: "Issue Prevention", value: "Proactive" },
{ icon: Award, label: "Longevity", value: "Extended" }
]
}

View File

@@ -1,51 +1,47 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
export interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text: string;
fontSize?: number;
fontWeight?: number | string;
fontFamily?: string;
fill?: string;
className?: string;
}
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 = 48,
fontWeight = 700,
fontFamily = 'system-ui, -apple-system, sans-serif',
fill = 'currentColor',
className = '',
...props
}) => {
const estimatedWidth = text.length * (fontSize as number) * 0.6;
const estimatedHeight = (fontSize as number) * 1.2;
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 ${estimatedWidth} ${estimatedHeight}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
{...props}
>
<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="central"
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;