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

+1
View File
@@ -7,6 +7,7 @@
position: relative;
border-radius: $border-radius-default;
overflow: hidden;
box-shadow: 0 0 7px rgb(0 0 0 / 0.2);
}
&-overlay {
position: absolute;
+3 -3
View File
@@ -128,9 +128,9 @@ export const EpisodeCard = ({
opacity: isWatched ? 1 : 0,
}}
/>
<div
<Box
className="card-media-image-container"
style={{ opacity: imgLoading ? 0 : 1 }}
sx={{ opacity: imgLoading ? 0 : 1 }}
>
{imageTags && (
<CardMedia
@@ -153,7 +153,7 @@ export const EpisodeCard = ({
className="card-image"
></CardMedia>
)}
</div>
</Box>
{!!blurhash && (
<Blurhash
hash={blurhash}
-7
View File
@@ -1,7 +0,0 @@
/** @format */
import React from "react";
import { NavLink as NavLinkBase } from "react-router-dom";
export const NavLink = React.forwardRef((props, ref) => (
<NavLinkBase ref={ref} {...props} className={props.activeClassName} />
));
+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>
);
};