Merge version_1 into main #2
@@ -7,7 +7,7 @@ import SplitAbout from '@/components/sections/about/SplitAbout';
|
||||
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
|
||||
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
|
||||
import FooterSimple from '@/components/sections/footer/FooterSimple';
|
||||
import { Award, CheckCircle, Hammer, Headlight, Paintbrush2, Sparkles, Wrench, Zap, Heart, Shield } from 'lucide-react';
|
||||
import { Award, CheckCircle, Hammer, Paintbrush2, Sparkles, Wrench, Zap, Heart, Shield } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -49,7 +49,7 @@ export default function LandingPage() {
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/car-mechanic-polishing-car-before-painting_1303-28150.jpg", imageAlt: "Professional auto body shop interior"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/grayscale-shot-man-repairing-wheel_181624-28775.jpg?_wi=1", imageAlt: "Expert technician performing paint work"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/grayscale-shot-man-repairing-wheel_181624-28775.jpg", imageAlt: "Expert technician performing paint work"
|
||||
}
|
||||
]}
|
||||
rating={5}
|
||||
@@ -84,7 +84,7 @@ export default function LandingPage() {
|
||||
title: "Attention to Detail", description: "Beyond repair, we detail your vehicle so it comes back looking better than ever before.", icon: Sparkles
|
||||
}
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/grayscale-shot-man-repairing-wheel_181624-28775.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/grayscale-shot-man-repairing-wheel_181624-28775.jpg"
|
||||
imageAlt="Expert technician performing detailed auto body work"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
@@ -117,7 +117,7 @@ export default function LandingPage() {
|
||||
title: "Detailing", description: "Complete vehicle detailing to make your car look brand new when pickup day arrives."
|
||||
},
|
||||
{
|
||||
icon: Headlight,
|
||||
icon: Shield,
|
||||
title: "Headlight Installation", description: "Professional headlight and lighting system installation and repairs."
|
||||
},
|
||||
{
|
||||
@@ -136,10 +136,10 @@ export default function LandingPage() {
|
||||
<TestimonialCardTwelve
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "David Shields", imageSrc: "http://img.b2bpic.net/free-photo/closeup-happy-joyful-bearded-guy-posing-indoors_74855-2696.jpg?_wi=1", imageAlt: "David Shields"
|
||||
id: "1", name: "David Shields", imageSrc: "http://img.b2bpic.net/free-photo/closeup-happy-joyful-bearded-guy-posing-indoors_74855-2696.jpg", imageAlt: "David Shields"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Zoe Gaeta", imageSrc: "http://img.b2bpic.net/free-photo/pleased-young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-doing-peace-signs-isolated-white-background_141793-84094.jpg?_wi=1", imageAlt: "Zoe Gaeta"
|
||||
id: "2", name: "Zoe Gaeta", imageSrc: "http://img.b2bpic.net/free-photo/pleased-young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-doing-peace-signs-isolated-white-background_141793-84094.jpg", imageAlt: "Zoe Gaeta"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Charlie Elliott", imageSrc: "http://img.b2bpic.net/free-photo/portrait-cute-supportive-girl-showing-thumbs-up-smiling-proud-praising-you-showing-well-done-excellent-gesture-standing-satisfied-white-wall_176420-34127.jpg", imageAlt: "Charlie Elliott"
|
||||
@@ -148,10 +148,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "Christine Melgares", imageSrc: "http://img.b2bpic.net/free-photo/cheerful-thankful-young-woman-honored-embarrassed_1262-14837.jpg", imageAlt: "Christine Melgares"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Aaron Arslan", imageSrc: "http://img.b2bpic.net/free-photo/closeup-happy-joyful-bearded-guy-posing-indoors_74855-2696.jpg?_wi=2", imageAlt: "Aaron Arslan"
|
||||
id: "5", name: "Aaron Arslan", imageSrc: "http://img.b2bpic.net/free-photo/closeup-happy-joyful-bearded-guy-posing-indoors_74855-2696.jpg", imageAlt: "Aaron Arslan"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Mike Weiss", imageSrc: "http://img.b2bpic.net/free-photo/pleased-young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-doing-peace-signs-isolated-white-background_141793-84094.jpg?_wi=2", imageAlt: "Mike Weiss"
|
||||
id: "6", name: "Mike Weiss", imageSrc: "http://img.b2bpic.net/free-photo/pleased-young-bald-call-center-man-wearing-headset-sitting-desk-with-work-tools-doing-peace-signs-isolated-white-background_141793-84094.jpg", imageAlt: "Mike Weiss"
|
||||
}
|
||||
]}
|
||||
cardTitle="Over 100+ satisfied customers trust Classic Works Auto Body for expert repairs and exceptional service"
|
||||
|
||||
@@ -1,51 +1,47 @@
|
||||
"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 | string;
|
||||
height?: number | string;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'central' | 'ideographic' | 'mathematical';
|
||||
}
|
||||
|
||||
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 = 300,
|
||||
height = 100,
|
||||
fontSize = 40,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline={dominantBaseline}
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user