Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #2.
This commit is contained in:
@@ -21,7 +21,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="mediumLarge"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="outline"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -49,14 +49,14 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
buttons={[{ text: "Explore Vehicles", href: "#featured-vehicles" }]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
carouselItems={[
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg?_wi=1", imageAlt: "Porsche 911 GT3 RS" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/happy-customers-car-dealership_23-2149106169.jpg?_wi=1", imageAlt: "Lamborghini Huracán" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-choosing-car-car-showroom_1303-22808.jpg?_wi=1", imageAlt: "Mercedes AMG GT-R" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-car_23-2147732016.jpg?_wi=1", imageAlt: "Aston Martin Vantage" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/car-headlight-buildings-reflecting-headlight-car_181624-44601.jpg?_wi=1", imageAlt: "McLaren 720S" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/jeep-wrangler-sunset-adventure_23-2151948126.jpg?_wi=1", imageAlt: "Mercedes-AMG G63" }
|
||||
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg", imageAlt: "Porsche 911 GT3 RS" },
|
||||
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/happy-customers-car-dealership_23-2149106169.jpg", imageAlt: "Lamborghini Huracán" },
|
||||
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-choosing-car-car-showroom_1303-22808.jpg", imageAlt: "Mercedes AMG GT-R" },
|
||||
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-car_23-2147732016.jpg", imageAlt: "Aston Martin Vantage" },
|
||||
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/car-headlight-buildings-reflecting-headlight-car_181624-44601.jpg", imageAlt: "McLaren 720S" },
|
||||
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/jeep-wrangler-sunset-adventure_23-2151948126.jpg", imageAlt: "Mercedes-AMG G63" }
|
||||
]}
|
||||
autoPlay={true}
|
||||
autoPlayInterval={4000}
|
||||
@@ -82,12 +82,12 @@ export default function LandingPage() {
|
||||
tag="Inventory"
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{ id: "1", name: "Porsche 911 GT3 RS", price: "$241,350", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg?_wi=2", imageAlt: "Porsche 911 GT3 RS luxury sports car" },
|
||||
{ id: "2", name: "Lamborghini Huracán", price: "$265,500", imageSrc: "http://img.b2bpic.net/free-photo/happy-customers-car-dealership_23-2149106169.jpg?_wi=2", imageAlt: "Lamborghini Huracán high performance supercar" },
|
||||
{ id: "3", name: "Mercedes AMG GT-R", price: "$165,000", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-choosing-car-car-showroom_1303-22808.jpg?_wi=2", imageAlt: "Mercedes AMG GT-R luxury vehicle" },
|
||||
{ id: "4", name: "Aston Martin Vantage", price: "$145,900", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-car_23-2147732016.jpg?_wi=2", imageAlt: "Aston Martin Vantage premium sports car" },
|
||||
{ id: "5", name: "McLaren 720S", price: "$299,000", imageSrc: "http://img.b2bpic.net/free-photo/car-headlight-buildings-reflecting-headlight-car_181624-44601.jpg?_wi=2", imageAlt: "McLaren 720S high-end supercar" },
|
||||
{ id: "6", name: "Mercedes-AMG G63", price: "$179,000", imageSrc: "http://img.b2bpic.net/free-photo/jeep-wrangler-sunset-adventure_23-2151948126.jpg?_wi=2", imageAlt: "Mercedes-AMG G63 luxury SUV" }
|
||||
{ id: "1", name: "Porsche 911 GT3 RS", price: "$241,350", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg", imageAlt: "Porsche 911 GT3 RS luxury sports car" },
|
||||
{ id: "2", name: "Lamborghini Huracán", price: "$265,500", imageSrc: "http://img.b2bpic.net/free-photo/happy-customers-car-dealership_23-2149106169.jpg", imageAlt: "Lamborghini Huracán high performance supercar" },
|
||||
{ id: "3", name: "Mercedes AMG GT-R", price: "$165,000", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-choosing-car-car-showroom_1303-22808.jpg", imageAlt: "Mercedes AMG GT-R luxury vehicle" },
|
||||
{ id: "4", name: "Aston Martin Vantage", price: "$145,900", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-car_23-2147732016.jpg", imageAlt: "Aston Martin Vantage premium sports car" },
|
||||
{ id: "5", name: "McLaren 720S", price: "$299,000", imageSrc: "http://img.b2bpic.net/free-photo/car-headlight-buildings-reflecting-headlight-car_181624-44601.jpg", imageAlt: "McLaren 720S high-end supercar" },
|
||||
{ id: "6", name: "Mercedes-AMG G63", price: "$179,000", imageSrc: "http://img.b2bpic.net/free-photo/jeep-wrangler-sunset-adventure_23-2151948126.jpg", imageAlt: "Mercedes-AMG G63 luxury SUV" }
|
||||
]}
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
animationType="slide-up"
|
||||
@@ -123,7 +123,7 @@ export default function LandingPage() {
|
||||
reverse: true
|
||||
},
|
||||
{
|
||||
id: "3", title: "Modern Leasing Options", description: "Drive the newest cars with flexible, convenient leasing programs.", media: { imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg?_wi=3" },
|
||||
id: "3", title: "Modern Leasing Options", description: "Drive the newest cars with flexible, convenient leasing programs.", media: { imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg" },
|
||||
items: [
|
||||
{ icon: TrendingUp, text: "Latest models available" },
|
||||
{ icon: Gauge, text: "Flexible terms" }
|
||||
@@ -182,7 +182,7 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
title="Get expert advice and explore our collection"
|
||||
description="Visit our Frankfurt showroom to find the car that fits your lifestyle perfectly. Our team is ready to guide you through models, financing options, and exclusive offers."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
useInvertedBackground={true}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/mother-with-daughter-talking-sales-person-car-showroom_1303-15185.jpg"
|
||||
mediaAnimation="slide-up"
|
||||
@@ -221,16 +221,16 @@ export default function LandingPage() {
|
||||
useInvertedBackground={true}
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Leon Schneider, Lamborghini Huracán Owner", date: "Date: October 2024", title: "Exceptional professionalism and genuine care", quote: "Exceptional professionalism and genuine care throughout the entire process. The AutoHaus team made purchasing my car effortless, enjoyable, and truly aligned with my expectations.", tag: "Premium Experience", avatarSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-isolated-dark-background_613910-17869.jpg", avatarAlt: "Leon Schneider", imageSrc: "http://img.b2bpic.net/free-photo/happy-customers-car-dealership_23-2149106169.jpg?_wi=3"
|
||||
id: "1", name: "Leon Schneider, Lamborghini Huracán Owner", date: "Date: October 2024", title: "Exceptional professionalism and genuine care", quote: "Exceptional professionalism and genuine care throughout the entire process. The AutoHaus team made purchasing my car effortless, enjoyable, and truly aligned with my expectations.", tag: "Premium Experience", avatarSrc: "http://img.b2bpic.net/free-photo/confident-african-american-businessman-black-classic-jacket-isolated-dark-background_613910-17869.jpg", avatarAlt: "Leon Schneider", imageSrc: "http://img.b2bpic.net/free-photo/happy-customers-car-dealership_23-2149106169.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Markus Weber, Porsche 911 Owner", date: "Date: September 2024", title: "Seamless buying experience", quote: "Every step with AutoHaus was seamless. Their expertise, precision, and friendly approach made buying my new Porsche pleasant and stress-free.", tag: "Smooth Process", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-outdoors-successful-business-person_23-2148763862.jpg", avatarAlt: "Markus Weber", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg?_wi=4"
|
||||
id: "2", name: "Markus Weber, Porsche 911 Owner", date: "Date: September 2024", title: "Seamless buying experience", quote: "Every step with AutoHaus was seamless. Their expertise, precision, and friendly approach made buying my new Porsche pleasant and stress-free.", tag: "Smooth Process", avatarSrc: "http://img.b2bpic.net/free-photo/portrait-outdoors-successful-business-person_23-2148763862.jpg", avatarAlt: "Markus Weber", imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-left-headlight-white-sports-car_181624-12947.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Sarah Mueller, Mercedes-AMG Owner", date: "Date: August 2024", title: "Professional expertise and transparency", quote: "The team at AutoHaus demonstrated exceptional knowledge and maintained complete transparency throughout my purchase. Highly recommended for luxury automotive buyers.", tag: "Trusted Partner", avatarSrc: "http://img.b2bpic.net/free-photo/man-middle-age-serious_150588-83.jpg", avatarAlt: "Sarah Mueller", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-choosing-car-car-showroom_1303-22808.jpg?_wi=3"
|
||||
id: "3", name: "Sarah Mueller, Mercedes-AMG Owner", date: "Date: August 2024", title: "Professional expertise and transparency", quote: "The team at AutoHaus demonstrated exceptional knowledge and maintained complete transparency throughout my purchase. Highly recommended for luxury automotive buyers.", tag: "Trusted Partner", avatarSrc: "http://img.b2bpic.net/free-photo/man-middle-age-serious_150588-83.jpg", avatarAlt: "Sarah Mueller", imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-woman-choosing-car-car-showroom_1303-22808.jpg"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Klaus Fischer, Aston Martin Owner", date: "Date: July 2024", title: "Unmatched service quality", quote: "AutoHaus sets the standard for luxury automotive dealerships. Their personalized approach and attention to detail made the entire experience truly exceptional.", tag: "5-Star Service", avatarSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1662.jpg", avatarAlt: "Klaus Fischer", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-car_23-2147732016.jpg?_wi=3"
|
||||
id: "4", name: "Klaus Fischer, Aston Martin Owner", date: "Date: July 2024", title: "Unmatched service quality", quote: "AutoHaus sets the standard for luxury automotive dealerships. Their personalized approach and attention to detail made the entire experience truly exceptional.", tag: "5-Star Service", avatarSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1662.jpg", avatarAlt: "Klaus Fischer", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-car_23-2147732016.jpg"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
"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;
|
||||
fill?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'baseline' | 'central' | 'ideographic' | 'mathematical' | 'alphabetic';
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'start',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 200 60"
|
||||
className={className}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
aria-label={text}
|
||||
>
|
||||
<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%"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
className="font-sans"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user