Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 15:11:18 +00:00
2 changed files with 29 additions and 50 deletions

View File

@@ -20,7 +20,7 @@ export default function CricketLivePage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="large"
background="floatingGradient"
background="circleGradient"
cardStyle="subtle-shadow"
primaryButtonStyle="shadow"
secondaryButtonStyle="glass"
@@ -46,7 +46,7 @@ export default function CricketLivePage() {
<HeroSplitDoubleCarousel
title="Live Cricket Scores at Your Fingertips"
description="Real-time match updates, live scorecards, player statistics, and instant notifications. Filter by International, Domestic, and Women's Cricket. Experience the game like never before with our comprehensive cricket API integration."
background={{ variant: "floatingGradient" }}
background={{ variant: "glowing-orb" }}
tag="Live & Real-Time"
tagIcon={Zap}
tagAnimation="slide-up"
@@ -57,21 +57,21 @@ export default function CricketLivePage() {
buttonAnimation="slide-up"
leftCarouselItems={[
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-sleek-digital-dashboard-displaying-liv-1773241782324-dbc37d93.png?_wi=1", imageAlt: "Live Score Dashboard"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-sleek-digital-dashboard-displaying-liv-1773241782324-dbc37d93.png", imageAlt: "Live Score Dashboard"
},
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/an-action-packed-cricket-moment-showing--1773241782289-8a979efa.png", imageAlt: "Batsman in Action"
},
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-technical-illustration-showing-api-int-1773241782536-805ce976.png?_wi=1", imageAlt: "API Integration"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-technical-illustration-showing-api-int-1773241782536-805ce976.png", imageAlt: "API Integration"
},
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-modern-smartphone-displaying-the-crick-1773241782802-f1373174.png?_wi=1", imageAlt: "Mobile App Interface"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-modern-smartphone-displaying-the-crick-1773241782802-f1373174.png", imageAlt: "Mobile App Interface"
}
]}
rightCarouselItems={[
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/an-expansive-cricket-stadium-with-bright-1773241782566-7937ea5c.png?_wi=1", imageAlt: "Cricket Stadium Live"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/an-expansive-cricket-stadium-with-bright-1773241782566-7937ea5c.png", imageAlt: "Cricket Stadium Live"
},
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-cricket-bowler-in-mid-delivery-stride--1773241783161-de3bedc1.png", imageAlt: "Bowler Action"
@@ -80,7 +80,7 @@ export default function CricketLivePage() {
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/women-cricketers-in-action-showing-power-1773241782310-ff4b4a8c.png", imageAlt: "Women's Cricket"
},
{
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-diverse-group-of-cricket-players-from--1773241782367-74580b2f.png?_wi=1", imageAlt: "International Teams"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-diverse-group-of-cricket-players-from--1773241782367-74580b2f.png", imageAlt: "International Teams"
}
]}
carouselPosition="right"
@@ -98,7 +98,7 @@ export default function CricketLivePage() {
{ text: "View Documentation", href: "https://rapidapi.com" }
]}
buttonAnimation="blur-reveal"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-technical-illustration-showing-api-int-1773241782536-805ce976.png?_wi=2"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-technical-illustration-showing-api-int-1773241782536-805ce976.png"
imageAlt="API Integration Technology"
useInvertedBackground={false}
/>
@@ -132,7 +132,7 @@ export default function CricketLivePage() {
id: "5", title: "Enhanced Loading States", content: "Professional skeleton loaders ensure smooth transitions while fetching data from cricket APIs. Prevents layout shift and provides visual feedback to users during data updates and API calls."
}
]}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-modern-smartphone-displaying-the-crick-1773241782802-f1373174.png?_wi=2"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-modern-smartphone-displaying-the-crick-1773241782802-f1373174.png"
imageAlt="App Features Showcase"
mediaAnimation="slide-up"
useInvertedBackground={true}
@@ -144,16 +144,16 @@ export default function CricketLivePage() {
<MetricCardEleven
metrics={[
{
id: "1", value: "500K+", title: "Live Matches Tracked", description: "Real-time cricket matches from around the world", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/an-expansive-cricket-stadium-with-bright-1773241782566-7937ea5c.png?_wi=2", imageAlt: "Global cricket tracking"
id: "1", value: "500K+", title: "Live Matches Tracked", description: "Real-time cricket matches from around the world", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/an-expansive-cricket-stadium-with-bright-1773241782566-7937ea5c.png", imageAlt: "Global cricket tracking"
},
{
id: "2", value: "2M+", title: "Active Users", description: "Cricket enthusiasts using our platform daily", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-diverse-group-of-cricket-players-from--1773241782367-74580b2f.png?_wi=2", imageAlt: "Active users community"
id: "2", value: "2M+", title: "Active Users", description: "Cricket enthusiasts using our platform daily", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-diverse-group-of-cricket-players-from--1773241782367-74580b2f.png", imageAlt: "Active users community"
},
{
id: "3", value: "60s", title: "Update Interval", description: "Auto-refresh for latest live score data", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-sleek-digital-dashboard-displaying-liv-1773241782324-dbc37d93.png?_wi=2", imageAlt: "Real-time updates"
id: "3", value: "60s", title: "Update Interval", description: "Auto-refresh for latest live score data", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-sleek-digital-dashboard-displaying-liv-1773241782324-dbc37d93.png", imageAlt: "Real-time updates"
},
{
id: "4", value: "99.9%", title: "Uptime", description: "Reliable API integration and data delivery", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-technical-illustration-showing-api-int-1773241782536-805ce976.png?_wi=3", imageAlt: "API reliability"
id: "4", value: "99.9%", title: "Uptime", description: "Reliable API integration and data delivery", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnwBJykn0SQB4UD8MPtp85EhCD/a-technical-illustration-showing-api-int-1773241782536-805ce976.png", imageAlt: "API reliability"
}
]}
animationType="slide-up"
@@ -235,7 +235,7 @@ export default function CricketLivePage() {
text: "Read Docs", href: "#"
}
]}
background={{ variant: "floatingGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,30 @@
"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;
}
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 = '' }) => {
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 * 60} 100`}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;