From 98ef4bfcfbacc8759635fc5909ed22a91bfa34df Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Mon, 8 Jun 2026 07:46:32 +0000 Subject: [PATCH] Bob AI: Add countdown timer overlay to hero image --- src/pages/HomePage/sections/Home.tsx | 107 +++++++++++++++++++++------ 1 file changed, 83 insertions(+), 24 deletions(-) diff --git a/src/pages/HomePage/sections/Home.tsx b/src/pages/HomePage/sections/Home.tsx index dc2ebc5..a501725 100644 --- a/src/pages/HomePage/sections/Home.tsx +++ b/src/pages/HomePage/sections/Home.tsx @@ -1,30 +1,89 @@ -// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this -// file as the canonical source for the "home" section. +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +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 ScrollReveal from "@/components/ui/ScrollReveal"; +import React from "react"; +import AvatarGroup from "@/components/ui/AvatarGroup"; -import React from 'react'; -import HeroBillboard from '@/components/sections/hero/HeroBillboard'; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +type HeroBillboardProps = { + tag?: string; + title: string; + description: string; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; + avatarsSrc?: string[]; + avatarsLabel?: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const HomeInline = () => { + const [timeLeft, setTimeLeft] = React.useState(300); + + React.useEffect(() => { + const timer = setInterval(() => { + setTimeLeft((prev) => (prev > 0 ? prev - 1 : 0)); + }, 1000); + return () => clearInterval(timer); + }, []); + + const minutes = Math.floor(timeLeft / 60); + const seconds = timeLeft % 60; + const formattedTime = `${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`; -export default function HomeSection(): React.JSX.Element { return ( -
- - - +
+ +
+
+ {["https://i.pravatar.cc/150?img=1","https://i.pravatar.cc/150?img=2","https://i.pravatar.cc/150?img=3","https://i.pravatar.cc/150?img=4","https://i.pravatar.cc/150?img=5"] && ["https://i.pravatar.cc/150?img=1","https://i.pravatar.cc/150?img=2","https://i.pravatar.cc/150?img=3","https://i.pravatar.cc/150?img=4","https://i.pravatar.cc/150?img=5"].length > 0 ? ( + + ) : undefined ? ( +
+

{undefined}

+
+ ) : null} + + + + + +
+
+
+ + + +
+ Opt in for today's discount! + {formattedTime} +
+
+
+ ); +}; + +export default function HomeSection() { + return ( +
+ +
); } -- 2.49.1