Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:12:04 +00:00
2 changed files with 43 additions and 47 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="small"
sizing="largeSizeMediumTitles"
background="grid"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
@@ -48,18 +48,18 @@ export default function LandingPage() {
tag="Professional Service"
tagIcon={Wrench}
tagAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "glowing-orb" }}
leftCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanics-repairing-car-workshop_329181-11835.jpg?_wi=1", imageAlt: "Expert mechanic performing engine maintenance" },
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanics-repairing-car-workshop_329181-11835.jpg", imageAlt: "Expert mechanic performing engine maintenance" },
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-arrangement-with-tools_23-2148932612.jpg", imageAlt: "Professional engine diagnostic service" },
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanics-repairing-car-workshop_329181-11837.jpg", imageAlt: "Transmission system maintenance" },
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanics-repairing-car-workshop_329181-11835.jpg?_wi=2", imageAlt: "Quality automotive repair work" }
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanics-repairing-car-workshop_329181-11835.jpg", imageAlt: "Quality automotive repair work" }
]}
rightCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanic-explaining-quotation-customer_1170-1554.jpg?_wi=1", imageAlt: "Precision brake system inspection" },
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanic-explaining-quotation-customer_1170-1554.jpg", imageAlt: "Precision brake system inspection" },
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanic-fixing-car-brake_1170-1663.jpg", imageAlt: "Professional brake service" },
{ imageSrc: "http://img.b2bpic.net/free-photo/young-mechanic-work-clothes-yellow-hardhat-using-wrench-changing-car-wheel-outdoor_574295-2003.jpg", imageAlt: "Tire alignment and maintenance" },
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanic-explaining-quotation-customer_1170-1554.jpg?_wi=2", imageAlt: "Vehicle diagnostic service" }
{ imageSrc: "http://img.b2bpic.net/free-photo/mechanic-explaining-quotation-customer_1170-1554.jpg", imageAlt: "Vehicle diagnostic service" }
]}
carouselPosition="right"
buttons={[
@@ -136,12 +136,12 @@ export default function LandingPage() {
tagIcon={Star}
tagAnimation="slide-up"
testimonials={[
{ id: "1", name: "Michael Johnson", handle: "Regular Customer", testimonial: "One Stop Autos fixed my transmission issue in one day. Professional service and honest pricing. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-taking-selfie-photo-winking_1262-18343.jpg?_wi=1", imageAlt: "Michael Johnson" },
{ id: "2", name: "Sarah Martinez", handle: "Fleet Manager", testimonial: "We take all our company vehicles here. Reliable, fast, and the team knows what they're doing. Five stars!", imageSrc: "http://img.b2bpic.net/free-photo/man-mechanic-woman-customer-discussing-repairs-done-her-vehicle_146671-14209.jpg?_wi=1", imageAlt: "Sarah Martinez" },
{ id: "1", name: "Michael Johnson", handle: "Regular Customer", testimonial: "One Stop Autos fixed my transmission issue in one day. Professional service and honest pricing. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-taking-selfie-photo-winking_1262-18343.jpg", imageAlt: "Michael Johnson" },
{ id: "2", name: "Sarah Martinez", handle: "Fleet Manager", testimonial: "We take all our company vehicles here. Reliable, fast, and the team knows what they're doing. Five stars!", imageSrc: "http://img.b2bpic.net/free-photo/man-mechanic-woman-customer-discussing-repairs-done-her-vehicle_146671-14209.jpg", imageAlt: "Sarah Martinez" },
{ id: "3", name: "David Chen", handle: "Business Owner", testimonial: "Best mechanic shop in town. They saved me thousands by diagnosing the real problem instead of guessing.", imageSrc: "http://img.b2bpic.net/free-photo/young-worried-businessman-talking-with-african-american-auto-mechanic-about-costs-car-reparation-auto-repair-shop_637285-4251.jpg", imageAlt: "David Chen" },
{ id: "4", name: "Jennifer Lopez", handle: "Returning Customer", testimonial: "Been going to One Stop for 5 years. Never disappointed. Great customer service and quality work every time.", imageSrc: "http://img.b2bpic.net/free-photo/happy-couple-car-showroom-dealership_23-2149117172.jpg", imageAlt: "Jennifer Lopez" },
{ id: "5", name: "Robert Taylor", handle: "Fleet Operator", testimonial: "Fast turnaround, competitive pricing, and they stand behind their work. Exactly what a business needs.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-taking-selfie-photo-winking_1262-18343.jpg?_wi=2", imageAlt: "Robert Taylor" },
{ id: "6", name: "Amanda White", handle: "Loyal Customer", testimonial: "The team took time to explain what was wrong and what needed to be done. Transparency and professionalism.", imageSrc: "http://img.b2bpic.net/free-photo/man-mechanic-woman-customer-discussing-repairs-done-her-vehicle_146671-14209.jpg?_wi=2", imageAlt: "Amanda White" }
{ id: "5", name: "Robert Taylor", handle: "Fleet Operator", testimonial: "Fast turnaround, competitive pricing, and they stand behind their work. Exactly what a business needs.", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-taking-selfie-photo-winking_1262-18343.jpg", imageAlt: "Robert Taylor" },
{ id: "6", name: "Amanda White", handle: "Loyal Customer", testimonial: "The team took time to explain what was wrong and what needed to be done. Transparency and professionalism.", imageSrc: "http://img.b2bpic.net/free-photo/man-mechanic-woman-customer-discussing-repairs-done-her-vehicle_146671-14209.jpg", imageAlt: "Amanda White" }
]}
animationType="slide-up"
textboxLayout="default"

View File

@@ -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;
fontSize?: number;
fontWeight?: string | number;
letterSpacing?: string | 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 = '',
fontSize = 48,
fontWeight = 'bold',
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 1200 200"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style={{ stopColor: '#ffffff', stopOpacity: 1 }} />
<stop offset="100%" style={{ stopColor: '#e0e0e0', stopOpacity: 1 }} />
</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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="url(#textGradient)"
style={{ fontFamily: 'system-ui, -apple-system, sans-serif' }}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;