Merge version_1 into main #2
@@ -49,10 +49,10 @@ export default function LandingPage() {
|
||||
{ text: "View Services", href: "services" }
|
||||
]}
|
||||
mediaItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/processing-workpiece_1098-12756.jpg?_wi=1", imageAlt: "Smartphone repair service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-repairing-computer-chips_23-2150880931.jpg?_wi=1", imageAlt: "Laptop repair workstation" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-uses-vacuum-plug-remove-screen-from-broken-phone-his-toolkit-with-special-tools-near_346278-1191.jpg?_wi=1", imageAlt: "Tablet screen replacement" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-with-hard-disk_1187-937.jpg?_wi=1", imageAlt: "Gaming console repair" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/processing-workpiece_1098-12756.jpg", imageAlt: "Smartphone repair service" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-repairing-computer-chips_23-2150880931.jpg", imageAlt: "Laptop repair workstation" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-uses-vacuum-plug-remove-screen-from-broken-phone-his-toolkit-with-special-tools-near_346278-1191.jpg", imageAlt: "Tablet screen replacement" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/man-with-hard-disk_1187-937.jpg", imageAlt: "Gaming console repair" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/male-technician-inserting-chip-computer-motherboard_23-2147923526.jpg", imageAlt: "Professional technician working" }
|
||||
]}
|
||||
/>
|
||||
@@ -81,18 +81,18 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Smartphone Repairs", description: "Screen replacements, battery repairs, charging port fixes, and water damage restoration for all major brands including iPhone and Android devices.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/processing-workpiece_1098-12756.jpg?_wi=2", imageAlt: "Smartphone repair" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-repairing-computer-chips_23-2150880931.jpg?_wi=2", imageAlt: "Repair workbench" }
|
||||
title: "Smartphone Repairs", description: "Screen replacements, battery repairs, charging port fixes, and water damage restoration for all major brands including iPhone and Android devices.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/processing-workpiece_1098-12756.jpg", imageAlt: "Smartphone repair" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-repairing-computer-chips_23-2150880931.jpg", imageAlt: "Repair workbench" }
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Laptop & Computer Service", description: "Hard drive replacement, screen repairs, keyboard fixes, motherboard diagnostics, and performance upgrades for all laptop and desktop models.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-repairing-computer-chips_23-2150880931.jpg?_wi=3", imageAlt: "Laptop repair" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/man-uses-vacuum-plug-remove-screen-from-broken-phone-his-toolkit-with-special-tools-near_346278-1191.jpg?_wi=2", imageAlt: "Computer service" }
|
||||
title: "Laptop & Computer Service", description: "Hard drive replacement, screen repairs, keyboard fixes, motherboard diagnostics, and performance upgrades for all laptop and desktop models.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-repairing-computer-chips_23-2150880931.jpg", imageAlt: "Laptop repair" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/man-uses-vacuum-plug-remove-screen-from-broken-phone-his-toolkit-with-special-tools-near_346278-1191.jpg", imageAlt: "Computer service" }
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Tablet & Gaming Device Repair", description: "Complete tablet screen replacement, gaming console repairs, controller fixes, and software troubleshooting for PlayStation, Xbox, and Nintendo.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/man-uses-vacuum-plug-remove-screen-from-broken-phone-his-toolkit-with-special-tools-near_346278-1191.jpg?_wi=3", imageAlt: "Tablet repair" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/man-with-hard-disk_1187-937.jpg?_wi=2", imageAlt: "Gaming device repair" }
|
||||
title: "Tablet & Gaming Device Repair", description: "Complete tablet screen replacement, gaming console repairs, controller fixes, and software troubleshooting for PlayStation, Xbox, and Nintendo.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/man-uses-vacuum-plug-remove-screen-from-broken-phone-his-toolkit-with-special-tools-near_346278-1191.jpg", imageAlt: "Tablet repair" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/man-with-hard-disk_1187-937.jpg", imageAlt: "Gaming device repair" }
|
||||
}
|
||||
]}
|
||||
showStepNumbers={true}
|
||||
|
||||
@@ -1,51 +1,46 @@
|
||||
"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);
|
||||
|
||||
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"
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="0%" stopColor="#3b82f6" />
|
||||
<stop offset="100%" stopColor="#8b5cf6" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<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="middle"
|
||||
fontSize="32"
|
||||
fontWeight="bold"
|
||||
fill="url(#textGradient)"
|
||||
fontFamily="Arial, sans-serif"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user