fix endsAt #26

This commit is contained in:
prayag17 committed 2023-04-17 14:52:12 +05:30
1 parent 464a3ff5a2
commit ac565b65fe
6 files changed
+109 -19

No files matched your search

+85
View File
@@ -0,0 +1,85 @@
/** @format */
import Card from "@mui/material/Card";
import CardMedia from "@mui/material/CardMedia";
import CardContent from "@mui/material/CardContent";
import Grid from "@mui/material/Unstable_Grid2";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import Skeleton from "@mui/material/Skeleton";
import { borderRadiusDefault } from "../../palette.module.scss";
export const EpisodeCardsSkeleton = () => {
return (
<Grid
container
columns={{
xs: 2,
sm: 3,
md: 4,
}}
sx={{ width: "100%" }}
>
{Array.from(new Array(4)).map((a, index) => {
return (
<Grid xs={1} sm={1} md={1} key={index}>
<Card
sx={{ background: "transparent" }}
elevation={0}
>
<CardMedia>
<Skeleton
animation="wave"
variant="rectangular"
sx={{
aspectRatio: "1.777",
height: "auto",
m: 1,
borderRadius:
borderRadiusDefault,
}}
/>
</CardMedia>
<CardContent
sx={{
padding: "0 0.5em",
alignItems: "flex-start",
backgroundColor: "transparent",
}}
>
<Typography variant="h6">
<Skeleton
variant="text"
animation="wave"
/>
</Typography>
<Typography variant="subtitle1" mb={1}>
<Skeleton
variant="text"
width="50%"
animation="wave"
/>
</Typography>
<Typography variant="body2">
<Skeleton
variant="text"
animation="wave"
/>
<Skeleton
variant="text"
animation="wave"
/>
<Skeleton
variant="text"
animation="wave"
/>
</Typography>
</CardContent>
</Card>
</Grid>
);
})}
</Grid>
);
};