diff --git a/frontend-prep/public/IMG_0209.MP4:Zone.Identifier b/frontend-prep/public/IMG_0209.MP4:Zone.Identifier
deleted file mode 100644
index 053d1127..00000000
--- a/frontend-prep/public/IMG_0209.MP4:Zone.Identifier
+++ /dev/null
@@ -1,3 +0,0 @@
-[ZoneTransfer]
-ZoneId=3
-HostUrl=about:internet
diff --git a/frontend-prep/src/api/api.ts b/frontend-prep/src/api/api.ts
index 11dc6c05..49e355d1 100644
--- a/frontend-prep/src/api/api.ts
+++ b/frontend-prep/src/api/api.ts
@@ -817,6 +817,7 @@ export interface Product {
stock: number;
prices?: Array<{ quantity: number; price: number; active_price?: boolean }>;
media?: MediaItem[]; // ✅ CHANGÉ: string[] → MediaItem[]
+ coming_soon?: boolean;
}
export interface Category {
diff --git a/frontend-prep/src/components/ProductCard.css b/frontend-prep/src/components/ProductCard.css
index 4dbe3ae0..ff17b978 100644
--- a/frontend-prep/src/components/ProductCard.css
+++ b/frontend-prep/src/components/ProductCard.css
@@ -62,6 +62,29 @@
0 0 10px rgba(255, 0, 0, 0.5);
}
+.coming-soon-overlay {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%) rotate(-15deg);
+ text-align: center;
+ z-index: 5;
+ pointer-events: none;
+ background-color: rgba(245, 158, 11, 0.95);
+ color: white;
+ border: 6px solid white;
+ padding: clamp(0.5rem, 2vw, 0.8rem) clamp(1.5rem, 5vw, 2.5rem);
+ font-size: clamp(1.1rem, 4.5vw, 1.8rem);
+ font-weight: 900;
+ letter-spacing: 3px;
+ text-transform: uppercase;
+ white-space: nowrap;
+ box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
+ text-shadow:
+ 2px 2px 6px rgba(0, 0, 0, 0.6),
+ -2px -2px 6px rgba(0, 0, 0, 0.6);
+}
+
.product-card.out-of-stock {
opacity: 0.75;
}
diff --git a/frontend-prep/src/components/ProductCard.tsx b/frontend-prep/src/components/ProductCard.tsx
index 871f4f8b..287d6ba6 100644
--- a/frontend-prep/src/components/ProductCard.tsx
+++ b/frontend-prep/src/components/ProductCard.tsx
@@ -26,6 +26,7 @@ interface ProductCardProps {
hasVideo?: boolean;
videoUrl?: string; // ✨ Nouveau prop pour l'URL de la vidéo
categoryColor?: string;
+ coming_soon?: boolean;
}
function ProductCard({
@@ -40,6 +41,7 @@ function ProductCard({
hasVideo = false,
videoUrl,
categoryColor,
+ coming_soon,
}: ProductCardProps) {
const navigate = useNavigate();
const { addToCart } = useCart();
@@ -52,6 +54,7 @@ function ProductCard({
const [showVideo, setShowVideo] = useState(false); // ✨ État pour afficher/masquer la vidéo
const isOutOfStock = stock === 0;
+ const isComingSoon = coming_soon === true;
const normalizedCategory = (category || "autre").toLowerCase().trim();
const handleDetailsClick = (e: React.MouseEvent) => {
@@ -156,6 +159,9 @@ function ProductCard({
{isOutOfStock && (
SOLD OUT
)}
+ {isComingSoon && !isOutOfStock && (
+ À VENIR
+ )}
diff --git a/frontend-prep/src/pages/User/Accueil.tsx b/frontend-prep/src/pages/User/Accueil.tsx
index c79ce427..d3ac7734 100644
--- a/frontend-prep/src/pages/User/Accueil.tsx
+++ b/frontend-prep/src/pages/User/Accueil.tsx
@@ -219,6 +219,7 @@ function UserAccueil() {
product.category?.toLowerCase(),
)?.color
}
+ coming_soon={product.coming_soon}
/>
))}
diff --git a/frontend-prep/src/pages/User/ProductDetail.css b/frontend-prep/src/pages/User/ProductDetail.css
index 3a4c81ed..dfc40b8f 100644
--- a/frontend-prep/src/pages/User/ProductDetail.css
+++ b/frontend-prep/src/pages/User/ProductDetail.css
@@ -133,6 +133,40 @@
}
}
+/* Coming Soon Badge */
+.coming-soon-badge {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%) rotate(-15deg);
+ background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
+ color: white;
+ border: 4px solid white;
+ padding: clamp(1rem, 4vw, 1.5rem) clamp(2.5rem, 8vw, 4rem);
+ font-size: clamp(2rem, 8vw, 3.5rem);
+ font-weight: 900;
+ letter-spacing: 6px;
+ text-transform: uppercase;
+ white-space: nowrap;
+ box-shadow:
+ 0 0 40px rgba(245, 158, 11, 0.8),
+ 0 8px 32px rgba(0, 0, 0, 0.6);
+ text-shadow:
+ 2px 2px 12px rgba(0, 0, 0, 0.9),
+ 0 0 20px rgba(255, 255, 255, 0.3);
+ z-index: 10;
+ animation: pulseAmber 2s infinite;
+}
+
+@keyframes pulseAmber {
+ 0%, 100% {
+ transform: translate(-50%, -50%) rotate(-15deg) scale(1);
+ }
+ 50% {
+ transform: translate(-50%, -50%) rotate(-15deg) scale(1.05);
+ }
+}
+
/* Info Section */
.product-info-section {
display: flex;
diff --git a/frontend-prep/src/pages/User/ProductDetail.tsx b/frontend-prep/src/pages/User/ProductDetail.tsx
index 9f095e08..686ceb89 100644
--- a/frontend-prep/src/pages/User/ProductDetail.tsx
+++ b/frontend-prep/src/pages/User/ProductDetail.tsx
@@ -200,6 +200,7 @@ function ProductDetail() {
}
const isOutOfStock = product.stock === 0;
+ const isComingSoon = product.coming_soon === true;
const hasValidPrices = product.prices && product.prices.length > 0;
// Convertir la couleur hex en valeurs RGB pour les CSS rgba()
@@ -248,6 +249,7 @@ function ProductDetail() {
className="product-detail-image"
/>
{isOutOfStock && SOLD OUT
}
+ {isComingSoon && !isOutOfStock && À VENIR
}
diff --git a/mobile/src/components/ProductCard.tsx b/mobile/src/components/ProductCard.tsx
index 599176ec..f58fe9ca 100644
--- a/mobile/src/components/ProductCard.tsx
+++ b/mobile/src/components/ProductCard.tsx
@@ -36,6 +36,7 @@ interface ProductCardProps {
category: string;
stock: number;
unit?: string;
+ coming_soon?: boolean;
prices?: Array<{ quantity: number; price: number; active_price?: boolean }>;
media?: Array<{ url: string; type: string }>;
};
@@ -48,6 +49,7 @@ export default function ProductCard({ product, onPress, categoryColor }: Product
const { addToCart } = useCart();
const catColor = categoryColor ?? colors.accent;
const isSoldOut = product.stock <= 0;
+ const isComingSoon = product.coming_soon === true;
const activePrices = product.prices?.filter((p) => p.active_price !== false) ?? [];
const firstPrice = activePrices[0]?.price ?? null;
@@ -157,6 +159,11 @@ export default function ProductCard({ product, onPress, categoryColor }: Product
SOLD OUT
)}
+ {isComingSoon && (
+
+ À VENIR
+
+ )}
0;
const imageMedia = product.media?.find((m) => m.type === "image");
const videoMedia = product.media?.find((m) => m.type === "video");
@@ -517,6 +544,11 @@ export default function ProductDetailScreen() {
SOLD OUT
)}
+ {isComingSoon && !isOutOfStock && (
+
+ À VENIR
+
+ )}
{videoUri && !isOutOfStock && (