From 361541e3b584eed8a8b31dda95c81f0ab32aa727 Mon Sep 17 00:00:00 2001 From: kudinDmitriyUp Date: Mon, 8 Jun 2026 11:10:19 +0000 Subject: [PATCH] Bob AI: Added 3-5 star ratings to product images in Our Creations --- src/pages/HomePage/sections/Products.tsx | 181 +++++++++++++++++++---- 1 file changed, 151 insertions(+), 30 deletions(-) diff --git a/src/pages/HomePage/sections/Products.tsx b/src/pages/HomePage/sections/Products.tsx index 825123a..860c330 100644 --- a/src/pages/HomePage/sections/Products.tsx +++ b/src/pages/HomePage/sections/Products.tsx @@ -1,36 +1,157 @@ -// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this -// file as the canonical source for the "products" 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 TextAnimation from "@/components/ui/TextAnimation"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import ScrollReveal from "@/components/ui/ScrollReveal"; +import { cls } from "@/lib/utils"; +import { Star } from "lucide-react"; -import React from 'react'; -import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento'; -import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; +const items = [ + { + imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-chocolate-cake_23-2148549963.jpg", + href: "#", + rating: 5 + }, + { + imageSrc: "http://img.b2bpic.net/free-photo/delicious-pastry-with-dried-orange-slices-black-board-high-quality-photo_114579-69077.jpg", + href: "#", + rating: 4 + }, + { + imageSrc: "http://img.b2bpic.net/free-photo/marshmallow-white-plate-table-with-mug-hot-coffee_114579-604.jpg", + href: "#", + rating: 5 + }, + { + imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-crusty-bread-cutting-board-wooden-background-with-copy-space_141793-25656.jpg", + href: "#", + rating: 3 + }, + { + imageSrc: "http://img.b2bpic.net/free-photo/beautiful-cake-sweet-snacks_181624-27093.jpg", + href: "#", + rating: 4 + }, + { + imageSrc: "http://img.b2bpic.net/free-photo/homemade-delicious-rustic-summer-berry-tartles_114579-10242.jpg", + href: "#", + rating: 5 + }, + { + imageSrc: "http://img.b2bpic.net/free-photo/wedding-cake-with-flowers_23-2148120660.jpg", + href: "#", + rating: 4 + } +]; + +type FeatureItem = { + href?: string; +} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); + +interface FeaturesImageBentoProps { + tag: string; + title: string; + description: string; + primaryButton?: { text: string; href: string }; + secondaryButton?: { text: string; href: string }; + items: [FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem]; +} + +const ProductsInline = () => { + const gridClasses = [ + "md:col-span-2", + "md:col-span-4", + "md:col-span-3", + "md:col-span-3", + "md:col-span-2", + "md:col-span-2", + "md:col-span-2", + ]; + + const staggerDelays = [ + 0, + 0.1, + 0, + 0.1, + 0, + 0.1, + 0.2, + ]; -export default function ProductsSection(): React.JSX.Element { return ( -
- - - +
+
+
+
+

{"Our Creations"}

+
+ + + + + + {(undefined || undefined) && ( +
+ {undefined &&
+ )} +
+ +
+ {items.map((item, index) => { + const content = ( +
+ +
+ {[...Array(item.rating || 5)].map((_, i) => ( + + ))} +
+
+ ); + + return ( + + {item.href ? ( + + {content} + + ) : ( +
+ {content} +
+ )} +
+ ); + })} +
+
+ ); +}; + +export default function ProductsSection() { + return ( +
+ +
); } -- 2.49.1