Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #1.
This commit is contained in:
2026-03-10 21:50:21 +00:00
2 changed files with 26 additions and 37 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="compact"
sizing="mediumLargeSizeLargeTitles"
background="floatingGradient"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
@@ -44,7 +44,7 @@ export default function LandingPage() {
<HeroCentered
title="Elevate Your Game with Premium Cricket Equipment"
description="Experience the perfect blend of innovation and tradition. Gray-Nicolls delivers world-class cricket bats and equipment trusted by professional players globally."
background={{ variant: "floatingGradient" }}
background={{ variant: "rotated-rays-static" }}
avatars={[
{ src: "http://img.b2bpic.net/free-photo/smiley-athletic-man-gym-outfit-holding-basketball_23-2148398819.jpg", alt: "Cricket Player 1" },
{ src: "http://img.b2bpic.net/free-photo/pleased-young-sporty-man-wearing-headband-wristband-points-side-putting-hand-hip-isolated-green_141793-87159.jpg", alt: "Cricket Player 2" },

View File

@@ -1,51 +1,40 @@
"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;
textClassName?: string;
dominantBaseline?: SVGTextElement['dominantBaseline'];
}
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 = '',
textClassName = '',
dominantBaseline = 'middle',
}) => {
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 200 60"
xmlns="http://www.w3.org/2000/svg"
className={`w-32 h-auto ${className}`}
aria-label={`${text} logo`}
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className={`text-lg font-bold fill-current ${textClassName}`}
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
fontSize: '24px',
fontWeight: 'bold',
}}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;