Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 153ad3e960 | |||
| f62a9472d6 |
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user