Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 11:54:27 +00:00
2 changed files with 41 additions and 41 deletions

View File

@@ -97,7 +97,7 @@ export default function AudiClubPage() {
useInvertedBackground={false}
features={[
{
id: "01", title: "Exclusive Access", description: "VIP entry to premium automotive venues, private viewing areas, and exclusive manufacturer events.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/exclusive-vip-access-symbol-luxury-audi--1773229952782-c70d016a.png?_wi=1"
id: "01", title: "Exclusive Access", description: "VIP entry to premium automotive venues, private viewing areas, and exclusive manufacturer events.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/exclusive-vip-access-symbol-luxury-audi--1773229952782-c70d016a.png"
},
{
id: "02", title: "Track Days", description: "High-performance track experiences at professional racing circuits with professional instructors and safety training.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/high-performance-audi-vehicles-on-a-prof-1773229954905-4695a3f1.png"
@@ -106,7 +106,7 @@ export default function AudiClubPage() {
id: "03", title: "Networking", description: "Connect with fellow Audi enthusiasts, share experiences, and build lasting relationships in the automotive community.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/audi-club-members-networking-at-an-elega-1773229954751-df0840a0.png"
},
{
id: "04", title: "Technical Workshops", description: "Learn advanced maintenance, performance tuning, and technical knowledge from certified Audi specialists.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/exclusive-vip-access-symbol-luxury-audi--1773229952782-c70d016a.png?_wi=2"
id: "04", title: "Technical Workshops", description: "Learn advanced maintenance, performance tuning, and technical knowledge from certified Audi specialists.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/exclusive-vip-access-symbol-luxury-audi--1773229952782-c70d016a.png"
}
]}
gridVariant="bento-grid"
@@ -186,13 +186,13 @@ export default function AudiClubPage() {
carouselMode="buttons"
products={[
{
id: "1", name: "Audi R8 V10", price: "Performance Icon", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/stunning-collection-of-premium-audi-mode-1773229955427-d4ac8d24.png?_wi=1"
id: "1", name: "Audi R8 V10", price: "Performance Icon", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/stunning-collection-of-premium-audi-mode-1773229955427-d4ac8d24.png"
},
{
id: "2", name: "Audi RS6 Avant", price: "Ultimate Power", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/stunning-collection-of-premium-audi-mode-1773229955427-d4ac8d24.png?_wi=2"
id: "2", name: "Audi RS6 Avant", price: "Ultimate Power", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/stunning-collection-of-premium-audi-mode-1773229955427-d4ac8d24.png"
},
{
id: "3", name: "Audi A6 Sedan", price: "Luxury Elegance", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/stunning-collection-of-premium-audi-mode-1773229955427-d4ac8d24.png?_wi=3"
id: "3", name: "Audi A6 Sedan", price: "Luxury Elegance", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3A2kdHi1NSExmmN97qC0PBBxl6G/stunning-collection-of-premium-audi-mode-1773229955427-d4ac8d24.png"
}
]}
tagAnimation="slide-up"

View File

@@ -1,51 +1,51 @@
"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?: number | string;
letterSpacing?: number;
fill?: 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 = '',
fontSize = 48,
fontWeight = 700,
letterSpacing = 2,
fill = 'currentColor',
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = textLength * charWidth + (textLength - 1) * letterSpacing + 40;
const height = fontSize + 20;
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 ${width} ${height}`}
width={width}
height={height}
xmlns="http://www.w3.org/2000/svg"
className={className}
preserveAspectRatio="xMidYMid meet"
>
<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={fill}
fontFamily="inherit"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;