4 Commits

Author SHA1 Message Date
kudinDmitriyUp
361541e3b5 Bob AI: Added 3-5 star ratings to product images in Our Creations 2026-06-08 11:10:19 +00:00
9a6506ef22 Merge version_6_1780916401215 into main
Merge version_6_1780916401215 into main
2026-06-08 11:03:09 +00:00
kudinDmitriyUp
961fac61a5 Bob AI: Added a 5-minute countdown timer to the top right of the Our 2026-06-08 11:02:28 +00:00
d9383fb1d5 Merge version_4_1780915548869 into main
Merge version_4_1780915548869 into main
2026-06-08 10:52:27 +00:00
2 changed files with 158 additions and 31 deletions

View File

@@ -72,7 +72,13 @@ const AboutInline = () => {
<div className="p-px w-full md:w-6/10 2xl:w-7/10 h-80 md:h-auto card rounded overflow-hidden">
<div className="relative size-full">
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/close-up-baker-hands-kneading-dough_23-2148302953.jpg"} className="absolute inset-0 object-cover rounded" />
<div className="absolute top-4 right-4 z-10 bg-background/90 backdrop-blur-sm px-4 py-2 rounded shadow-lg flex flex-col items-center border border-border">
<span className="text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-1">Discount Ends In</span>
<div className="text-xl font-bold text-primary-cta flex items-center gap-1">
<span>05</span>:<span>00</span>
</div>
</div>
<ImageOrVideo imageSrc={"http://img.b2bpic.net/free-photo/close-up-baker-hands-kneading-dough_23-2148302953.jpg"} className="absolute inset-0 object-cover rounded" />
</div>
</div>
</div>

View File

@@ -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 (
<div id="products" data-section="products">
<SectionErrorBoundary name="products">
<FeaturesImageBento
tag="Our Creations"
title="A Gallery of Sweet Perfection"
description="Explore our diverse range of artisan baked goods, from classic pastries to custom-designed cakes for every occasion. Each image tells a story of flavor and craftsmanship."
items={[
{
imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-chocolate-cake_23-2148549963.jpg", href: "#"},
{
imageSrc: "http://img.b2bpic.net/free-photo/delicious-pastry-with-dried-orange-slices-black-board-high-quality-photo_114579-69077.jpg", href: "#"},
{
imageSrc: "http://img.b2bpic.net/free-photo/marshmallow-white-plate-table-with-mug-hot-coffee_114579-604.jpg", href: "#"},
{
imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-crusty-bread-cutting-board-wooden-background-with-copy-space_141793-25656.jpg", href: "#"},
{
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-cake-sweet-snacks_181624-27093.jpg", href: "#"},
{
imageSrc: "http://img.b2bpic.net/free-photo/homemade-delicious-rustic-summer-berry-tartles_114579-10242.jpg", href: "#"},
{
imageSrc: "http://img.b2bpic.net/free-photo/wedding-cake-with-flowers_23-2148120660.jpg", href: "#"},
]}
/>
</SectionErrorBoundary>
<section aria-label="Features image bento section" className="py-20">
<div className="flex flex-col gap-8 md:gap-10">
<div className="flex flex-col items-center w-content-width mx-auto gap-2">
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
<p>{"Our Creations"}</p>
</div>
<TextAnimation
text={"A Gallery of Sweet Perfection"}
variant="fade-blur"
gradientText={true}
tag="h2"
className="md:max-w-8/10 text-6xl 2xl:text-7xl leading-[1.15] font-semibold text-center text-balance"
/>
<TextAnimation
text={"Explore our diverse range of artisan baked goods, from classic pastries to custom-designed cakes for every occasion. Each image tells a story of flavor and craftsmanship."}
variant="fade-blur"
gradientText={false}
tag="p"
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-center text-balance"
/>
{(undefined || undefined) && (
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3">
{undefined && <Button text={undefined.text} href={undefined.href} variant="primary"/>}
{undefined && <Button text={undefined.text} href={undefined.href} variant="secondary" animationDelay={0.1} />}
</div>
)}
</div>
<div className="w-content-width mx-auto grid grid-cols-1 md:grid-cols-6 gap-3">
{items.map((item, index) => {
const content = (
<div className="h-80 xl:h-100 2xl:h-120 overflow-hidden relative">
<ImageOrVideo
imageSrc={item.imageSrc}
videoSrc={item.videoSrc}
className="rounded group-hover:scale-105 transition-transform duration-500"
/>
<div className="absolute top-3 right-3 flex gap-0.5 bg-background/80 backdrop-blur-md px-2 py-1 rounded-full z-10">
{[...Array(item.rating || 5)].map((_, i) => (
<Star key={i} className="w-3.5 h-3.5 fill-yellow-400 text-yellow-400" />
))}
</div>
</div>
);
return (
<ScrollReveal key={index} variant="fade-blur" delay={staggerDelays[index]} className={cls("col-span-1 group", gridClasses[index])}>
{item.href ? (
<a href={item.href} className="block overflow-hidden rounded">
{content}
</a>
) : (
<div className="overflow-hidden rounded">
{content}
</div>
)}
</ScrollReveal>
);
})}
</div>
</div>
</section>
);
};
export default function ProductsSection() {
return (
<div data-webild-section="products" id="products">
<ProductsInline />
</div>
);
}