Compare commits
1 Commits
version_34
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c5f8164df2 |
@@ -21,6 +21,8 @@ type ProductCard = {
|
||||
onFavorite?: () => void;
|
||||
onProductClick?: () => void;
|
||||
isFavorited?: boolean;
|
||||
duration: string;
|
||||
difficulty: string;
|
||||
};
|
||||
|
||||
interface ProductCardItemProps {
|
||||
@@ -80,6 +82,11 @@ const ProductCardItem = memo(({
|
||||
<ArrowUpRight className="h-4/10 text-background transition-transform duration-300 group-hover:rotate-45" strokeWidth={1.5} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div className="absolute bottom-0 left-0 right-0 top-0 flex flex-col items-center justify-center opacity-0 transition-opacity group-hover:opacity-100">
|
||||
<p className="text-sm text-center text-foreground/70">{product.duration}</p>
|
||||
<p className="text-sm text-center text-foreground/70">{product.difficulty}</p>
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user