Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="compact"
|
||||
sizing="large"
|
||||
background="noise"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="double-inset"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -44,17 +44,17 @@ export default function LandingPage() {
|
||||
description="Professional mechanical repairs, diagnostics, and auto body services you can rely on. Expert mechanics with honest pricing and fast turnaround times."
|
||||
tag="4.8★ Rated"
|
||||
tagIcon={Star}
|
||||
background={{ variant: "noise" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Call Now", href: "tel:0123274208" },
|
||||
{ text: "Book Service" }
|
||||
]}
|
||||
carouselItems={[
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/car-being-taking-care-workshop_23-2149580560.jpg?_wi=1", imageAlt: "Professional auto repair workshop" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/worker-follows-car-checklist-fixing-tires_482257-75661.jpg?_wi=1", imageAlt: "Mechanic performing vehicle engine diagnostics" },
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/car-being-taking-care-workshop_23-2149580560.jpg", imageAlt: "Professional auto repair workshop" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/worker-follows-car-checklist-fixing-tires_482257-75661.jpg", imageAlt: "Mechanic performing vehicle engine diagnostics" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/engineer-projects-car-engine-ar-hologram_482257-76523.jpg", imageAlt: "Professional mechanics team" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/female-mechanic-fixing-car-wheel-disc-brake_1170-1215.jpg", imageAlt: "Brake system repair service" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/car-being-taking-care-workshop_23-2149580560.jpg?_wi=2", imageAlt: "Clean workshop environment" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/car-being-taking-care-workshop_23-2149580560.jpg", imageAlt: "Clean workshop environment" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/mechanic-showing-customer-problem-with-car_1170-1413.jpg", imageAlt: "Modern service center" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
@@ -80,7 +80,7 @@ export default function LandingPage() {
|
||||
description="E & M Services provides comprehensive automotive solutions tailored to your vehicle's needs."
|
||||
tag="Expert Services"
|
||||
tagIcon={Wrench}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/worker-follows-car-checklist-fixing-tires_482257-75661.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/worker-follows-car-checklist-fixing-tires_482257-75661.jpg"
|
||||
imageAlt="Professional auto repair in progress"
|
||||
mediaAnimation="slide-up"
|
||||
accordionItems={[
|
||||
@@ -147,7 +147,7 @@ export default function LandingPage() {
|
||||
<ContactText
|
||||
text="Need your car fixed today? Contact E & M Services in Pretoria West for professional, affordable repairs. Call 012 327 4208 or visit us in person."
|
||||
animationType="entrance-slide"
|
||||
background={{ variant: "noise" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Call Now", href: "tel:0123274208" },
|
||||
{ text: "Get Directions", href: "#" }
|
||||
|
||||
@@ -1,51 +1,49 @@
|
||||
"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;
|
||||
textClassName?: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
letterSpacing?: 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 = '',
|
||||
textClassName = '',
|
||||
fontSize = 48,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
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 * 0.6} ${fontSize * 1.5}`}
|
||||
className={`inline-block ${className}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<text
|
||||
ref={textRef}
|
||||
x="0"
|
||||
y={verticalAlign === "center" ? "50%" : "0"}
|
||||
className="font-bold fill-current"
|
||||
y={fontSize}
|
||||
className={textClassName}
|
||||
style={{
|
||||
fontSize: "20px",
|
||||
letterSpacing: "-0.02em",
|
||||
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
|
||||
fontSize: `${fontSize}px`,
|
||||
fontFamily,
|
||||
fontWeight,
|
||||
fill,
|
||||
letterSpacing: `${letterSpacing}px`,
|
||||
dominantBaseline: 'hanging',
|
||||
}}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user