From 0dd5ab4c528cf5e85ee16a6b047ca929e09af6e1 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Mon, 22 Jun 2026 20:35:48 +0000 Subject: [PATCH] Bob AI: Added scroll-triggered 3D glassmorphic objects to hero --- src/pages/HomePage/sections/Hero.tsx | 122 ++++++++++++++++++++++----- 1 file changed, 103 insertions(+), 19 deletions(-) diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx index 2e26db6..a6390e6 100644 --- a/src/pages/HomePage/sections/Hero.tsx +++ b/src/pages/HomePage/sections/Hero.tsx @@ -1,25 +1,109 @@ -// 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 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 { motion, useScroll, useTransform } from "motion/react"; +import { useRef } from "react"; -import React from 'react'; -import HeroSplit from '@/components/sections/hero/HeroSplit'; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +const primaryButton = { + text: "Start Your Project", + href: "#contact" +}; +const secondaryButton = { + text: "Learn More", + href: "#about" +}; + +type HeroSplitProps = { + tag: string; + title: string; + description: string; + primaryButton: { text: string; href: string }; + secondaryButton: { text: string; href: string }; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const HeroInline = () => { + const containerRef = useRef(null); + const { scrollYProgress } = useScroll({ + target: containerRef, + offset: ["start start", "end start"] + }); + + const y1 = useTransform(scrollYProgress, [0, 1], [0, 300]); + const rotate1 = useTransform(scrollYProgress, [0, 1], [0, 90]); + const scale1 = useTransform(scrollYProgress, [0, 1], [1, 1.5]); + + const y2 = useTransform(scrollYProgress, [0, 1], [0, -200]); + const rotate2 = useTransform(scrollYProgress, [0, 1], [0, -120]); + const scale2 = useTransform(scrollYProgress, [0, 1], [1, 0.8]); + + const y3 = useTransform(scrollYProgress, [0, 1], [0, 400]); + const rotate3 = useTransform(scrollYProgress, [0, 1], [0, 180]); + const scale3 = useTransform(scrollYProgress, [0, 1], [1, 1.2]); -export default function HeroSection(): React.JSX.Element { return ( -
- - - +
+ + + {/* Glassmorphic 3D-like Objects */} + + + + +
+
+
+
+

{"Innovation Hub"}

+
+ + + + + +
+
+
+
+ + + +
+
+ ); +}; + +export default function HeroSection() { + return ( +
+ +
); } -- 2.49.1