Repository navigation
Expand file tree
/
Copy pathcard.jsx
More file actions
70 lines (66 loc) · 2.07 KB
/
Copy pathcard.jsx
File metadata and controls
70 lines (66 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import clsx from 'clsx';
import Collapse from '@material-ui/core/Collapse';
import Card from "@material-ui/core/Card";
import CardActionArea from "@material-ui/core/CardActionArea";
import CardActions from '@material-ui/core/CardActions';
import IconButton from '@material-ui/core/IconButton';
import CardContent from "@material-ui/core/CardContent";
import CardMedia from "@material-ui/core/CardMedia";
import Typography from "@material-ui/core/Typography";
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import "./style.css";
import "./images/graph.png";
import {ExpandMore} from "@material-ui/icons";
const useStyles = makeStyles({
card: {
minWidth: 350,
maxWidth:350,
minHeight:250,
borderRadius: 5,
'&:hover': {
boxShadow: `0 6px 12px 0 #000000
.rotate(-12)
.darken(0.2)
.fade(0.5)}`
,
},
},
media: {
height: 140
},
actionArea: {
padding:15,
transition: '0.2s',
'&:hover': {
transform: 'scale(1.1)',
},
},
});
export default function ImgMediaCard(props) {
const classes = useStyles();
return (
<CardActionArea className={classes.actionArea} m={20}>
<Card
className={classes.card}
>
<CardMedia
component="img"
alt="Contemplative Reptile"
height="140"
src={props.card.img}
/>
<CardContent>
<Typography gutterBottom variant="h5" component="h2" >
{props.card.title}
</Typography>
<Typography variant="body2" color="textSecondary" component="p">
{props.card.description}
</Typography>
<ExpandMore/>
</CardContent>
</Card>
</CardActionArea>
);
}