Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 08:45:52 +00:00
2 changed files with 33 additions and 44 deletions

View File

@@ -18,7 +18,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumSmall"
sizing="mediumLarge"
background="grid"
background="circleGradient"
cardStyle="layered-gradient"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="layered"
@@ -44,7 +44,7 @@ export default function LandingPage() {
description="Experience premium vehicle detailing with cutting-edge techniques and eco-friendly products. Transform your car into a pristine masterpiece."
tag="Premium Auto Care"
tagIcon={Sparkles}
background={{ variant: "grid" }}
background={{ variant: "plain" }}
mediaItems={[
{
imageSrc: "http://img.b2bpic.net/free-photo/vertical-shot-soap-black-shiny-modern-car-daytime_181624-22593.jpg", imageAlt: "Luxury car with showroom shine finish"
@@ -74,22 +74,19 @@ export default function LandingPage() {
useInvertedBackground={false}
plans={[
{
id: "basic", tag: "Basic Package", price: "$99", period: "/service", description: "Perfect for regular maintenance and light cleaning. Keeps your vehicle looking fresh.", button: { text: "Select Basic", href: "#booking" },
featuresTitle: "Included:", features: [
id: "basic", tag: "Basic Package", price: "$99", period: "/service", description: "Perfect for regular maintenance and light cleaning. Keeps your vehicle looking fresh.", button: { text: "Select Basic", href: "#booking" }, featuresTitle: "Included:", features: [
"Exterior wash and dry", "Wheel and tire cleaning", "Interior vacuum and wipe", "Free air freshener"
]
},
{
id: "gold", tag: "Gold Package", tagIcon: Crown,
price: "$249", period: "/service", description: "Enhanced detailing for a showroom-ready finish. Most popular choice for luxury vehicle owners.", button: { text: "Select Gold", href: "#booking" },
featuresTitle: "Included:", features: [
price: "$249", period: "/service", description: "Enhanced detailing for a showroom-ready finish. Most popular choice for luxury vehicle owners.", button: { text: "Select Gold", href: "#booking" }, featuresTitle: "Included:", features: [
"Premium exterior wash and dry", "Ceramic wheel coating", "Interior deep clean and sanitize", "Dashboard and leather conditioning", "Paint protection spray", "Premium air freshener"
]
},
{
id: "platinum", tag: "Platinum Package", tagIcon: Diamond,
price: "$499", period: "/service", description: "Ultimate luxury detailing experience. Comprehensive care for pristine, showroom-quality finish.", button: { text: "Select Platinum", href: "#booking" },
featuresTitle: "Included:", features: [
price: "$499", period: "/service", description: "Ultimate luxury detailing experience. Comprehensive care for pristine, showroom-quality finish.", button: { text: "Select Platinum", href: "#booking" }, featuresTitle: "Included:", features: [
"Complete exterior restoration", "Ceramic nano-coating application", "Professional interior detail", "Engine bay cleaning", "Leather treatment and protection", "Headlight restoration", "Window tint protection", "12-month protection warranty"
]
}

View File

@@ -1,51 +1,43 @@
"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;
fontFamily?: string;
fontWeight?: string | number;
fill?: string;
dominantBaseline?: 'auto' | 'middle' | 'hanging';
}
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 = 32,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 700,
fill = 'currentColor',
dominantBaseline = 'middle',
}) => {
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 * fontSize * 0.6} ${fontSize * 1.5}`}
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={fontSize * 0.3}
y={fontSize * 0.75}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
dominantBaseline={dominantBaseline}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;