2 Commits

2 changed files with 6 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ interface PricingCardOneProps {
textBoxButtonContainerClassName?: string; textBoxButtonContainerClassName?: string;
textBoxButtonClassName?: string; textBoxButtonClassName?: string;
textBoxButtonTextClassName?: string; textBoxButtonTextClassName?: string;
backgroundImage?: string;
} }
interface PricingCardItemProps { interface PricingCardItemProps {
@@ -142,6 +143,7 @@ const PricingCardOne = ({
textBoxButtonContainerClassName = "", textBoxButtonContainerClassName = "",
textBoxButtonClassName = "", textBoxButtonClassName = "",
textBoxButtonTextClassName = "", textBoxButtonTextClassName = "",
backgroundImage = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80"
}: PricingCardOneProps) => { }: PricingCardOneProps) => {
const theme = useTheme(); const theme = useTheme();
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
@@ -154,6 +156,7 @@ const PricingCardOne = ({
uniformGridCustomHeightClasses={uniformGridCustomHeightClasses} uniformGridCustomHeightClasses={uniformGridCustomHeightClasses}
animationType={animationType} animationType={animationType}
supports3DAnimation={true} supports3DAnimation={true}
backgroundImage={backgroundImage}
title={title} title={title}
titleSegments={titleSegments} titleSegments={titleSegments}

View File

@@ -53,6 +53,7 @@ interface ProductCardFourProps {
textBoxButtonContainerClassName?: string; textBoxButtonContainerClassName?: string;
textBoxButtonClassName?: string; textBoxButtonClassName?: string;
textBoxButtonTextClassName?: string; textBoxButtonTextClassName?: string;
backgroundImage?: string;
} }
interface ProductCardItemProps { interface ProductCardItemProps {
@@ -150,6 +151,7 @@ const ProductCardFour = ({
textBoxButtonContainerClassName = "", textBoxButtonContainerClassName = "",
textBoxButtonClassName = "", textBoxButtonClassName = "",
textBoxButtonTextClassName = "", textBoxButtonTextClassName = "",
backgroundImage = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80",
}: ProductCardFourProps) => { }: ProductCardFourProps) => {
const theme = useTheme(); const theme = useTheme();
const { products: fetchedProducts, isLoading } = useProducts(); const { products: fetchedProducts, isLoading } = useProducts();
@@ -193,7 +195,7 @@ const ProductCardFour = ({
buttons={buttons} buttons={buttons}
textboxLayout={textboxLayout} textboxLayout={textboxLayout}
useInvertedBackground={useInvertedBackground} useInvertedBackground={useInvertedBackground}
className={className} className={cls(className, "bg-cover bg-center", { backgroundImage: `url(${backgroundImage})` })}
containerClassName={containerClassName} containerClassName={containerClassName}
gridClassName={gridClassName} gridClassName={gridClassName}
carouselClassName={carouselClassName} carouselClassName={carouselClassName}