Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 02:51:11 +00:00
2 changed files with 46 additions and 47 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="mediumSmall"
sizing="mediumLarge"
background="noise"
background="circleGradient"
cardStyle="subtle-shadow"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="radial-glow"
@@ -48,13 +48,13 @@ export default function LandingPage() {
tag="All About 2 Wheels"
tagIcon={Bike}
tagAnimation="slide-up"
background={{ variant: "noise" }}
background={{ variant: "animated-grid" }}
buttons={[
{ text: "Book Bike Wash", href: "booking" },
{ text: "View Motorcycles", href: "products" }
]}
buttonAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-photo/view-motorcycle-garage-warehouse_23-2150704673.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/view-motorcycle-garage-warehouse_23-2150704673.jpg"
imageAlt="Premium motorcycle in showroom"
ariaLabel="Garasi Roda Dua hero section showcasing premium bike wash and big bike dealer services"
/>
@@ -69,7 +69,7 @@ export default function LandingPage() {
description="Complete Motorcycle Services"
subdescription="We provide high-standard motorcycle care services to keep your bike looking perfect and performing at its best"
icon={Wrench}
imageSrc="http://img.b2bpic.net/free-photo/front-view-man-with-cool-motorcycle_23-2150849577.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/front-view-man-with-cool-motorcycle_23-2150849577.jpg"
imageAlt="Garasi Roda Dua showroom"
mediaAnimation="slide-up"
useInvertedBackground={false}
@@ -95,19 +95,19 @@ export default function LandingPage() {
id: "2", title: "Motorcycle Detailing", descriptions: [
"Deep cleaning and protection services", "Keep your motorcycle looking brand new", "Professional wax and coating application"
],
imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-motorbike-outdoors_23-2150620924.jpg?_wi=1", imageAlt: "Motorcycle detailing service"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-motorbike-outdoors_23-2150620924.jpg", imageAlt: "Motorcycle detailing service"
},
{
id: "3", title: "Big Bike Dealer", descriptions: [
"Buying and selling high-quality big bikes", "Curated selection of premium motorcycles", "Expert consultation and support"
],
imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-cool-motorcycle_23-2150849577.jpg?_wi=2", imageAlt: "Big bike dealership"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-cool-motorcycle_23-2150849577.jpg", imageAlt: "Big bike dealership"
},
{
id: "4", title: "Community Hub", descriptions: [
"Comfortable gathering space for motorcycle communities", "Cafe and waiting lounge with premium amenities", "Connect with fellow motorcycle enthusiasts"
],
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-bench_23-2149396193.jpg?_wi=1", imageAlt: "Community cafe and lounge"
imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-bench_23-2149396193.jpg", imageAlt: "Community cafe and lounge"
}
]}
gridVariant="four-items-2x2-equal-grid"
@@ -130,13 +130,13 @@ export default function LandingPage() {
id: "1", name: "Before Wash Transformation", price: "Professional Care", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-cool-old-woman-with-motorbike_23-2150647750.jpg", imageAlt: "Motorcycle before washing"
},
{
id: "2", name: "Showroom Display", price: "Premium Selection", imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-cool-motorcycle_23-2150849577.jpg?_wi=3", imageAlt: "Motorcycle showroom"
id: "2", name: "Showroom Display", price: "Premium Selection", imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-cool-motorcycle_23-2150849577.jpg", imageAlt: "Motorcycle showroom"
},
{
id: "3", name: "Detailing Excellence", price: "Expert Service", imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-motorbike-outdoors_23-2150620924.jpg?_wi=2", imageAlt: "Motorcycle detailing work"
id: "3", name: "Detailing Excellence", price: "Expert Service", imageSrc: "http://img.b2bpic.net/free-photo/front-view-man-with-motorbike-outdoors_23-2150620924.jpg", imageAlt: "Motorcycle detailing work"
},
{
id: "4", name: "Community Space", price: "Social Hub", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-bench_23-2149396193.jpg?_wi=2", imageAlt: "Community cafe and lounge"
id: "4", name: "Community Space", price: "Social Hub", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-man-working-bench_23-2149396193.jpg", imageAlt: "Community cafe and lounge"
},
{
id: "5", name: "Biker Community", price: "United Passion", imageSrc: "http://img.b2bpic.net/free-vector/social-media-post-template-racing-tournament_23-2150229918.jpg", imageAlt: "Motorcycle community gathering"
@@ -244,7 +244,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/view-motorcycle-garage-warehouse_23-2150704673.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/view-motorcycle-garage-warehouse_23-2150704673.jpg"
imageAlt="Premium motorcycle background"
columns={[
{

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;
fontSize?: number;
fontFamily?: string;
fontWeight?: string | number;
letterSpacing?: number;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 48,
fontFamily = 'Arial, sans-serif',
fontWeight = 'bold',
letterSpacing = 2,
className = '',
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = textLength * charWidth + letterSpacing * (textLength - 1) + 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`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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={width / 2}
y={height / 2}
textAnchor="middle"
dominantBaseline="central"
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;