diff --git a/src/app/page.tsx b/src/app/page.tsx index 2f5bf13..7fb62b7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..2fa0c1a 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +export const SvgTextLogo: React.FC = ({ + 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 ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file