Compare commits
1 Commits
version_34
...
version_35
| Author | SHA1 | Date | |
|---|---|---|---|
| c5f8164df2 |
@@ -21,6 +21,8 @@ type ProductCard = {
|
|||||||
onFavorite?: () => void;
|
onFavorite?: () => void;
|
||||||
onProductClick?: () => void;
|
onProductClick?: () => void;
|
||||||
isFavorited?: boolean;
|
isFavorited?: boolean;
|
||||||
|
duration: string;
|
||||||
|
difficulty: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ProductCardItemProps {
|
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} />
|
<ArrowUpRight className="h-4/10 text-background transition-transform duration-300 group-hover:rotate-45" strokeWidth={1.5} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</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>
|
</article>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user