Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="small"
|
||||
sizing="largeSmall"
|
||||
background="blurBottom"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-radial"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -46,18 +46,18 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
title="Badminton Excellence in Motion"
|
||||
description="Two competitive teams. One passion. Experience dynamic badminton training and tournament play at our modern facility. Join a community of dedicated players and achieve your athletic goals."
|
||||
background={{ variant: "blurBottom" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
leftCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/badminton-concept-with-racket-shuttlecock_23-2149940895.jpg?_wi=1", imageAlt: "Badminton players in action" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/active-young-people-playing-squash_329181-13250.jpg?_wi=1", imageAlt: "Team celebration moment" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/two-squash-players-with-rackets_329181-18926.jpg?_wi=1", imageAlt: "Youth training session" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-smiley-people-arena_23-2149867394.jpg?_wi=1", imageAlt: "Professional match play" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/badminton-concept-with-racket-shuttlecock_23-2149940895.jpg", imageAlt: "Badminton players in action" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/active-young-people-playing-squash_329181-13250.jpg", imageAlt: "Team celebration moment" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/two-squash-players-with-rackets_329181-18926.jpg", imageAlt: "Youth training session" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-smiley-people-arena_23-2149867394.jpg", imageAlt: "Professional match play" }
|
||||
]}
|
||||
rightCarouselItems={[
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/active-young-people-playing-squash_329181-13250.jpg?_wi=2", imageAlt: "Competitive badminton match" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/two-squash-players-with-rackets_329181-18926.jpg?_wi=2", imageAlt: "Training facility" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-smiley-people-arena_23-2149867394.jpg?_wi=2", imageAlt: "Club members" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/badminton-concept-with-racket-shuttlecock_23-2149940895.jpg?_wi=2", imageAlt: "Tournament play" }
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/active-young-people-playing-squash_329181-13250.jpg", imageAlt: "Competitive badminton match" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/two-squash-players-with-rackets_329181-18926.jpg", imageAlt: "Training facility" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/side-view-smiley-people-arena_23-2149867394.jpg", imageAlt: "Club members" },
|
||||
{ imageSrc: "http://img.b2bpic.net/free-photo/badminton-concept-with-racket-shuttlecock_23-2149940895.jpg", imageAlt: "Tournament play" }
|
||||
]}
|
||||
buttons={[
|
||||
{ text: "View Training Schedule", href: "#training" },
|
||||
@@ -88,13 +88,13 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Tuesday Sessions", description: "Freestyle recreational players (ages 14-18) and competitive players from U15 onwards. Two courts available with flexible programming. 18:00-20:00", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg?_wi=1", imageAlt: "Tuesday training" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/leg-exercise-control-rehabilitation-safe-movement_169016-71648.jpg?_wi=1", imageAlt: "Training equipment" }
|
||||
title: "Tuesday Sessions", description: "Freestyle recreational players (ages 14-18) and competitive players from U15 onwards. Two courts available with flexible programming. 18:00-20:00", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg", imageAlt: "Tuesday training" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/leg-exercise-control-rehabilitation-safe-movement_169016-71648.jpg", imageAlt: "Training equipment" }
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Wednesday Development", description: "U13 team training (16:30-18:00) followed by competitive training for U15 and above. Three to six courts available depending on session. 18:00-22:00", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/leg-exercise-control-rehabilitation-safe-movement_169016-71648.jpg?_wi=2", imageAlt: "Wednesday development" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg?_wi=2", imageAlt: "Coaching session" }
|
||||
title: "Wednesday Development", description: "U13 team training (16:30-18:00) followed by competitive training for U15 and above. Three to six courts available depending on session. 18:00-22:00", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/leg-exercise-control-rehabilitation-safe-movement_169016-71648.jpg", imageAlt: "Wednesday development" },
|
||||
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg", imageAlt: "Coaching session" }
|
||||
}
|
||||
]}
|
||||
showStepNumbers={true}
|
||||
@@ -116,26 +116,26 @@ export default function LandingPage() {
|
||||
{
|
||||
id: "team-competitive", groupTitle: "Competitive Team (U15+)", members: [
|
||||
{
|
||||
id: "1", title: "Competitive Division", subtitle: "Regional Tournament Players", detail: "Dedicated to excellence in badminton competition", imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg?_wi=3", imageAlt: "Competitive team"
|
||||
id: "1", title: "Competitive Division", subtitle: "Regional Tournament Players", detail: "Dedicated to excellence in badminton competition", imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg", imageAlt: "Competitive team"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Development Focus", subtitle: "Year-Round Training", detail: "Building champions through structured coaching", imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg?_wi=4", imageAlt: "Development training"
|
||||
id: "2", title: "Development Focus", subtitle: "Year-Round Training", detail: "Building champions through structured coaching", imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg", imageAlt: "Development training"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Tournament Participation", subtitle: "Regional & National", detail: "Regular competition experience and growth", imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg?_wi=5", imageAlt: "Tournament play"
|
||||
id: "3", title: "Tournament Participation", subtitle: "Regional & National", detail: "Regular competition experience and growth", imageSrc: "http://img.b2bpic.net/free-photo/young-sporty-couple-man-woman-holding-rackets-tennis-smiling-confident-orange_141793-58646.jpg", imageAlt: "Tournament play"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: "team-recreational", groupTitle: "Recreational Team (Ages 14-18)", members: [
|
||||
{
|
||||
id: "1", title: "Recreational Division", subtitle: "Freestyle Players", detail: "Fun, fitness, and friendship in badminton", imageSrc: "http://img.b2bpic.net/free-photo/tennis-player-focussing-ball_23-2147644369.jpg?_wi=1", imageAlt: "Recreational team"
|
||||
id: "1", title: "Recreational Division", subtitle: "Freestyle Players", detail: "Fun, fitness, and friendship in badminton", imageSrc: "http://img.b2bpic.net/free-photo/tennis-player-focussing-ball_23-2147644369.jpg", imageAlt: "Recreational team"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Social Events", subtitle: "Team Building", detail: "Creating community through the sport", imageSrc: "http://img.b2bpic.net/free-photo/tennis-player-focussing-ball_23-2147644369.jpg?_wi=2", imageAlt: "Social events"
|
||||
id: "2", title: "Social Events", subtitle: "Team Building", detail: "Creating community through the sport", imageSrc: "http://img.b2bpic.net/free-photo/tennis-player-focussing-ball_23-2147644369.jpg", imageAlt: "Social events"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Skill Development", subtitle: "Coaching Available", detail: "Improve technique in a supportive environment", imageSrc: "http://img.b2bpic.net/free-photo/tennis-player-focussing-ball_23-2147644369.jpg?_wi=3", imageAlt: "Skill development"
|
||||
id: "3", title: "Skill Development", subtitle: "Coaching Available", detail: "Improve technique in a supportive environment", imageSrc: "http://img.b2bpic.net/free-photo/tennis-player-focussing-ball_23-2147644369.jpg", imageAlt: "Skill development"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -187,7 +187,7 @@ export default function LandingPage() {
|
||||
button: { text: "Download Form", href: "#contact" }
|
||||
},
|
||||
{
|
||||
id: "schedule", title: "Training Schedule", price: "Free", period: "Download", imageSrc: "http://img.b2bpic.net/free-photo/leg-exercise-control-rehabilitation-safe-movement_169016-71648.jpg?_wi=3", imageAlt: "Training schedule", features: [
|
||||
id: "schedule", title: "Training Schedule", price: "Free", period: "Download", imageSrc: "http://img.b2bpic.net/free-photo/leg-exercise-control-rehabilitation-safe-movement_169016-71648.jpg", imageAlt: "Training schedule", features: [
|
||||
"Complete weekly schedule", "Holiday closures", "Tournament dates", "Coaching contact info"
|
||||
],
|
||||
button: { text: "Download Schedule", href: "#contact" }
|
||||
|
||||
@@ -1,51 +1,39 @@
|
||||
"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={`w-full h-auto ${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"
|
||||
}}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
<defs>
|
||||
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#3b82f6" />
|
||||
<stop offset="100%" stopColor="#8b5cf6" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
{text.split('').map((char, index) => (
|
||||
<text
|
||||
key={index}
|
||||
x={index * 60}
|
||||
y="60"
|
||||
fontSize="48"
|
||||
fontWeight="bold"
|
||||
fill="url(#textGradient)"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
>
|
||||
{char}
|
||||
</text>
|
||||
))}
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user