chore: fix
This commit is contained in:
@@ -14,7 +14,8 @@
|
|||||||
|
|
||||||
.product-card:hover {
|
.product-card:hover {
|
||||||
transform: scale(1.08);
|
transform: scale(1.08);
|
||||||
box-shadow: 0 8px 25px color-mix(in srgb, var(--category-color, white) 40%, transparent);
|
box-shadow: 0 8px 25px
|
||||||
|
color-mix(in srgb, var(--category-color, white) 40%, transparent);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ function ProductCard({
|
|||||||
{isOutOfStock
|
{isOutOfStock
|
||||||
? "Rupture de stock"
|
? "Rupture de stock"
|
||||||
: isComingSoon
|
: isComingSoon
|
||||||
? "Bientôt disponible"
|
? "BIENTÔT DISPONIBLE"
|
||||||
: "Ajouter rapidement"}
|
: "Ajouter rapidement"}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,9 @@ export default function ProductCard({
|
|||||||
)}
|
)}
|
||||||
{isComingSoon && (
|
{isComingSoon && (
|
||||||
<View style={styles.comingSoonOverlay}>
|
<View style={styles.comingSoonOverlay}>
|
||||||
<Text style={styles.comingSoonText}>COMMING SOON</Text>
|
<View style={styles.comingSoonBox}>
|
||||||
|
<Text style={styles.comingSoonText}>BIENTÔT DISPONIBLE</Text>
|
||||||
|
</View>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
@@ -477,13 +479,14 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
comingSoonOverlay: {
|
comingSoonOverlay: {
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: "50%",
|
top: 0,
|
||||||
left: "50%",
|
left: 0,
|
||||||
transform: [
|
right: 0,
|
||||||
{ translateX: -80 },
|
bottom: 0,
|
||||||
{ translateY: -25 },
|
justifyContent: "center",
|
||||||
{ rotate: "-15deg" },
|
alignItems: "center",
|
||||||
],
|
},
|
||||||
|
comingSoonBox: {
|
||||||
backgroundColor: "rgba(0,0,0,0.8)",
|
backgroundColor: "rgba(0,0,0,0.8)",
|
||||||
borderWidth: 4,
|
borderWidth: 4,
|
||||||
borderColor: "rgba(34,197,94,0.95)",
|
borderColor: "rgba(34,197,94,0.95)",
|
||||||
@@ -492,7 +495,7 @@ const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
comingSoonText: {
|
comingSoonText: {
|
||||||
color: "rgba(34,197,94,0.95)",
|
color: "rgba(34,197,94,0.95)",
|
||||||
fontSize: 24,
|
fontSize: 16,
|
||||||
fontWeight: "900",
|
fontWeight: "900",
|
||||||
letterSpacing: 2,
|
letterSpacing: 2,
|
||||||
textTransform: "uppercase",
|
textTransform: "uppercase",
|
||||||
|
|||||||
Reference in New Issue
Block a user