Merge version_1 into main #2
@@ -18,7 +18,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="medium"
|
||||
sizing="mediumLarge"
|
||||
background="floatingGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="solid"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -42,7 +42,7 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Live Cricket Scores"
|
||||
description="Stay updated with real-time match updates, live scoreboards, and detailed player statistics. Experience the thrill of cricket with instant notifications and comprehensive match analysis."
|
||||
background={{ variant: "floatingGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
kpis={[
|
||||
{ value: "1M+", label: "Live Matches Tracked" },
|
||||
{ value: "50+", label: "Cricket Tournaments" },
|
||||
@@ -85,7 +85,7 @@ export default function LandingPage() {
|
||||
title: "Skeleton Loading", description: "Smooth loading states while fetching API data ensures optimal user experience", icon: Zap
|
||||
}
|
||||
]}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ao1qqBphUNKrlgFggaPCrax0Tp/professional-cricket-match-broadcast-vie-1773244362666-72375ae3.png?_wi=1"
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ao1qqBphUNKrlgFggaPCrax0Tp/professional-cricket-match-broadcast-vie-1773244362666-72375ae3.png"
|
||||
imageAlt="Live cricket match broadcast"
|
||||
mediaAnimation="slide-up"
|
||||
imagePosition="left"
|
||||
@@ -145,7 +145,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "match-2", brand: "Pakistan vs England", name: "T20 International", price: "Pakistan: 156/9", rating: 5,
|
||||
reviewCount: "1.8k", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ao1qqBphUNKrlgFggaPCrax0Tp/professional-cricket-match-broadcast-vie-1773244362666-72375ae3.png?_wi=2", imageAlt: "Pakistan vs England T20 match"
|
||||
reviewCount: "1.8k", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ao1qqBphUNKrlgFggaPCrax0Tp/professional-cricket-match-broadcast-vie-1773244362666-72375ae3.png", imageAlt: "Pakistan vs England T20 match"
|
||||
},
|
||||
{
|
||||
id: "match-3", brand: "West Indies vs South Africa", name: "T20 League Match", price: "WI: 178/5", rating: 5,
|
||||
|
||||
@@ -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);
|
||||
|
||||
export 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%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize="48"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user