From 8b388eb098b5aa9e68c89c6e6e83fc1a2acca916 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Sat, 4 Jul 2026 21:51:06 +0000 Subject: [PATCH] Bob AI: Updated hero and about sections to use user photos as backgr --- src/pages/HomePage.tsx | 4 +- src/pages/HomePage/sections/About.tsx | 99 +++++++++++++++++--- src/pages/HomePage/sections/Contact.tsx | 2 +- src/pages/HomePage/sections/Hero.tsx | 22 ++--- src/pages/HomePage/sections/KartScroller.tsx | 35 +++++++ 5 files changed, 137 insertions(+), 25 deletions(-) create mode 100644 src/pages/HomePage/sections/KartScroller.tsx diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 229d24a..175d67f 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -12,7 +12,8 @@ import AboutSection from './HomePage/sections/About'; import ContactSection from './HomePage/sections/Contact'; -import GallerySection from './HomePage/sections/Gallery';export default function HomePage(): React.JSX.Element { +import GallerySection from './HomePage/sections/Gallery'; +import KartScrollerSection from './HomePage/sections/KartScroller';export default function HomePage(): React.JSX.Element { return ( @@ -28,6 +29,7 @@ import GallerySection from './HomePage/sections/Gallery';export default function + ); } diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx index 52bb5a0..66afd46 100644 --- a/src/pages/HomePage/sections/About.tsx +++ b/src/pages/HomePage/sections/About.tsx @@ -1,17 +1,94 @@ -// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this -// file as the canonical source for the "about" 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 { useScroll, useTransform, motion } from "motion/react"; +import Button from "@/components/ui/Button"; +import TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import React from 'react'; -import AboutTextFill from "@/components/sections/about/AboutTextFill"; +type AboutTextFillProps = { + tag?: string; + title: string; + description?: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; + textAnimation: "slide-up" | "fade-blur" | "fade"; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +const AboutInline = () => { + const sectionRef = useRef(null); + const words = "Úspechy sa nerodia cez noc. Sú výsledkom tvrdej práce.".split(" "); + + const { scrollYProgress } = useScroll({ + target: sectionRef, + offset: ["start 0.8", "start 0.2"], + }); + + const Word = ({ word, index }: { word: string; index: number }) => { + const start = index / words.length; + const end = (index + 1) / words.length; + const opacity = useTransform(scrollYProgress, [start, end], [0.15, 1]); + return ( + + {word} + + ); + }; -export default function AboutSection(): React.JSX.Element { return ( -
- +
+
+ +
+
+
+
+ {undefined && ( +
+

{undefined}

+ )} + +

+ {words.map((word, i) => ( + + {i > 0 && " "} + + + ))} +

+ + {undefined && ( + + )} + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ + {/* Removed inline image to use as background instead */} +
+
+ ); +}; + +export default function AboutSection() { + return ( +
+ +
); } diff --git a/src/pages/HomePage/sections/Contact.tsx b/src/pages/HomePage/sections/Contact.tsx index dc60753..e266d18 100644 --- a/src/pages/HomePage/sections/Contact.tsx +++ b/src/pages/HomePage/sections/Contact.tsx @@ -9,7 +9,7 @@ export default function ContactSection(): React.JSX.Element {
- + -
+
); } diff --git a/src/pages/HomePage/sections/KartScroller.tsx b/src/pages/HomePage/sections/KartScroller.tsx new file mode 100644 index 0000000..f57860e --- /dev/null +++ b/src/pages/HomePage/sections/KartScroller.tsx @@ -0,0 +1,35 @@ +import React from 'react'; +import { motion, useScroll, useTransform, useVelocity, useSpring } from 'motion/react'; + +export default function KartScrollerSection() { + const { scrollYProgress } = useScroll(); + + const y = useTransform(scrollYProgress, [0, 1], ['10vh', '85vh']); + + const scrollVelocity = useVelocity(scrollYProgress); + const smoothVelocity = useSpring(scrollVelocity, { damping: 50, stiffness: 400 }); + + const scaleY = useTransform(smoothVelocity, [-2, 0, 2], [1.5, 1, 1.5]); + + const fireOpacity = useTransform(smoothVelocity, [0, 0.5], [0, 1]); + + return ( +
+ + + 🔥 + + +
+ 🏎️ +
+
+
+ ); +} \ No newline at end of file -- 2.49.1