Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| be72b08fa2 |
@@ -23,41 +23,6 @@ type ProductCard = {
|
|||||||
isFavorited?: boolean;
|
isFavorited?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ProductCardOneProps {
|
|
||||||
products: ProductCard[];
|
|
||||||
carouselMode?: "auto" | "buttons";
|
|
||||||
gridVariant: ProductCardOneGridVariant;
|
|
||||||
uniformGridCustomHeightClasses?: string;
|
|
||||||
animationType: CardAnimationType;
|
|
||||||
title: string;
|
|
||||||
titleSegments?: TitleSegment[];
|
|
||||||
description: string;
|
|
||||||
tag?: string;
|
|
||||||
tagIcon?: LucideIcon;
|
|
||||||
buttons?: ButtonConfig[];
|
|
||||||
textboxLayout: TextboxLayout;
|
|
||||||
useInvertedBackground: InvertedBackground;
|
|
||||||
ariaLabel?: string;
|
|
||||||
className?: string;
|
|
||||||
containerClassName?: string;
|
|
||||||
cardClassName?: string;
|
|
||||||
imageClassName?: string;
|
|
||||||
textBoxTitleClassName?: string;
|
|
||||||
textBoxTitleImageWrapperClassName?: string;
|
|
||||||
textBoxTitleImageClassName?: string;
|
|
||||||
textBoxDescriptionClassName?: string;
|
|
||||||
cardNameClassName?: string;
|
|
||||||
cardPriceClassName?: string;
|
|
||||||
gridClassName?: string;
|
|
||||||
carouselClassName?: string;
|
|
||||||
controlsClassName?: string;
|
|
||||||
textBoxClassName?: string;
|
|
||||||
textBoxTagClassName?: string;
|
|
||||||
textBoxButtonContainerClassName?: string;
|
|
||||||
textBoxButtonClassName?: string;
|
|
||||||
textBoxButtonTextClassName?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ProductCardItemProps {
|
interface ProductCardItemProps {
|
||||||
product: ProductCard;
|
product: ProductCard;
|
||||||
shouldUseLightText: boolean;
|
shouldUseLightText: boolean;
|
||||||
@@ -152,12 +117,13 @@ const ProductCardOne = ({
|
|||||||
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
|
const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<span className="inline-block px-3 py-1 text-sm font-medium rounded-full bg-primary-cta/10 text-primary-cta">New Course</span>
|
||||||
<CardStack
|
<CardStack
|
||||||
mode={carouselMode}
|
mode={carouselMode}
|
||||||
gridVariant={gridVariant}
|
gridVariant={gridVariant}
|
||||||
uniformGridCustomHeightClasses={uniformGridCustomHeightClasses}
|
uniformGridCustomHeightClasses={uniformGridCustomHeightClasses}
|
||||||
animationType={animationType}
|
animationType={animationType}
|
||||||
|
|
||||||
title={title}
|
title={title}
|
||||||
titleSegments={titleSegments}
|
titleSegments={titleSegments}
|
||||||
description={description}
|
description={description}
|
||||||
@@ -194,6 +160,7 @@ const ProductCardOne = ({
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</CardStack>
|
</CardStack>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user