fix endsAt #26
This commit is contained in:
6 files changed
+109
-19
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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} />
|
||||
));
|
||||
@@ -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>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user