Skip to content

Commit

Permalink
Add hover effect to card interest
Browse files Browse the repository at this point in the history
  • Loading branch information
longtv2222 committed Nov 20, 2022
1 parent 9433267 commit 6978552
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/components/Interest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ export const Interest: React.FC<{ name: string }> = ({ name }) => {
<AccordionSummary expandIcon={<ExpandMore />}>
<Typography>{name}</Typography>
</AccordionSummary>
<AccordionDetails sx={{ display: "flex",flexWrap:"wrap",gap: 5, justifyContent:"center" }}>
<AccordionDetails sx={{ display: "flex", flexWrap: "wrap", gap: 5, justifyContent: "center" }}>
{articles.map((article, index) => (
<Card sx={{ width: "30%" }} key={index}>
<Card sx={{
width: "30%",
':hover': {
boxShadow: 10, // theme.shadows[20]
transform: "scale(1.02) perspective(0px)",
transition: "transform .5s, box-shadow 1s"
},
}} key={index}>
<CardMedia
component="img"
height="140"
Expand Down

0 comments on commit 6978552

Please sign in to comment.