2 Commits

Author SHA1 Message Date
153ad3e960 Bob AI: Modify the ProductCardOne component to add a background vide 2026-02-23 18:35:33 +02:00
f62a9472d6 Merge version_4 into main
Merge version_4 into main
2026-02-23 16:05:28 +00:00

View File

@@ -8,6 +8,7 @@ import ProductImage from "@/components/shared/ProductImage";
import { cls, shouldUseInvertedText } from "@/lib/utils"; import { cls, shouldUseInvertedText } from "@/lib/utils";
import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import { useTheme } from "@/providers/themeProvider/ThemeProvider";
import { useProducts } from "@/hooks/useProducts"; import { useProducts } from "@/hooks/useProducts";
import { useRef, useEffect } from "react";
import type { Product } from "@/lib/api/product"; import type { Product } from "@/lib/api/product";
import type { LucideIcon } from "lucide-react"; import type { LucideIcon } from "lucide-react";
import type { ButtonConfig, GridVariant, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types"; import type { ButtonConfig, GridVariant, CardAnimationType, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types";
@@ -52,6 +53,8 @@ interface ProductCardOneProps {
textBoxButtonContainerClassName?: string; textBoxButtonContainerClassName?: string;
textBoxButtonClassName?: string; textBoxButtonClassName?: string;
textBoxButtonTextClassName?: string; textBoxButtonTextClassName?: string;
backgroundVideoUrl?: string;
showBackgroundVideo?: boolean;
} }
interface ProductCardItemProps { interface ProductCardItemProps {
@@ -72,7 +75,7 @@ const ProductCardItem = memo(({
cardPriceClassName = "", cardPriceClassName = "",
}: ProductCardItemProps) => { }: ProductCardItemProps) => {
return ( return (
<article <article className="relative overflow-hidden"
className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)} className={cls("card group relative h-full flex flex-col gap-4 cursor-pointer p-4 rounded-theme-capped", cardClassName)}
onClick={product.onProductClick} onClick={product.onProductClick}
role="article" role="article"