Compare commits
25 Commits
version_7_
...
version_15
| Author | SHA1 | Date | |
|---|---|---|---|
| e52393fb3a | |||
| 30fc652b58 | |||
| 357d4e54f6 | |||
| c8a4a2c04f | |||
| 7a9edf67dd | |||
| 7090d50fd6 | |||
| 89663bee64 | |||
|
|
5d1f1a0db8 | ||
| 71279e4136 | |||
| 6e1a334b21 | |||
| 5a2be2dbba | |||
| 9b36ef6064 | |||
| 75d0942083 | |||
| 49e14a3081 | |||
| aff8626480 | |||
| 06295fa86e | |||
| 495d674524 | |||
| 8e236621d9 | |||
| f823c0b23b | |||
| 3c9ba3e415 | |||
| c68d7a484f | |||
| e95c2ec2da | |||
| c2848093ea | |||
| 05c44ae578 | |||
| 76d6269579 |
@@ -11,7 +11,7 @@ export default function AboutSection(): React.JSX.Element {
|
||||
textAnimation="fade-blur"
|
||||
tag="Explore Our Club"
|
||||
title="What are you looking for?"
|
||||
media={[{"imageSrc":"https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://images.unsplash.com/photo-1622279457486-62dcc4a431d6?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363731-ti1gwsue.jpg"},{"imageSrc":"https://images.unsplash.com/photo-1530915534664-4ac6423816b7?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363730-qzocx6gy.webp"},{"imageSrc":"https://images.unsplash.com/photo-1542144582-1ba00456b5e3?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://images.unsplash.com/photo-1560012057-4372e14c5085?q=80&w=1000&auto=format&fit=crop"}]}
|
||||
media={[{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952546030-f2ubckey.jpg"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363731-ti1gwsue.jpg"},{"imageSrc":"https://images.unsplash.com/photo-1530915534664-4ac6423816b7?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363730-qzocx6gy.webp"},{"imageSrc":"https://images.unsplash.com/photo-1542144582-1ba00456b5e3?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://images.unsplash.com/photo-1560012057-4372e14c5085?q=80&w=1000&auto=format&fit=crop"}]}
|
||||
primaryButton={{"href":"#facilities","text":"View Facilities"}}
|
||||
secondaryButton={{"href":"#contact","text":"Contact Us"}}
|
||||
/>
|
||||
|
||||
@@ -10,14 +10,14 @@ export default function BookingsSection() {
|
||||
title: "Access Your Account",
|
||||
subtitle: "Step 1",
|
||||
description: "Log in to your member portal using your credentials.",
|
||||
imageSrc: "https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=1000&auto=format&fit=crop",
|
||||
imageSrc: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png",
|
||||
},
|
||||
{
|
||||
tag: "Select",
|
||||
title: "Choose Your Court",
|
||||
subtitle: "Step 2",
|
||||
description: "Browse available courts and times up to 7 days in advance (14 days for Pro members).",
|
||||
imageSrc: "https://images.unsplash.com/photo-1622279457486-62dcc4a431d6?q=80&w=1000&auto=format&fit=crop",
|
||||
imageSrc: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952546030-f2ubckey.jpg?_wi=1",
|
||||
},
|
||||
{
|
||||
tag: "Confirm",
|
||||
|
||||
@@ -8,7 +8,7 @@ export default function GallerySection() {
|
||||
const images = [
|
||||
{
|
||||
src: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png",
|
||||
title: "Indoor Courts",
|
||||
title: "Indoor Courts Private Lessons Private Lessons",
|
||||
colSpan: "md:col-span-3"
|
||||
},
|
||||
{
|
||||
@@ -22,8 +22,8 @@ export default function GallerySection() {
|
||||
colSpan: "md:col-span-2"
|
||||
},
|
||||
{
|
||||
src: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920221-rb0wtby4.jpg",
|
||||
title: "Clay Courts",
|
||||
src: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png",
|
||||
title: "Courts",
|
||||
colSpan: "md:col-span-2"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,21 +1,120 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "hero" section.
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import { useRef } from "react";
|
||||
import { motion, useScroll, useTransform } from "motion/react";
|
||||
import { cls } from "@/lib/utils";
|
||||
import Button from "@/components/ui/Button";
|
||||
import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import AutoFillText from "@/components/ui/AutoFillText";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
|
||||
import React from 'react';
|
||||
import HeroBillboardBrandFloatingCards from "@/components/sections/hero/HeroBillboardBrandFloatingCards";
|
||||
const primaryButton = {
|
||||
href: "#book",
|
||||
text: "Book a Court"
|
||||
};
|
||||
const secondaryButton = {
|
||||
text: "Join the Club",
|
||||
href: "#membership"
|
||||
};
|
||||
const floatingCards = [
|
||||
{
|
||||
name: "Courts",
|
||||
imageSrc: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png"
|
||||
},
|
||||
{
|
||||
name: "Grass Courts",
|
||||
imageSrc: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952546030-f2ubckey.jpg?_wi=2"
|
||||
}
|
||||
];
|
||||
|
||||
type FloatingCard = {
|
||||
name: string;
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const CARD_CONFIG = [
|
||||
{ position: "left", bottom: "30%", aspect: "aspect-3/4", movement: "-100%" },
|
||||
{ position: "right", bottom: "14%", aspect: "aspect-square", movement: "-75%" },
|
||||
] as const;
|
||||
|
||||
type HeroBillboardBrandFloatingCardsProps = {
|
||||
brand: string;
|
||||
description: string;
|
||||
primaryButton: { text: string; href: string };
|
||||
secondaryButton: { text: string; href: string };
|
||||
floatingCards: [FloatingCard, FloatingCard];
|
||||
textAnimation: "slide-up" | "fade-blur" | "fade";
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
const HeroInline = () => {
|
||||
const heroRef = useRef<HTMLDivElement>(null);
|
||||
const { scrollYProgress } = useScroll({
|
||||
target: heroRef,
|
||||
offset: ["start start", "end start"],
|
||||
});
|
||||
const leftCardY = useTransform(scrollYProgress, [0, 1], ["0%", CARD_CONFIG[0].movement]);
|
||||
const rightCardY = useTransform(scrollYProgress, [0, 1], ["0%", CARD_CONFIG[1].movement]);
|
||||
const cardYTransforms = [leftCardY, rightCardY];
|
||||
|
||||
export default function HeroSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="hero" data-section="hero">
|
||||
<HeroBillboardBrandFloatingCards
|
||||
textAnimation="fade-blur"
|
||||
brand="Grand Slam Club"
|
||||
description="Experience world-class tennis facilities, professional coaching, and a vibrant community. Whether you're a beginner or a seasoned pro, our courts are ready for you."
|
||||
primaryButton={{"href":"#book","text":"Book a Court"}}
|
||||
secondaryButton={{"text":"Join the Club","href":"#membership"}}
|
||||
imageSrc="https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952650576-fsoubb3r.jpg"
|
||||
floatingCards={[{"name":"Clay Courts","imageSrc":"https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=1000&auto=format&fit=crop"},{"name":"Grass Courts","imageSrc":"https://images.unsplash.com/photo-1622279457486-62dcc4a431d6?q=80&w=1000&auto=format&fit=crop"}]}
|
||||
/>
|
||||
<section ref={heroRef} aria-label="Hero section" className="relative pt-25 pb-20 md:pt-30">
|
||||
<HeroBackgroundSlot />
|
||||
|
||||
{floatingCards.map((card, i) => (
|
||||
<motion.div
|
||||
key={i}
|
||||
style={{ y: cardYTransforms[i], bottom: CARD_CONFIG[i].bottom }}
|
||||
className={cls(
|
||||
"absolute z-10 w-28 xl:w-48 2xl:w-52 p-1 xl:p-2 2xl:p-3 card rounded overflow-hidden shadow-xl",
|
||||
CARD_CONFIG[i].position === "left"
|
||||
? "left-[calc((100vw-var(--width-content-width))/2)] translate-x-1/4 lg:-translate-x-1/2"
|
||||
: "right-[calc((100vw-var(--width-content-width))/2)] -translate-x-1/4 lg:translate-x-1/2"
|
||||
)}
|
||||
>
|
||||
<div className="relative">
|
||||
<ImageOrVideo
|
||||
imageSrc={card.imageSrc}
|
||||
videoSrc={card.videoSrc}
|
||||
className={cls("w-full object-cover rounded", CARD_CONFIG[i].aspect)}
|
||||
/>
|
||||
<div className="absolute bottom-1 xl:bottom-2 2xl:bottom-3 inset-x-1 xl:inset-x-2 2xl:inset-x-3 card rounded p-1 xl:p-2 2xl:p-3">
|
||||
<h3 className="text-2xl md:text-3xl text-center truncate">{card.name}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</motion.div>
|
||||
))}
|
||||
|
||||
<div className="flex flex-col gap-10 md:gap-12 w-content-width mx-auto">
|
||||
<div className="flex flex-col items-end gap-5">
|
||||
<AutoFillText className="w-full font-semibold" paddingY="">{"Grand Slam Club"}</AutoFillText>
|
||||
|
||||
<TextAnimation
|
||||
text={"Experience world-class tennis facilities, professional coaching, and a vibrant community. Whether you're a beginner or a seasoned pro, our courts are ready for you."}
|
||||
variant={"fade-blur"}
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="w-full md:w-1/2 text-lg md:text-2xl leading-snug text-balance text-right"
|
||||
/>
|
||||
|
||||
<div className="flex flex-wrap justify-end gap-3 mt-1 md:mt-2">
|
||||
<Button text={primaryButton.text} href={primaryButton.href} variant="primary"/>
|
||||
<Button text={secondaryButton.text} href={secondaryButton.href} variant="secondary" animationDelay={0.1} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ScrollReveal variant="slide-up" delay={0.2} className="w-full p-2 xl:p-3 2xl:p-4 card rounded overflow-hidden">
|
||||
<ImageOrVideo imageSrc={"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363730-2xq7048r.jpg"} className="aspect-4/5 md:aspect-video" />
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function HeroSection() {
|
||||
return (
|
||||
<div data-webild-section="hero" id="hero">
|
||||
<HeroInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export default function MenuSection(): React.JSX.Element {
|
||||
title="Everything You Need to Play Your Best"
|
||||
description="Discover our premium facilities designed for players of all levels."
|
||||
categories={["Courts","Coaching","Amenities"]}
|
||||
items={[{"category":"Courts","name":"Clay Courts","imageSrc":"https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=1000&auto=format&fit=crop"},{"imageSrc":"https://images.unsplash.com/photo-1622279457486-62dcc4a431d6?q=80&w=1000&auto=format&fit=crop","category":"Courts","name":"Grass Courts"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363731-ti1gwsue.jpg","category":"Courts","name":"Hard Courts"},{"category":"Courts","name":"Indoor Courts","imageSrc":"https://images.unsplash.com/photo-1530915534664-4ac6423816b7?q=80&w=1000&auto=format&fit=crop"},{"category":"Coaching","name":"Private Lessons","imageSrc":"https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=1000&auto=format&fit=crop"},{"category":"Coaching","name":"Group Clinics","imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363730-qzocx6gy.webp"},{"category":"Coaching","name":"Junior Academy","imageSrc":"https://images.unsplash.com/photo-1542144582-1ba00456b5e3?q=80&w=1000&auto=format&fit=crop"},{"category":"Amenities","name":"Pro Shop","imageSrc":"https://images.unsplash.com/photo-1560012057-4372e14c5085?q=80&w=1000&auto=format&fit=crop"},{"category":"Amenities","name":"Clubhouse","imageSrc":"https://images.unsplash.com/photo-1595435934249-5df7ed86e1c0?q=80&w=1000&auto=format&fit=crop"},{"category":"Amenities","name":"Locker Rooms","imageSrc":"https://images.unsplash.com/photo-1622279457486-62dcc4a431d6?q=80&w=1000&auto=format&fit=crop"}]}
|
||||
items={[{"category":"Courts","name":"Courts","imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952546030-f2ubckey.jpg","category":"Courts","name":"Grass Courts"},{"imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363731-ti1gwsue.jpg","category":"Courts","name":"Hard Courts"},{"category":"Courts","name":"Indoor Courts Private Lessons Private Lessons","imageSrc":"https://images.unsplash.com/photo-1530915534664-4ac6423816b7?q=80&w=1000&auto=format&fit=crop"},{"category":"Coaching","name":"Private Lessons","imageSrc":"https://images.unsplash.com/photo-1554068865-24cecd4e34b8?q=80&w=1000&auto=format&fit=crop"},{"category":"Coaching","name":"Group Clinics","imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951363730-qzocx6gy.webp"},{"category":"Coaching","name":"Junior Academy","imageSrc":"https://images.unsplash.com/photo-1542144582-1ba00456b5e3?q=80&w=1000&auto=format&fit=crop"},{"category":"Amenities","name":"Pro Shop","imageSrc":"https://images.unsplash.com/photo-1560012057-4372e14c5085?q=80&w=1000&auto=format&fit=crop"},{"category":"Amenities","name":"Clubhouse","imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782951920218-dn9n7n03.png"},{"category":"Amenities","name":"Locker Rooms","imageSrc":"https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952546030-f2ubckey.jpg"}]}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user