update UX card
This commit is contained in:
@@ -123,8 +123,18 @@ const ServicePageTemplate = ({
|
|||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
transition: "transform 0.3s ease, box-shadow 0.3s ease",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
transform: "scale(1.05)",
|
transform: {
|
||||||
boxShadow: 5,
|
xs: "none", // Pas d'hover sur mobile
|
||||||
|
md: "scale(1.05)", // Hover sur desktop uniquement
|
||||||
|
},
|
||||||
|
boxShadow: {
|
||||||
|
xs: 2, // Pas d'effet de hover sur mobile
|
||||||
|
md: 5, // Augmentation de l'ombre sur desktop
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"&:active": {
|
||||||
|
transform: "scale(0.98)", // Effet de clic pour le tactile
|
||||||
|
boxShadow: 3,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
onClick={() => handleCardClick(feature)}
|
onClick={() => handleCardClick(feature)}
|
||||||
@@ -132,11 +142,17 @@ const ServicePageTemplate = ({
|
|||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h3"
|
variant="h3"
|
||||||
sx={{ fontWeight: "bold", mb: 2, fontSize: 26 }}
|
sx={{
|
||||||
|
fontWeight: "bold",
|
||||||
|
mb: 2,
|
||||||
|
fontSize: 26,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{feature.title}
|
{feature.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2">{feature.description}</Typography>
|
<Typography variant="body2" sx={{ color: "#555" }}>
|
||||||
|
{feature.description}
|
||||||
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user