Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 18:41:40 +00:00
2 changed files with 31 additions and 41 deletions

View File

@@ -53,7 +53,7 @@ export default function LandingPage() {
{ text: "Live Scores", href: "#scores" }
]}
buttonAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-vector/silhouette-excited-crowd-grunge-union-jack-flag-background_1048-14380.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-vector/silhouette-excited-crowd-grunge-union-jack-flag-background_1048-14380.jpg"
imageAlt="Football stadium with crowd"
imagePosition="right"
mediaAnimation="slide-up"
@@ -101,13 +101,13 @@ export default function LandingPage() {
textboxLayout="default"
features={[
{
title: "Instant Score Updates", description: "Receive live notifications for goals, penalties, and match milestones instantly.", imageSrc: "http://img.b2bpic.net/free-vector/gradient-football-championship-schedule-template_52683-98733.jpg?_wi=1", imageAlt: "Live scores display"
title: "Instant Score Updates", description: "Receive live notifications for goals, penalties, and match milestones instantly.", imageSrc: "http://img.b2bpic.net/free-vector/gradient-football-championship-schedule-template_52683-98733.jpg", imageAlt: "Live scores display"
},
{
title: "Player Statistics", description: "Track individual player performance including passes, shots, and key moments.", imageSrc: "http://img.b2bpic.net/free-vector/gradient-football-championship-schedule-template_52683-98733.jpg?_wi=2", imageAlt: "Player stats tracking"
title: "Player Statistics", description: "Track individual player performance including passes, shots, and key moments.", imageSrc: "http://img.b2bpic.net/free-vector/gradient-football-championship-schedule-template_52683-98733.jpg", imageAlt: "Player stats tracking"
},
{
title: "Match Analytics", description: "Deep dive into match analysis with possession stats, heat maps, and tactical insights.", imageSrc: "http://img.b2bpic.net/free-vector/gradient-football-championship-schedule-template_52683-98733.jpg?_wi=3", imageAlt: "Match analytics"
title: "Match Analytics", description: "Deep dive into match analysis with possession stats, heat maps, and tactical insights.", imageSrc: "http://img.b2bpic.net/free-vector/gradient-football-championship-schedule-template_52683-98733.jpg", imageAlt: "Match analytics"
}
]}
gridVariant="three-columns-all-equal-width"
@@ -204,7 +204,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-vector/silhouette-excited-crowd-grunge-union-jack-flag-background_1048-14380.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-vector/silhouette-excited-crowd-grunge-union-jack-flag-background_1048-14380.jpg"
imageAlt="Football stadium"
columns={[
{

View File

@@ -1,51 +1,41 @@
"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;
letterSpacing?: number;
fill?: 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 = '',
fontSize = 48,
fontWeight = 700,
letterSpacing = 0,
fill = 'currentColor',
}) => {
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 * fontSize * 0.6} ${fontSize * 1.5}`}
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={fontSize * 0.3}
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fill}
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;