From cde775281d8f13f9b5f2d96042f669972dbcbf8f Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Mon, 22 Jun 2026 07:37:03 +0000 Subject: [PATCH] Bob AI: Update hero and services sections with project data --- 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 | 143 +++++++++ src/pages/HomePage/sections/Testimonial.tsx | 20 ++ 7 files changed, 604 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 fc6ca66..b714c33 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..afd5cbe --- /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..b418d77 --- /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..55be7b0 --- /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..9fc8fc7 --- /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 = [ + { + description: "A comprehensive communication platform.", + title: "SanchaarSetu", + tag: "Web App", + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/screen-1.webp" + }, + { + tag: "Simulation", + description: "Virtual representation of physical systems.", + title: "Digital Twin", + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/screen-2.webp" + }, + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/screen-3.webp", + description: "Automated Request for Proposal management.", + title: "RFP System", + tag: "Enterprise" + } +]; +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"}

+
+ +

+ + {"Software Engineer"}{" "} + {"Portfolio"} + +

+ +

+ {"Showcasing my recent projects and technical expertise."}{" "} + {"I build scalable applications and innovative solutions."} +

+ + +
+
+ +
+
+
+ + + + +
+ + {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..603c1b8 --- /dev/null +++ b/src/pages/HomePage/sections/Services.tsx @@ -0,0 +1,143 @@ +/* eslint-disable */ +// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import { cls } from "@/lib/utils"; + +const features = [ + { + description: "A comprehensive communication platform built for scale and reliability.", + title: "SanchaarSetu", + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/photography.webp" + }, + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/product-design.webp", + description: "Virtual representation of physical systems for real-time monitoring and analysis.", + title: "Digital Twin" + }, + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/website.webp", + description: "Automated Request for Proposal management system streamlining enterprise workflows.", + title: "RFP System" + }, + { + imageSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/videos.webp", + description: "An innovative application focused on user safety and emergency response.", + title: "Saviher" + } +]; +const ctaButton = { + text: "Book a call with me", + href: "#contact", + avatarSrc: "https://storage.googleapis.com/webild/default/templates/creative-portfolio/avatar.webp", + avatarLabel: "You" +}; + +type FeatureItem = { + title: string; + description: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +interface FeaturesBentoGridCtaProps { + tag: string; + title: string; + description: string; + features: [FeatureItem, FeatureItem, FeatureItem, FeatureItem]; + ctaButton?: { + text: string; + href: string; + avatarSrc?: string; + avatarLabel?: string; + }; +} + +const ServicesInline = () => { + const colSpans = ["md:col-span-5", "md:col-span-7", "md:col-span-7", "md:col-span-5"]; + + return ( +
+
+ + + +
+ {features.map((feature, index) => ( +
+
+ +
+
+

{feature.title}

+

{feature.description}

+
+
+ ))} +
+
+
+
+ ); +}; + +export default function ServicesSection() { + 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 ( +
+ +
+ ); +} -- 2.49.1