first commit
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
import * as React from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import Card from '@mui/material/Card';
|
||||
import CardActions from '@mui/material/CardActions';
|
||||
import CardContent from '@mui/material/CardContent';
|
||||
import Button from '@mui/material/Button';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
const bull = (
|
||||
<Box
|
||||
component="span"
|
||||
sx={{ display: 'inline-block', mx: '2px', transform: 'scale(0.8)' }}
|
||||
>
|
||||
•
|
||||
</Box>
|
||||
);
|
||||
|
||||
export default function BasicCard() {
|
||||
return (
|
||||
<Card sx={{ mb: '15px' }}>
|
||||
<CardContent>
|
||||
<Typography sx={{ fontSize: 14 }} color="text.secondary" gutterBottom>
|
||||
Word of the Day
|
||||
</Typography>
|
||||
|
||||
<Typography variant="h5" component="div">
|
||||
be{bull}nev{bull}o{bull}lent
|
||||
</Typography>
|
||||
|
||||
<Typography sx={{ mb: 1.5 }} color="text.secondary">
|
||||
adjective
|
||||
</Typography>
|
||||
|
||||
<Typography variant="body2">
|
||||
well meaning and kindly.
|
||||
<br />
|
||||
{'"a benevolent smile"'}
|
||||
</Typography>
|
||||
</CardContent>
|
||||
|
||||
<CardActions>
|
||||
<Button size="small">Learn More</Button>
|
||||
</CardActions>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
.cardWithBgImg {
|
||||
border-radius: 10px;
|
||||
padding: 25px 20px;
|
||||
margin-bottom: 15px;
|
||||
position: relative;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
}
|
||||
.cardWithBgImg::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
background-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
|
||||
border-radius: 10px;
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
import * as React from "react";
|
||||
import { styled } from "@mui/material/styles";
|
||||
import Card from "@mui/material/Card";
|
||||
import CardHeader from "@mui/material/CardHeader";
|
||||
import CardMedia from "@mui/material/CardMedia";
|
||||
import CardContent from "@mui/material/CardContent";
|
||||
import CardActions from "@mui/material/CardActions";
|
||||
import Collapse from "@mui/material/Collapse";
|
||||
import Avatar from "@mui/material/Avatar";
|
||||
import IconButton from "@mui/material/IconButton";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { red } from "@mui/material/colors";
|
||||
import FavoriteIcon from "@mui/icons-material/Favorite";
|
||||
import ShareIcon from "@mui/icons-material/Share";
|
||||
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
||||
import MoreVertIcon from "@mui/icons-material/MoreVert";
|
||||
|
||||
const ExpandMore = styled((props) => {
|
||||
const { expand, ...other } = props;
|
||||
return <IconButton {...other} />;
|
||||
})(({ theme, expand }) => ({
|
||||
transform: !expand ? "rotate(0deg)" : "rotate(180deg)",
|
||||
marginLeft: "auto",
|
||||
transition: theme.transitions.create("transform", {
|
||||
duration: theme.transitions.duration.shortest,
|
||||
}),
|
||||
}));
|
||||
|
||||
export default function ComplexInteraction() {
|
||||
const [expanded, setExpanded] = React.useState(false);
|
||||
|
||||
const handleExpandClick = () => {
|
||||
setExpanded(!expanded);
|
||||
};
|
||||
|
||||
return (
|
||||
<Card sx={{ mb: "15px" }}>
|
||||
<CardHeader
|
||||
avatar={
|
||||
<Avatar sx={{ bgcolor: red[500] }} aria-label="recipe">
|
||||
R
|
||||
</Avatar>
|
||||
}
|
||||
action={
|
||||
<IconButton aria-label="settings">
|
||||
<MoreVertIcon />
|
||||
</IconButton>
|
||||
}
|
||||
title="Shrimp and Chorizo Paella"
|
||||
subheader="September 14, 2016"
|
||||
/>
|
||||
|
||||
<CardMedia
|
||||
component="img"
|
||||
height="194"
|
||||
image="/images/paella.jpg"
|
||||
alt="Paella dish"
|
||||
/>
|
||||
<CardContent>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
This impressive paella is a perfect party dish and a fun meal to cook
|
||||
together with your guests. Add 1 cup of frozen peas along with the
|
||||
mussels, if you like.
|
||||
</Typography>
|
||||
</CardContent>
|
||||
|
||||
<CardActions disableSpacing>
|
||||
<IconButton aria-label="add to favorites">
|
||||
<FavoriteIcon />
|
||||
</IconButton>
|
||||
|
||||
<IconButton aria-label="share">
|
||||
<ShareIcon />
|
||||
</IconButton>
|
||||
|
||||
<ExpandMore
|
||||
expand={expanded}
|
||||
onClick={handleExpandClick}
|
||||
aria-expanded={expanded}
|
||||
aria-label="show more"
|
||||
>
|
||||
<ExpandMoreIcon />
|
||||
</ExpandMore>
|
||||
</CardActions>
|
||||
|
||||
<Collapse in={expanded} timeout="auto" unmountOnExit>
|
||||
<CardContent>
|
||||
<Typography paragraph>Method:</Typography>
|
||||
|
||||
<Typography paragraph>
|
||||
Heat 1/2 cup of the broth in a pot until simmering, add saffron and
|
||||
set aside for 10 minutes.
|
||||
</Typography>
|
||||
|
||||
<Typography paragraph>
|
||||
Heat oil in a (14- to 16-inch) paella pan or a large, deep skillet
|
||||
over medium-high heat. Add chicken, shrimp and chorizo, and cook,
|
||||
stirring occasionally until lightly browned, 6 to 8 minutes.
|
||||
Transfer shrimp to a large plate and set aside, leaving chicken and
|
||||
chorizo in the pan. Add pimentón, bay leaves, garlic, tomatoes,
|
||||
onion, salt and pepper, and cook, stirring often until thickened and
|
||||
fragrant, about 10 minutes. Add saffron broth and remaining 4 1/2
|
||||
cups chicken broth; bring to a boil.
|
||||
</Typography>
|
||||
|
||||
<Typography paragraph>
|
||||
Add rice and stir very gently to distribute. Top with artichokes and
|
||||
peppers, and cook without stirring, until most of the liquid is
|
||||
absorbed, 15 to 18 minutes. Reduce heat to medium-low, add reserved
|
||||
shrimp and mussels, tucking them down into the rice, and cook again
|
||||
without stirring, until mussels have opened and rice is just tender,
|
||||
5 to 7 minutes more. (Discard any mussels that don't open.)
|
||||
</Typography>
|
||||
|
||||
<Typography>
|
||||
Set aside off of the heat to let rest for 10 minutes, and then
|
||||
serve.
|
||||
</Typography>
|
||||
</CardContent>
|
||||
</Collapse>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import * as React from 'react';
|
||||
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 Media() {
|
||||
return (
|
||||
<Card sx={{ mb: '15px' }}>
|
||||
<CardMedia
|
||||
sx={{ height: 140 }}
|
||||
image="/images/contemplative-reptile.jpg"
|
||||
title="green iguana"
|
||||
/>
|
||||
|
||||
<CardContent>
|
||||
<Typography gutterBottom variant="h5" component="div">
|
||||
Lizard
|
||||
</Typography>
|
||||
|
||||
<Typography variant="body2" 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>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
import * as React from 'react';
|
||||
import { useTheme } from '@mui/material/styles';
|
||||
import Box from '@mui/material/Box';
|
||||
import Card from '@mui/material/Card';
|
||||
import CardContent from '@mui/material/CardContent';
|
||||
import CardMedia from '@mui/material/CardMedia';
|
||||
import IconButton from '@mui/material/IconButton';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import SkipPreviousIcon from '@mui/icons-material/SkipPrevious';
|
||||
import PlayArrowIcon from '@mui/icons-material/PlayArrow';
|
||||
import SkipNextIcon from '@mui/icons-material/SkipNext';
|
||||
|
||||
export default function UIControls() {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<Card sx={{ display: 'flex', mb: '15px' }}>
|
||||
<Box sx={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<CardContent sx={{ flex: '1 0 auto' }}>
|
||||
<Typography component="div" variant="h6">
|
||||
Live From Space
|
||||
</Typography>
|
||||
|
||||
<Typography variant="subtitle1" color="text.secondary" component="div">
|
||||
Mac Miller
|
||||
</Typography>
|
||||
</CardContent>
|
||||
|
||||
<Box sx={{ display: 'flex', alignItems: 'center', pl: 1, pb: 1 }}>
|
||||
<IconButton aria-label="previous">
|
||||
{theme.direction === 'rtl' ? <SkipNextIcon /> : <SkipPreviousIcon />}
|
||||
</IconButton>
|
||||
|
||||
<IconButton aria-label="play/pause">
|
||||
<PlayArrowIcon sx={{ height: 38, width: 38 }} />
|
||||
</IconButton>
|
||||
|
||||
<IconButton aria-label="next">
|
||||
{theme.direction === 'rtl' ? <SkipPreviousIcon /> : <SkipNextIcon />}
|
||||
</IconButton>
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<CardMedia
|
||||
component="img"
|
||||
sx={{ maxWidth: 190 }}
|
||||
image="/images/live-from-space.jpg"
|
||||
alt="Live from space album cover"
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user