Merge version_1 into main #3
@@ -53,7 +53,7 @@ export default function LandingPage() {
|
||||
{ text: "Learn More", href: "about" }
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "plain" }}
|
||||
background={{ variant: "floatingGradient" }}
|
||||
leftCarouselItems={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/solution-top-view-man-plumber-overalls-fixing-breakdown-sink_259150-58267.jpg", imageAlt: "Dishwasher Repair"
|
||||
@@ -103,16 +103,20 @@ export default function LandingPage() {
|
||||
<FeatureCardEight
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "Quick Diagnostics", description: "Expert analysis and transparent pricing upfront. No hidden fees, guaranteed.", imageSrc: "http://img.b2bpic.net/free-photo/solution-top-view-man-plumber-overalls-fixing-breakdown-sink_259150-58267.jpg", imageAlt: "Dishwasher diagnostic"
|
||||
id: 1,
|
||||
title: "Quick Diagnostics", description: "Expert analysis and transparent pricing upfront. No hidden fees, guaranteed.", imageSrc: "http://img.b2bpic.net/free-photo/solution-top-view-man-plumber-overalls-fixing-breakdown-sink_259150-58267.jpg", imageAlt: "Dishwasher diagnostic"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Same-Day Service", description: "Available for emergency repairs. Most common issues resolved same day.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-woman-working_23-2148899726.jpg", imageAlt: "Refrigerator service"
|
||||
id: 2,
|
||||
title: "Same-Day Service", description: "Available for emergency repairs. Most common issues resolved same day.", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-woman-working_23-2148899726.jpg", imageAlt: "Refrigerator service"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Genuine Parts", description: "Using only authentic manufacturer parts with warranty protection on all repairs.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-repairman-with-stethoscope-standing-pointing-washing-machine-white-wall_140725-142245.jpg", imageAlt: "Washer and dryer service"
|
||||
id: 3,
|
||||
title: "Genuine Parts", description: "Using only authentic manufacturer parts with warranty protection on all repairs.", imageSrc: "http://img.b2bpic.net/free-photo/front-view-repairman-with-stethoscope-standing-pointing-washing-machine-white-wall_140725-142245.jpg", imageAlt: "Washer and dryer service"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Certified Technicians", description: "Licensed, insured, and trained on all major appliance brands and models.", imageSrc: "http://img.b2bpic.net/free-photo/casual-breakfast-adult-cheerful-beautiful_1303-815.jpg", imageAlt: "Microwave repair"
|
||||
id: 4,
|
||||
title: "Certified Technicians", description: "Licensed, insured, and trained on all major appliance brands and models.", imageSrc: "http://img.b2bpic.net/free-photo/casual-breakfast-adult-cheerful-beautiful_1303-815.jpg", imageAlt: "Microwave repair"
|
||||
}
|
||||
]}
|
||||
title="Complete Appliance Solutions"
|
||||
|
||||
@@ -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;
|
||||
width?: number;
|
||||
height?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
width = 200,
|
||||
height = 60,
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width={width}
|
||||
height={height}
|
||||
viewBox={`0 0 ${width} ${height}`}
|
||||
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={width / 2}
|
||||
y={height / 2}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
className="text-lg font-bold fill-current"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user