Merge version_1 into main #2

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

View File

@@ -51,19 +51,19 @@ export default function LandingPage() {
testimonials={[
{
name: "Rajesh Kumar", handle: "Cricket Enthusiast", testimonial: "Best turf in Bangalore! Booked 3 times already. The online system is super easy to use.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-posing-dark-wall_176420-626.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-posing-dark-wall_176420-626.jpg"
},
{
name: "Priya Singh", handle: "Team Captain", testimonial: "Affordable pricing with excellent facilities. Perfect for our team practice sessions.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-redhead-bearded-male-dressed-suit-posing-grey-background_613910-11505.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-redhead-bearded-male-dressed-suit-posing-grey-background_613910-11505.jpg"
},
{
name: "Arjun Patel", handle: "Weekend Player", testimonial: "The night lighting is fantastic. Never thought online booking could be this smooth.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-worker-wearing-vest_23-2149366621.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-worker-wearing-vest_23-2149366621.jpg"
},
{
name: "Neha Sharma", handle: "Sports Manager", testimonial: "Highly recommended! Clean facilities and responsive support team.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-man-green-shirt-wearing-glasses-looking-front-with-confident-smile-face-with-arms-crossed-standing-white-wall_141793-64678.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/young-man-green-shirt-wearing-glasses-looking-front-with-confident-smile-face-with-arms-crossed-standing-white-wall_141793-64678.jpg"
}
]}
testimonialRotationInterval={5000}
@@ -72,7 +72,7 @@ export default function LandingPage() {
{ text: "Learn More", href: "#features" }
]}
useInvertedBackground={false}
background={{ variant: "circleGradient" }}
background={{ variant: "glowing-orb" }}
/>
</div>
@@ -86,7 +86,7 @@ export default function LandingPage() {
useInvertedBackground={false}
features={[
{
id: "1", title: "Easy Online Booking", description: "Reserve your court in seconds with our intuitive booking system. Check availability in real-time and secure your slot instantly.", tag: "Feature", imageSrc: "http://img.b2bpic.net/free-photo/empty-home-office-with-tablet-laptop-shows-infographics-accounting-data_482257-91198.jpg?_wi=1", imageAlt: "Online booking calendar interface"
id: "1", title: "Easy Online Booking", description: "Reserve your court in seconds with our intuitive booking system. Check availability in real-time and secure your slot instantly.", tag: "Feature", imageSrc: "http://img.b2bpic.net/free-photo/empty-home-office-with-tablet-laptop-shows-infographics-accounting-data_482257-91198.jpg", imageAlt: "Online booking calendar interface"
},
{
id: "2", title: "Premium Facilities", description: "Play on the biggest turf in Bangalore with professional-grade equipment. Net-covered grounds ensure uninterrupted play in any weather.", tag: "Feature", imageSrc: "http://img.b2bpic.net/free-photo/stairs-subway_23-2149397563.jpg", imageAlt: "Professional cricket ground facilities"
@@ -95,7 +95,7 @@ export default function LandingPage() {
id: "3", title: "Night Lighting", description: "Fully equipped with bright lighting for evening matches. Play your favorite games after work with optimal visibility and safety.", tag: "Feature", imageSrc: "http://img.b2bpic.net/free-photo/male-worker-answering-telework-phone-call-center-using-audio-headset-microphone-young-man-working-customer-care-disability-friendly-office-handheld-shot-close-up_482257-41941.jpg", imageAlt: "Professional night lighting setup"
},
{
id: "4", title: "Expert Support", description: "Responsive customer service team ready to assist. Call us anytime for queries or assistance with your booking.", tag: "Feature", imageSrc: "http://img.b2bpic.net/free-photo/empty-home-office-with-tablet-laptop-shows-infographics-accounting-data_482257-91198.jpg?_wi=2", imageAlt: "Customer support team"
id: "4", title: "Expert Support", description: "Responsive customer service team ready to assist. Call us anytime for queries or assistance with your booking.", tag: "Feature", imageSrc: "http://img.b2bpic.net/free-photo/empty-home-office-with-tablet-laptop-shows-infographics-accounting-data_482257-91198.jpg", imageAlt: "Customer support team"
}
]}
animationType="slide-up"
@@ -180,27 +180,27 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Masud Ali", handle: "@masudali", testimonial: "Very best place to play box cricket in Bangalore. Good and clean turf. The booking process is so simple!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-posing-dark-wall_176420-626.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-posing-dark-wall_176420-626.jpg"
},
{
id: "2", name: "Abdulla", handle: "@abdulla_player", testimonial: "Best turf in Bangalore at affordable price with best facilities. Recommended to visit. Had a great experience playing cricket and football.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-redhead-bearded-male-dressed-suit-posing-grey-background_613910-11505.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-redhead-bearded-male-dressed-suit-posing-grey-background_613910-11505.jpg"
},
{
id: "3", name: "Abdul Razik", handle: "@razik_cricket", testimonial: "Biggest turf at this reasonable price. Had very good experience. Specially for cricket lovers, it's a huge ground. Planning to book again!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-worker-wearing-vest_23-2149366621.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-worker-wearing-vest_23-2149366621.jpg"
},
{
id: "4", name: "Vikram Kumar", handle: "@vikram_sports", testimonial: "Excellent facilities with professional staff. Night lighting is top-notch. Will definitely recommend to all cricket friends.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-man-green-shirt-wearing-glasses-looking-front-with-confident-smile-face-with-arms-crossed-standing-white-wall_141793-64678.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/young-man-green-shirt-wearing-glasses-looking-front-with-confident-smile-face-with-arms-crossed-standing-white-wall_141793-64678.jpg"
},
{
id: "5", name: "Sanjana Dey", handle: "@sanjana_games", testimonial: "Seamless online booking and fantastic customer support. The facilities are maintained to the highest standard.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-posing-dark-wall_176420-626.jpg?_wi=3"
imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-sportive-girl-posing-dark-wall_176420-626.jpg"
},
{
id: "6", name: "Rohit Sharma", handle: "@rohit_coach", testimonial: "Perfect venue for team training and matches. Very professional management and affordable packages for regular bookings.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-redhead-bearded-male-dressed-suit-posing-grey-background_613910-11505.jpg?_wi=3"
imageSrc: "http://img.b2bpic.net/free-photo/studio-portrait-redhead-bearded-male-dressed-suit-posing-grey-background_613910-11505.jpg"
}
]}
/>
@@ -258,7 +258,7 @@ export default function LandingPage() {
inputPlaceholder="Enter your email"
buttonText="Subscribe"
termsText="We respect your privacy. Unsubscribe anytime. Get exclusive deals and facility updates."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
/>
</div>

View File

@@ -1,51 +1,53 @@
"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;
fontWeight?: number | string;
fontFamily?: string;
fill?: string;
letterSpacing?: number;
}
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,
className = '',
fontSize = 24,
fontWeight = 700,
fontFamily = 'Arial, sans-serif',
fill = 'currentColor',
letterSpacing = 0,
}) => {
// Measure text width
const estimatedCharWidth = fontSize * 0.6;
const width = text.length * estimatedCharWidth + 40;
const height = fontSize + 20;
const x = 20;
const y = fontSize + 10;
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}`}
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={x}
y={y}
fontSize={fontSize}
fontWeight={fontWeight}
fontFamily={fontFamily}
fill={fill}
letterSpacing={letterSpacing}
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;