Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-10 21:40:55 +00:00
2 changed files with 48 additions and 49 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="largeSizeMediumTitles"
background="fluid"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="flat"
secondaryButtonStyle="glass"
@@ -49,8 +49,8 @@ export default function LandingPage() {
{ text: "Learn More", href: "#about" }
]}
buttonAnimation="slide-up"
background={{ variant: "fluid" }}
imageSrc="http://img.b2bpic.net/free-photo/modern-minivan-driving-winter-forest-road-daylight-family-car-highway_169016-71554.jpg?_wi=1"
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/modern-minivan-driving-winter-forest-road-daylight-family-car-highway_169016-71554.jpg"
imageAlt="Premium luxury car in motion"
mediaAnimation="opacity"
frameStyle="card"
@@ -65,13 +65,13 @@ export default function LandingPage() {
tag="Vehicles"
products={[
{
id: "1", name: "Compact City Cars", price: "From €35/day", imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-22346.jpg?_wi=1", imageAlt: "Compact city car"
id: "1", name: "Compact City Cars", price: "From €35/day", imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-22346.jpg", imageAlt: "Compact city car"
},
{
id: "2", name: "Business Sedans", price: "From €55/day", imageSrc: "http://img.b2bpic.net/free-photo/black-skirt-curly-haired-female-manager-stands-near-car-automobile-salon_146671-16737.jpg?_wi=1", imageAlt: "Premium business sedan"
id: "2", name: "Business Sedans", price: "From €55/day", imageSrc: "http://img.b2bpic.net/free-photo/black-skirt-curly-haired-female-manager-stands-near-car-automobile-salon_146671-16737.jpg", imageAlt: "Premium business sedan"
},
{
id: "3", name: "Luxury SUVs", price: "From €85/day", imageSrc: "http://img.b2bpic.net/free-photo/stunning-young-woman-wearing-dress-posing-front-her-car-outdoors-ownership-driver_158595-6719.jpg?_wi=1", imageAlt: "Modern luxury SUV"
id: "3", name: "Luxury SUVs", price: "From €85/day", imageSrc: "http://img.b2bpic.net/free-photo/stunning-young-woman-wearing-dress-posing-front-her-car-outdoors-ownership-driver_158595-6719.jpg", imageAlt: "Modern luxury SUV"
},
{
id: "4", name: "Spacious Vans", price: "From €75/day", imageSrc: "http://img.b2bpic.net/free-photo/handsome-business-man-working-computer-car_1303-16411.jpg", imageAlt: "Comfortable family van"
@@ -95,23 +95,23 @@ export default function LandingPage() {
features={[
{
id: "1", title: "Flexible Rental Duration", tags: ["Flexibility", "Convenience"],
imageSrc: "http://img.b2bpic.net/free-photo/modern-minivan-driving-winter-forest-road-daylight-family-car-highway_169016-71554.jpg?_wi=2", imageAlt: "Flexible rental options"
imageSrc: "http://img.b2bpic.net/free-photo/modern-minivan-driving-winter-forest-road-daylight-family-car-highway_169016-71554.jpg", imageAlt: "Flexible rental options"
},
{
id: "2", title: "Fair & Transparent Pricing", tags: ["Pricing", "Honest"],
imageSrc: "http://img.b2bpic.net/free-photo/black-skirt-curly-haired-female-manager-stands-near-car-automobile-salon_146671-16737.jpg?_wi=2", imageAlt: "Transparent pricing"
imageSrc: "http://img.b2bpic.net/free-photo/black-skirt-curly-haired-female-manager-stands-near-car-automobile-salon_146671-16737.jpg", imageAlt: "Transparent pricing"
},
{
id: "3", title: "Modern Vehicle Fleet", tags: ["Quality", "Premium"],
imageSrc: "http://img.b2bpic.net/free-photo/stunning-young-woman-wearing-dress-posing-front-her-car-outdoors-ownership-driver_158595-6719.jpg?_wi=2", imageAlt: "Modern vehicles"
imageSrc: "http://img.b2bpic.net/free-photo/stunning-young-woman-wearing-dress-posing-front-her-car-outdoors-ownership-driver_158595-6719.jpg", imageAlt: "Modern vehicles"
},
{
id: "4", title: "Fast & Easy Booking", tags: ["Simple", "Quick"],
imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-22346.jpg?_wi=2", imageAlt: "Easy booking process"
imageSrc: "http://img.b2bpic.net/free-photo/stylish-elegant-woman-car-salon_1157-22346.jpg", imageAlt: "Easy booking process"
},
{
id: "5", title: "Central Weimar Location", tags: ["Location", "Accessible"],
imageSrc: "http://img.b2bpic.net/free-photo/simple-comfortable-female-customer-modern-stylish-bearded-businessman-automobile-saloon_146671-16077.jpg?_wi=1", imageAlt: "Central location"
imageSrc: "http://img.b2bpic.net/free-photo/simple-comfortable-female-customer-modern-stylish-bearded-businessman-automobile-saloon_146671-16077.jpg", imageAlt: "Central location"
}
]}
animationType="slide-up"
@@ -130,7 +130,7 @@ export default function LandingPage() {
{ value: "20+", title: "Years of Service" },
{ value: "500+", title: "Satisfied Customers" }
]}
imageSrc="http://img.b2bpic.net/free-photo/simple-comfortable-female-customer-modern-stylish-bearded-businessman-automobile-saloon_146671-16077.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/simple-comfortable-female-customer-modern-stylish-bearded-businessman-automobile-saloon_146671-16077.jpg"
imageAlt="Avis rental office in Weimar"
mediaAnimation="opacity"
metricsAnimation="slide-up"
@@ -184,7 +184,7 @@ export default function LandingPage() {
]}
textarea={{ name: "message", placeholder: "Tell us about your rental needs and travel dates...", rows: 5, required: true }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/modern-minivan-driving-winter-forest-road-daylight-family-car-highway_169016-71554.jpg?_wi=3"
imageSrc="http://img.b2bpic.net/free-photo/modern-minivan-driving-winter-forest-road-daylight-family-car-highway_169016-71554.jpg"
imageAlt="Premium car ready for booking"
mediaAnimation="opacity"
mediaPosition="right"

View File

@@ -1,51 +1,50 @@
"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;
textClassName?: string;
fontSize?: number;
fontWeight?: number | string;
letterSpacing?: number;
}
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 = '',
textClassName = '',
fontSize = 48,
fontWeight = 700,
letterSpacing = 0,
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = textLength * charWidth + 40;
const height = fontSize + 40;
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}
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"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;