33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
|
|
import Card from '@mui/material/Card';
|
||
|
|
import CardActions from '@mui/material/CardActions';
|
||
|
|
import CardContent from '@mui/material/CardContent';
|
||
|
|
import CardMedia from '@mui/material/CardMedia';
|
||
|
|
import Button from '@mui/material/Button';
|
||
|
|
import Typography from '@mui/material/Typography';
|
||
|
|
|
||
|
|
export default function ImgMediaCard() {
|
||
|
|
return (
|
||
|
|
<Card sx={{ maxWidth: 345 }}>
|
||
|
|
<CardMedia
|
||
|
|
component="img"
|
||
|
|
alt="green iguana"
|
||
|
|
height="140"
|
||
|
|
image="/static/images/cards/contemplative-reptile.jpg"
|
||
|
|
/>
|
||
|
|
<CardContent>
|
||
|
|
<Typography gutterBottom variant="h5" component="div">
|
||
|
|
Lizard
|
||
|
|
</Typography>
|
||
|
|
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
||
|
|
Lizards are a widespread group of squamate reptiles, with over 6,000
|
||
|
|
species, ranging across all continents except Antarctica
|
||
|
|
</Typography>
|
||
|
|
</CardContent>
|
||
|
|
<CardActions>
|
||
|
|
<Button size="small">Share</Button>
|
||
|
|
<Button size="small">Learn More</Button>
|
||
|
|
</CardActions>
|
||
|
|
</Card>
|
||
|
|
);
|
||
|
|
}
|