From 5d1f1a0db8da3c2db8a057f2c222c8e9afe73fc7 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Thu, 2 Jul 2026 00:57:50 +0000 Subject: [PATCH] Bob AI: Replaced the left floating card image in the hero section. --- src/pages/HomePage/sections/Hero.tsx | 129 +++++++++++++++++++++++---- 1 file changed, 114 insertions(+), 15 deletions(-) diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx index 26b5b26..4a704cb 100644 --- a/src/pages/HomePage/sections/Hero.tsx +++ b/src/pages/HomePage/sections/Hero.tsx @@ -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-1782952650576-fsoubb3r.jpg" + }, + { + name: "Grass Courts", + imageSrc: "https://storage.googleapis.com/webild/users/user_3AniccObAoDJgCkSlT6RJk7a8NL/uploaded-1782952546030-f2ubckey.jpg" + } +]; + +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]; -export default function HeroSection(): React.JSX.Element { return ( -
- +
+ + + {floatingCards.map((card, i) => ( + +
+ +
+

{card.name}

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