From feb3ec0d67e6100bde65ad1956dd74852a745559 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 3 Jun 2026 12:48:50 +0000 Subject: [PATCH 1/2] Bob AI: make images in the hero section expand on click in a popup a --- src/pages/HomePage/sections/Home.tsx | 108 +++++++++++++++++++-------- 1 file changed, 75 insertions(+), 33 deletions(-) diff --git a/src/pages/HomePage/sections/Home.tsx b/src/pages/HomePage/sections/Home.tsx index d3bede8..c2849e3 100644 --- a/src/pages/HomePage/sections/Home.tsx +++ b/src/pages/HomePage/sections/Home.tsx @@ -7,39 +7,81 @@ import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; export default function HomeSection(): React.JSX.Element { return ( -
- - - +
+ {React.createElement(() => { + const [selectedImage, setSelectedImage] = React.useState(null); + const items = [ + "http://img.b2bpic.net/free-photo/top-view-challah-dish-hanukkah_23-2151129284.jpg", + "http://img.b2bpic.net/free-photo/high-angle-people-wearing-linen-clothing_23-2151030585.jpg", + "http://img.b2bpic.net/free-photo/delicious-freshly-bakery-products-wooden-background-close-up-photo-freshly-baked-bread-products_613910-6800.jpg", + "https://images.unsplash.com/photo-1509440159596-0249088772ff?q=80&w=2072&auto=format&fit=crop", + "https://images.unsplash.com/photo-1558961363-fa8fdf82db35?q=80&w=1965&auto=format&fit=crop" + ]; + + return ( + <> +
+ + +

+ Freshly Baked, Made
Daily, Just for You +

+

+ Handcrafted pastries, custom cakes, and artisan breads using premium ingredients. Order online or visit us today. +

+
+
+
+ + +
+ {items.map((src, idx) => { + const rotations = ['-rotate-12', '-rotate-6', 'rotate-0', 'rotate-6', 'rotate-12']; + const zIndexes = ['z-10', 'z-20', 'z-30', 'z-20', 'z-10']; + const translates = ['-translate-x-40', '-translate-x-20', 'translate-x-0', 'translate-x-20', 'translate-x-40']; + + return ( +
setSelectedImage(src)} + > + +
+ ); + })} +
+
+
+ + {selectedImage && ( +
setSelectedImage(null)} + > + +
e.stopPropagation()} + > + Expanded view +
+
+ )} + + ); + })}
); } -- 2.49.1 From 884cfded40344311060086f68c9a001b97c2b956 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Wed, 3 Jun 2026 12:49:37 +0000 Subject: [PATCH 2/2] Bob AI: fix build errors (attempt 1) --- src/pages/HomePage/sections/Home.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/pages/HomePage/sections/Home.tsx b/src/pages/HomePage/sections/Home.tsx index c2849e3..acd037a 100644 --- a/src/pages/HomePage/sections/Home.tsx +++ b/src/pages/HomePage/sections/Home.tsx @@ -1,13 +1,14 @@ -// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this -// file as the canonical source for the "home" section. - import React from 'react'; import HeroTiltedCards from '@/components/sections/hero/HeroTiltedCards'; import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import Tag from "@/components/ui/Tag"; +import Button from "@/components/ui/Button"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; export default function HomeSection(): React.JSX.Element { return ( -
+
{React.createElement(() => { const [selectedImage, setSelectedImage] = React.useState(null); const items = [ @@ -26,17 +27,17 @@ export default function HomeSection(): React.JSX.Element {

Freshly Baked, Made
Daily, Just for You

-

+

Handcrafted pastries, custom cakes, and artisan breads using premium ingredients. Order online or visit us today.

-
+
-
+
{items.map((src, idx) => { const rotations = ['-rotate-12', '-rotate-6', 'rotate-0', 'rotate-6', 'rotate-12']; const zIndexes = ['z-10', 'z-20', 'z-30', 'z-20', 'z-10']; @@ -45,7 +46,7 @@ export default function HomeSection(): React.JSX.Element { return (
setSelectedImage(src)} > @@ -68,7 +69,7 @@ export default function HomeSection(): React.JSX.Element {
e.stopPropagation()} > ); -} +} \ No newline at end of file -- 2.49.1