Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 13:24:17 +00:00
2 changed files with 23 additions and 40 deletions

View File

@@ -47,9 +47,10 @@ export default function LandingPage() {
tag="Go Hornets"
tagIcon={Zap}
tagAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-photo/amateur-football-concept-with-team-stretching_23-2147833450.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/amateur-football-concept-with-team-stretching_23-2147833450.jpg"
imageAlt="Romeoville High School soccer field"
mediaAnimation="blur-reveal"
background={{ variant: "plain" }}
testimonials={[
{
name: "Marcus Johnson", handle: "Senior Midfielder", testimonial: "This program has transformed me as a player and as a person. The coaching staff genuinely cares about our development both on and off the field.", rating: 5,
@@ -85,9 +86,10 @@ export default function LandingPage() {
{ value: "15+", title: "State Tournament Appearances" },
{ value: "40+", title: "Players with D1 Scholarships" }
]}
imageSrc="http://img.b2bpic.net/free-photo/amateur-football-concept-with-team-stretching_23-2147833450.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/amateur-football-concept-with-team-stretching_23-2147833450.jpg"
imageAlt="Romeoville soccer team in action"
mediaAnimation="blur-reveal"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -175,7 +177,7 @@ export default function LandingPage() {
{ text: "Learn More", href: "#about" }
]}
buttonAnimation="slide-up"
background={{ variant: "glowing-orb" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,32 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React, { CSSProperties } from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text: string;
className?: string;
style?: CSSProperties;
}
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 = '', style = {} }) => {
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"
className={className}
style={style}
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="24"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;