From d564a6d9f4cf797618f5239df4c484a4ba8dda35 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sat, 13 Jun 2026 20:23:56 +0000 Subject: [PATCH] Bob AI: Revert failed prop addition --- src/pages/HomePage.tsx | 172 ++--------- src/pages/HomePage/sections/About.tsx | 24 ++ src/pages/HomePage/sections/Contact.tsx | 27 ++ src/pages/HomePage/sections/Faq.tsx | 62 ++++ src/pages/HomePage/sections/Hero.tsx | 309 ++++++++++++++++++++ src/pages/HomePage/sections/Services.tsx | 29 ++ src/pages/HomePage/sections/Testimonial.tsx | 20 ++ 7 files changed, 490 insertions(+), 153 deletions(-) create mode 100644 src/pages/HomePage/sections/About.tsx create mode 100644 src/pages/HomePage/sections/Contact.tsx create mode 100644 src/pages/HomePage/sections/Faq.tsx create mode 100644 src/pages/HomePage/sections/Hero.tsx create mode 100644 src/pages/HomePage/sections/Services.tsx create mode 100644 src/pages/HomePage/sections/Testimonial.tsx diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 4ac7766..7fdb980 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,16 +1,22 @@ +// AUTO-GENERATED shell by per-section-migrate. +// Section bodies live in .//sections/.tsx. Edit the section +// files directly. Non-block content (wrappers, non-inlinable sections) is +// preserved inline; extracted section blocks become refs. + import { motion } from "motion/react"; import { StyleProvider } from "@/components/ui/StyleProvider"; import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; -import TestimonialTrustCard from "@/components/sections/testimonial/TestimonialTrustCard"; -import HeroWorkScrollStack from "@/components/sections/hero/HeroWorkScrollStack"; -import AboutTestimonialParallax from "@/components/sections/about/AboutTestimonialParallax"; -import FeaturesBentoGridCta from "@/components/sections/features/FeaturesBentoGridCta"; -import FaqTabbedAccordion from "@/components/sections/faq/FaqTabbedAccordion"; -import ContactSplitFormParallax from "@/components/sections/contact/ContactSplitFormParallax"; import LoaderReveal from "@/components/ui/LoaderReveal"; import CornerGlowBackground from "@/components/ui/CornerGlowBackground"; +import React from 'react'; +import HeroSection from './HomePage/sections/Hero'; +import TestimonialSection from './HomePage/sections/Testimonial'; +import AboutSection from './HomePage/sections/About'; +import ServicesSection from './HomePage/sections/Services'; +import FaqSection from './HomePage/sections/Faq'; +import ContactSection from './HomePage/sections/Contact'; -export default function HomePage() { +export default function HomePage(): React.JSX.Element { return ( - + - + -
- -
+ -
- -
+ - + -
- -
+
diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx new file mode 100644 index 0000000..d04b60f --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,24 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "about" section. + +import React from 'react'; +import AboutTestimonialParallax from "@/components/sections/about/AboutTestimonialParallax"; + +export default function AboutSection(): React.JSX.Element { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Contact.tsx b/src/pages/HomePage/sections/Contact.tsx new file mode 100644 index 0000000..8aaa44c --- /dev/null +++ b/src/pages/HomePage/sections/Contact.tsx @@ -0,0 +1,27 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "contact" section. + +import React from 'react'; +import ContactSplitFormParallax from "@/components/sections/contact/ContactSplitFormParallax"; + +export default function ContactSection(): React.JSX.Element { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Faq.tsx b/src/pages/HomePage/sections/Faq.tsx new file mode 100644 index 0000000..f443e8b --- /dev/null +++ b/src/pages/HomePage/sections/Faq.tsx @@ -0,0 +1,62 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "faq" section. + +import React from 'react'; +import FaqTabbedAccordion from "@/components/sections/faq/FaqTabbedAccordion"; + +export default function FaqSection(): React.JSX.Element { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Hero.tsx b/src/pages/HomePage/sections/Hero.tsx new file mode 100644 index 0000000..2a7f736 --- /dev/null +++ b/src/pages/HomePage/sections/Hero.tsx @@ -0,0 +1,309 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import { useRef, useEffect } from "react"; +import { motion } from "motion/react"; +import { ArrowRight } from "lucide-react"; +import gsap from "gsap"; +import { ScrollTrigger } from "gsap/ScrollTrigger"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import HeroBackgroundSlot from "@/components/ui/HeroBackgroundSlot"; +import TextAnimation from "@/components/ui/TextAnimation"; +import { useButtonClick } from "@/hooks/useButtonClick"; + +const primaryButton = { + text: "Book a call with me", + href: "#contact", + avatarSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/avatar.webp", + avatarLabel: "You" +}; +const items = [ + { + title: "HydroFlow Product Launch", + description: "Beverage brand shoot. Every frame engineered to sell.", + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/screen-1.webp", + tag: "Product Shot" + }, + { + title: "Webild Athlete Campaign", + description: "Sports tech shoot. Wearables captured in raw motion.", + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/screen-2.webp", + tag: "Photography" + }, + { + title: "Maru Residence", + description: "Architectural interior shoot. Minimal compositions.", + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/screen-3.webp", + tag: "Interior Design" + } +]; +const secondaryButton = { + text: "View all my projects", + href: "#" +}; + +gsap.registerPlugin(ScrollTrigger); + +interface HeroWorkScrollStackProps { + tag: string; + title: string; + titleHighlight: string; + description: string; + descriptionMuted: string; + primaryButton: { text: string; href: string; avatarSrc: string; avatarLabel: string }; + sectionTag: string; + sectionTitle: string; + sectionDescription: string; + items: [ + { title: string; description: string; imageSrc: string; tag: string }, + { title: string; description: string; imageSrc: string; tag: string }, + { title: string; description: string; imageSrc: string; tag: string } + ]; + secondaryButton?: { text: string; href: string }; + heroAnimationDelay?: number; +} + +const HeroInline = () => { + const animationRef = useRef(null); + const placeholderRef = useRef(null); + const card1Ref = useRef(null); + const card2Ref = useRef(null); + const card3Ref = useRef(null); + const handlePrimaryClick = useButtonClick(primaryButton.href); + const handleSecondaryClick = useButtonClick(secondaryButton?.href || "#"); + + useEffect(() => { + const isDesktop = window.matchMedia("(min-width: 768px)").matches; + + const ctx = gsap.context(() => { + const cardRefs = [card1Ref.current, card2Ref.current, card3Ref.current]; + const placeholder = placeholderRef.current; + if (!placeholder) return; + + const placeholderRect = placeholder.getBoundingClientRect(); + const placeholderCenterY = placeholderRect.top + placeholderRect.height / 2; + + if (isDesktop) { + // DESKTOP: Scrub animation tied to scroll position + const xOffsets = ["32rem", "14.5rem", "-1.8rem"]; + const yAdjustments = [0, -48, 0]; + const rotations = [-5, 0, 5]; + const scales = [1.35, 1.3, 1.25]; + const zIndexes = [30, 20, 10]; + + const tl = gsap.timeline({ + scrollTrigger: { + trigger: animationRef.current, + start: "top top", + end: "bottom bottom", + scrub: 1, + }, + }); + + cardRefs.forEach((card, i) => { + if (!card) return; + const cardRect = card.getBoundingClientRect(); + const cardCenterY = cardRect.top + cardRect.height / 2; + const yOffset = placeholderCenterY - cardCenterY; + + gsap.set(card, { + x: xOffsets[i], + y: yOffset + yAdjustments[i], + rotation: rotations[i], + scale: scales[i], + zIndex: zIndexes[i], + willChange: "transform", + force3D: true, + }); + + tl.to(card, { x: 0, y: 0, rotation: 0, scale: 1, duration: 0.4, ease: "none" }, 0); + tl.to(card, { zIndex: 1, duration: 0.1, ease: "none" }, 0.3); + }); + } else { + // MOBILE: Toggle animation - play/reverse on scroll + const xOffsets = ["2.5rem", "0.5rem", "-1rem"]; + const yAdjustments = [-10, -30, 10]; + const rotations = [-5, 0, 5]; + const scales = [0.65, 0.7, 0.75]; + const zIndexes = [30, 20, 10]; + + cardRefs.forEach((card, i) => { + if (!card) return; + const cardRect = card.getBoundingClientRect(); + const cardCenterY = cardRect.top + cardRect.height / 2; + const yOffset = placeholderCenterY - cardCenterY; + + gsap.set(card, { + x: xOffsets[i], + y: yOffset + yAdjustments[i], + rotation: rotations[i], + scale: scales[i], + zIndex: zIndexes[i], + willChange: "transform", + force3D: true, + }); + + gsap.to(card, { + x: 0, + y: 0, + rotation: 0, + scale: 1, + duration: 1.2, + ease: "power2.inOut", + scrollTrigger: { + trigger: placeholder, + start: "top 35%", + toggleActions: "play none none reverse", + }, + }); + }); + } + }, animationRef); + + return () => ctx.revert(); + }, []); + + return ( +
+
+
+ + +
+
+ +
+ +

{"1 spot left this month"}

+
+ +

+ + {"Design that"}{" "} + {"commands attention."} + +

+ +

+ {"Design engineered for performance, not just aesthetics."}{" "} + {"I craft every visual touchpoint your brand needs to capture attention and convert it into revenue."} +

+ + +
+
+ +
+
+
+ + + + +
+ + {primaryButton.avatarLabel} + +
+
+
+
+ {primaryButton.text} +
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
+

{"Selected Work"}

+
+ + + + +
+ +
+ {items.map((item, index) => { + const cardRef = index === 0 ? card1Ref : index === 1 ? card2Ref : card3Ref; + return ( +
+
+
+ + + {item.tag} + +
+
+

+ {item.title}. + {item.description} +

+
+ ); + })} +
+ + {secondaryButton && ( + + )} +
+
+
+
+ ); +}; + +export default function HeroSection() { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Services.tsx b/src/pages/HomePage/sections/Services.tsx new file mode 100644 index 0000000..9523117 --- /dev/null +++ b/src/pages/HomePage/sections/Services.tsx @@ -0,0 +1,29 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "services" section. + +import React from 'react'; +import FeaturesBentoGridCta from "@/components/sections/features/FeaturesBentoGridCta"; + +export default function ServicesSection(): React.JSX.Element { + return ( +
+ +
+ ); +} diff --git a/src/pages/HomePage/sections/Testimonial.tsx b/src/pages/HomePage/sections/Testimonial.tsx new file mode 100644 index 0000000..8f77d31 --- /dev/null +++ b/src/pages/HomePage/sections/Testimonial.tsx @@ -0,0 +1,20 @@ +// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this +// file as the canonical source for the "testimonial" section. + +import React from 'react'; +import TestimonialTrustCard from "@/components/sections/testimonial/TestimonialTrustCard"; + +export default function TestimonialSection(): React.JSX.Element { + return ( +
+ +
+ ); +}