diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx index a83779f..26b5b26 100644 --- a/src/pages/HomePage/sections/Hero.tsx +++ b/src/pages/HomePage/sections/Hero.tsx @@ -1,120 +1,21 @@ -/* 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"; +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "hero" section. -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-1782952650576-fsoubb3r.jpg" - }, - { - 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(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]; +import React from 'react'; +import HeroBillboardBrandFloatingCards from "@/components/sections/hero/HeroBillboardBrandFloatingCards"; +export default function HeroSection(): React.JSX.Element { return ( -
- - - {floatingCards.map((card, i) => ( - -
- -
-

{card.name}

+
+
-
- - ))} - -
-
- {"Grand Slam Club"} - - - -
-
-
- - - - -
-
- ); -}; - -export default function HeroSection() { - return ( -
- -
); }