Merge version_1 into main #2
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="medium"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="inset"
|
||||
primaryButtonStyle="diagonal-gradient"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -49,18 +49,18 @@ export default function LandingPage() {
|
||||
tag="Emergency Plumber"
|
||||
tagIcon={Zap}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
buttons={[
|
||||
{ text: "Call Now", href: "tel:+61-2-XXXX-XXXX" },
|
||||
{ text: "Request Service", href: "#contact" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721546.jpg?_wi=1", imageAlt: "Emergency plumbing work in progress" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-looks-faucet-pipes-valve-pressure-meter_169016-15382.jpg?_wi=1", imageAlt: "Burst pipe repair emergency" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-with-coffee-seaking-phone_23-2147769508.jpg?_wi=1", imageAlt: "Drain cleaning service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-man-working-as-plumber_23-2150746308.jpg?_wi=1", imageAlt: "Hot water system repair" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/male-female-mechanics-working-shop-car_23-2150170024.jpg?_wi=1", imageAlt: "Gas fitting installation" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721546.jpg", imageAlt: "Emergency plumbing work in progress" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-looks-faucet-pipes-valve-pressure-meter_169016-15382.jpg", imageAlt: "Burst pipe repair emergency" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-with-coffee-seaking-phone_23-2147769508.jpg", imageAlt: "Drain cleaning service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-man-working-as-plumber_23-2150746308.jpg", imageAlt: "Hot water system repair" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/male-female-mechanics-working-shop-car_23-2150170024.jpg", imageAlt: "Gas fitting installation" }
|
||||
]}
|
||||
ariaLabel="Hero section with emergency plumbing showcase"
|
||||
/>
|
||||
@@ -69,10 +69,10 @@ export default function LandingPage() {
|
||||
<div id="services" data-section="services">
|
||||
<FeatureCardTwentyThree
|
||||
features={[
|
||||
{ id: "1", title: "Burst Pipes & Leaks", tags: ["Emergency", "Fast Response"], imageSrc: "http://img.b2bpic.net/free-photo/man-looks-faucet-pipes-valve-pressure-meter_169016-15382.jpg?_wi=2", imageAlt: "Burst pipe repair service" },
|
||||
{ id: "2", title: "Blocked Drains", tags: ["24/7 Available", "Cleared Fast"], imageSrc: "http://img.b2bpic.net/free-photo/man-with-coffee-seaking-phone_23-2147769508.jpg?_wi=2", imageAlt: "Drain clearing service" },
|
||||
{ id: "3", title: "Hot Water Failure", tags: ["Same-Day Fix", "All Systems"], imageSrc: "http://img.b2bpic.net/free-photo/side-view-man-working-as-plumber_23-2150746308.jpg?_wi=2", imageAlt: "Hot water system repair" },
|
||||
{ id: "4", title: "Gas Fitting", tags: ["Licensed", "Safety Certified"], imageSrc: "http://img.b2bpic.net/free-photo/male-female-mechanics-working-shop-car_23-2150170024.jpg?_wi=2", imageAlt: "Gas fitting service" },
|
||||
{ id: "1", title: "Burst Pipes & Leaks", tags: ["Emergency", "Fast Response"], imageSrc: "http://img.b2bpic.net/free-photo/man-looks-faucet-pipes-valve-pressure-meter_169016-15382.jpg", imageAlt: "Burst pipe repair service" },
|
||||
{ id: "2", title: "Blocked Drains", tags: ["24/7 Available", "Cleared Fast"], imageSrc: "http://img.b2bpic.net/free-photo/man-with-coffee-seaking-phone_23-2147769508.jpg", imageAlt: "Drain clearing service" },
|
||||
{ id: "3", title: "Hot Water Failure", tags: ["Same-Day Fix", "All Systems"], imageSrc: "http://img.b2bpic.net/free-photo/side-view-man-working-as-plumber_23-2150746308.jpg", imageAlt: "Hot water system repair" },
|
||||
{ id: "4", title: "Gas Fitting", tags: ["Licensed", "Safety Certified"], imageSrc: "http://img.b2bpic.net/free-photo/male-female-mechanics-working-shop-car_23-2150170024.jpg", imageAlt: "Gas fitting service" },
|
||||
{ id: "5", title: "Maintenance & Inspections", tags: ["Preventive", "Professional"], imageSrc: "http://img.b2bpic.net/free-photo/service-maintenance-worker-repairing_23-2149176722.jpg", imageAlt: "Plumbing maintenance service" }
|
||||
]}
|
||||
animationType="slide-up"
|
||||
@@ -95,7 +95,7 @@ export default function LandingPage() {
|
||||
description="Local Sydney Plumbers"
|
||||
subdescription="Serving Hills District & Surrounds"
|
||||
icon={Shield}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721546.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/plumbing-professional-doing-his-job_23-2150721546.jpg"
|
||||
imageAlt="Professional licensed plumber at work"
|
||||
mediaAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
|
||||
@@ -1,51 +1,38 @@
|
||||
"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;
|
||||
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 = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = '#000000',
|
||||
className = '',
|
||||
}) => {
|
||||
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 ${text.length * fontSize} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
style={{ width: '100%', height: 'auto' }}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
dominantBaseline="auto"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user