diff --git a/frontend-prep/src/components/ProductCard.css b/frontend-prep/src/components/ProductCard.css index 2ab86d2d..d0f543ea 100644 --- a/frontend-prep/src/components/ProductCard.css +++ b/frontend-prep/src/components/ProductCard.css @@ -404,9 +404,10 @@ div[data-category="gros&semi"] .success-message { transform: scale(1.05); } -.media-indicator i { +.media-indicator svg { color: #ffffff; - font-size: 18px; + width: 18px; + height: 18px; animation: cameraPulse 2s ease-in-out infinite; } @@ -453,7 +454,7 @@ div[data-category="zipette&co"] .media-indicator:hover { border-color: #f5f5f0; } -div[data-category="zipette&co"] .media-indicator i { +div[data-category="zipette&co"] .media-indicator svg { color: #1a1a1a; } @@ -621,8 +622,9 @@ div[data-category="gros&semi"] .details-button:hover { transform: scale(0.95); } -.video-close-btn i { - font-size: 18px; +.video-close-btn svg { + width: 18px; + height: 18px; } .video-player { @@ -670,8 +672,9 @@ div[data-category="gros&semi"] .details-button:hover { height: 36px; } - .video-close-btn i { - font-size: 16px; + .video-close-btn svg { + width: 16px; + height: 16px; } .video-player { @@ -702,8 +705,9 @@ div[data-category="gros&semi"] .details-button:hover { right: 10px; } - .media-indicator i { - font-size: 16px; + .media-indicator svg { + width: 16px; + height: 16px; } } diff --git a/frontend-prep/src/components/ProductCard.tsx b/frontend-prep/src/components/ProductCard.tsx index e9398d23..4fe92e53 100644 --- a/frontend-prep/src/components/ProductCard.tsx +++ b/frontend-prep/src/components/ProductCard.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { useNavigate } from "react-router-dom"; import { useCart } from "../context/useCart"; +import { Camera, Info, X } from "lucide-react"; import "./ProductCard.css"; function getTextColor(hex: string): string { @@ -139,7 +140,7 @@ function ProductCard({ onClick={handleVideoToggle} aria-label="Voir la vidéo du produit" > - + )} {/* ✨ Bouton "Détails" */} @@ -148,7 +149,7 @@ function ProductCard({ onClick={handleDetailsClick} aria-label="Voir les détails du produit" > - + Détails {isOutOfStock && ( @@ -229,7 +230,7 @@ function ProductCard({ onClick={handleCloseVideo} aria-label="Fermer la vidéo" > - +