Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 10:15:00 +00:00
2 changed files with 21 additions and 43 deletions

View File

@@ -52,7 +52,7 @@ export default function LandingPage() {
{ text: "Explore Fleet", href: "#fleet" }
]}
layoutOrder="default"
imageSrc="http://img.b2bpic.net/free-photo/vertical-photo-modern-stylish-bearded-businessman-automobile-saloon_146671-16004.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/vertical-photo-modern-stylish-bearded-businessman-automobile-saloon_146671-16004.jpg"
imageAlt="Luxury car showcase"
mediaAnimation="slide-up"
frameStyle="card"
@@ -75,10 +75,10 @@ export default function LandingPage() {
id: "economy-1", name: "Economy & Compact Cars", price: "From $35/day", imageSrc: "http://img.b2bpic.net/free-photo/woman-enjoying-her-financially-independence-while-buying-car_23-2149434357.jpg", imageAlt: "Economy rental cars", initialQuantity: 1
},
{
id: "suv-1", name: "Premium SUVs", price: "From $75/day", imageSrc: "http://img.b2bpic.net/free-photo/two-asian-brothers-man-wear-all-black-posed-near-suv-car_627829-3693.jpg?_wi=1", imageAlt: "Luxury SUV vehicles", initialQuantity: 1
id: "suv-1", name: "Premium SUVs", price: "From $75/day", imageSrc: "http://img.b2bpic.net/free-photo/two-asian-brothers-man-wear-all-black-posed-near-suv-car_627829-3693.jpg", imageAlt: "Luxury SUV vehicles", initialQuantity: 1
},
{
id: "executive-1", name: "Executive Sedans", price: "From $95/day", imageSrc: "http://img.b2bpic.net/free-photo/handsome-bearded-smiling-top-manager-black-suit-working-his-laptop-backseat-car_496169-590.jpg?_wi=1", imageAlt: "Executive luxury cars", initialQuantity: 1
id: "executive-1", name: "Executive Sedans", price: "From $95/day", imageSrc: "http://img.b2bpic.net/free-photo/handsome-bearded-smiling-top-manager-black-suit-working-his-laptop-backseat-car_496169-590.jpg", imageAlt: "Executive luxury cars", initialQuantity: 1
}
]}
/>
@@ -93,13 +93,13 @@ export default function LandingPage() {
useInvertedBackground={true}
features={[
{
id: "top-class", title: "Top Class Vehicles", description: "Every vehicle in our fleet is meticulously maintained and regularly serviced to ensure peak performance and elegance.", tag: "Quality", imageSrc: "http://img.b2bpic.net/free-photo/handsome-bearded-smiling-top-manager-black-suit-working-his-laptop-backseat-car_496169-590.jpg?_wi=2"
id: "top-class", title: "Top Class Vehicles", description: "Every vehicle in our fleet is meticulously maintained and regularly serviced to ensure peak performance and elegance.", tag: "Quality", imageSrc: "http://img.b2bpic.net/free-photo/handsome-bearded-smiling-top-manager-black-suit-working-his-laptop-backseat-car_496169-590.jpg"
},
{
id: "service", title: "Exceptional Service", description: "Our dedicated team provides 24/7 customer support with personalized attention to your rental needs.", tag: "Support", imageSrc: "http://img.b2bpic.net/free-photo/vertical-photo-modern-stylish-bearded-businessman-automobile-saloon_146671-16004.jpg?_wi=2"
id: "service", title: "Exceptional Service", description: "Our dedicated team provides 24/7 customer support with personalized attention to your rental needs.", tag: "Support", imageSrc: "http://img.b2bpic.net/free-photo/vertical-photo-modern-stylish-bearded-businessman-automobile-saloon_146671-16004.jpg"
},
{
id: "reliability", title: "Trusted & Reliable", description: "Years of excellence serving professionals and executives. Thousands of satisfied customers trust us for their transportation needs.", tag: "Trusted", imageSrc: "http://img.b2bpic.net/free-photo/two-asian-brothers-man-wear-all-black-posed-near-suv-car_627829-3693.jpg?_wi=2"
id: "reliability", title: "Trusted & Reliable", description: "Years of excellence serving professionals and executives. Thousands of satisfied customers trust us for their transportation needs.", tag: "Trusted", imageSrc: "http://img.b2bpic.net/free-photo/two-asian-brothers-man-wear-all-black-posed-near-suv-car_627829-3693.jpg"
}
]}
/>
@@ -109,6 +109,7 @@ export default function LandingPage() {
<AboutMetric
title="Comprehensive Rental Services Designed for Your Lifestyle"
useInvertedBackground={false}
metricsAnimation="slide-up"
metrics={[
{ icon: Calendar, label: "Daily Rentals", value: "Flexible" },
{ icon: Plane, label: "Airport Pickups", value: "24/7" },

View File

@@ -1,51 +1,28 @@
"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;
}
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 = '' }) => {
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 * 60} 100`}
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="middle"
className="text-4xl font-bold fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;