Merge version_1 into main #2
@@ -46,7 +46,7 @@ export default function LandingPage() {
|
||||
tag="All About 2 Wheels"
|
||||
tagIcon={Bike}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/man-cafe-racer-style-motorbike_23-2148189648.jpg"
|
||||
imageAlt="Garasi Roda Dua Premium Motorcycle Showroom"
|
||||
@@ -137,10 +137,10 @@ export default function LandingPage() {
|
||||
<ProductCardThree
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Before & After Wash", price: "Professional Transformation", imageSrc: "http://img.b2bpic.net/free-photo/active-man-cleaning-motorbike-outdoors_23-2148585536.jpg?_wi=1", imageAlt: "Motorcycle Before Wash"
|
||||
id: "1", name: "Before & After Wash", price: "Professional Transformation", imageSrc: "http://img.b2bpic.net/free-photo/active-man-cleaning-motorbike-outdoors_23-2148585536.jpg", imageAlt: "Motorcycle Before Wash"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Pristine Clean Results", price: "Guaranteed Shine", imageSrc: "http://img.b2bpic.net/free-photo/active-man-cleaning-motorbike-outdoors_23-2148585536.jpg?_wi=2", imageAlt: "Motorcycle After Professional Wash"
|
||||
id: "2", name: "Pristine Clean Results", price: "Guaranteed Shine", imageSrc: "http://img.b2bpic.net/free-photo/active-man-cleaning-motorbike-outdoors_23-2148585536.jpg", imageAlt: "Motorcycle After Professional Wash"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Premium Showroom", price: "Big Bike Selection", imageSrc: "http://img.b2bpic.net/free-photo/man-choosed-motorcycles-moto-shop-guy-black-jacket_1157-44637.jpg", imageAlt: "Garasi Roda Dua Showroom"
|
||||
@@ -167,7 +167,7 @@ export default function LandingPage() {
|
||||
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<TestimonialCardFifteen
|
||||
testimonial="Premium motorcycle wash with expert detailing. The team treats every bike with care, attention to detail, and professionalism. Whether you're a big bike enthusiast or casual rider, the experience here is exceptional. The waiting lounge is comfortable and the results are always perfect."
|
||||
testimonial="Premium motorcycle wash with expert detailing. The team treats every bike with care, attention to detail, and professionalism. Whether you are a big bike enthusiast or casual rider, the experience here is exceptional. The waiting lounge is comfortable and the results are always perfect."
|
||||
rating={5}
|
||||
author="Rindra Pradipta, Motorcycle Enthusiast"
|
||||
avatars={[
|
||||
@@ -190,12 +190,12 @@ export default function LandingPage() {
|
||||
tagIcon={Calendar}
|
||||
tagAnimation="slide-up"
|
||||
title="Book Your Service"
|
||||
description="Reserve your premium bike wash, detailing, or community hangout experience. Fill in your details and we'll confirm your appointment via WhatsApp."
|
||||
background={{ variant: "circleGradient" }}
|
||||
description="Reserve your premium bike wash, detailing, or community hangout experience. Fill in your details and we will confirm your appointment via WhatsApp."
|
||||
background={{ variant: "glowing-orb" }}
|
||||
useInvertedBackground={true}
|
||||
inputPlaceholder="Enter your email"
|
||||
buttonText="Book Now"
|
||||
termsText="By booking you agree to our service terms. We'll contact you via WhatsApp to confirm your appointment."
|
||||
termsText="By booking you agree to our service terms. We will contact you via WhatsApp to confirm your appointment."
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,51 +1,55 @@
|
||||
"use client";
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
import React, { CSSProperties } from 'react';
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
className?: string;
|
||||
containerClassName?: string;
|
||||
ariaLabel?: 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,
|
||||
fontSize = 24,
|
||||
fontFamily = 'inherit',
|
||||
fontWeight = 700,
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
containerClassName = '',
|
||||
ariaLabel,
|
||||
}) => {
|
||||
const style: CSSProperties = {
|
||||
fontFamily,
|
||||
fontSize,
|
||||
fontWeight,
|
||||
fill,
|
||||
};
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
<div className={containerClassName}>
|
||||
<svg
|
||||
viewBox="0 0 300 60"
|
||||
width="300"
|
||||
height="60"
|
||||
className={className}
|
||||
role="img"
|
||||
aria-label={ariaLabel || text}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
<text
|
||||
x="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
style={style}
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user