Update
This commit is contained in:
6 files changed
+128
-8
No files matched your search
@@ -99,9 +99,9 @@ export const ActorCard = ({
|
||||
!!seriesId ? item.SeriesId : item.Id,
|
||||
"Primary",
|
||||
{
|
||||
quality: 90,
|
||||
fillHeight: 512,
|
||||
fillWidth: 512,
|
||||
quality: 80,
|
||||
fillHeight: 448,
|
||||
fillWidth: 448,
|
||||
},
|
||||
)}
|
||||
style={{
|
||||
|
||||
@@ -151,9 +151,9 @@ export const Card = ({
|
||||
: item.Id,
|
||||
imageType,
|
||||
{
|
||||
quality: 90,
|
||||
fillHeight: 512,
|
||||
fillWidth: 512,
|
||||
quality: 95,
|
||||
fillHeight: 640,
|
||||
fillWidth: 640,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
@@ -180,7 +180,10 @@ export const EpisodeCard = ({
|
||||
variant="subtitle1"
|
||||
fontWeight={500}
|
||||
textAlign="start"
|
||||
style={{ opacity: 0.9 }}
|
||||
noWrap
|
||||
style={{
|
||||
opacity: 0.9,
|
||||
}}
|
||||
>
|
||||
{cardTitle}
|
||||
</Typography>
|
||||
|
||||
@@ -196,6 +196,8 @@ const Hero = ({
|
||||
}
|
||||
className="hero-carousel-info"
|
||||
mt={1}
|
||||
justifyItems="flex-start"
|
||||
alignItems="center"
|
||||
>
|
||||
<Typography
|
||||
style={{ opacity: "0.8" }}
|
||||
|
||||
@@ -0,0 +1,112 @@
|
||||
/** @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 Typography from "@mui/material/Typography";
|
||||
import Skeleton from "@mui/material/Skeleton";
|
||||
import Divider from "@mui/material/Divider";
|
||||
|
||||
import { borderRadiusDefault } from "../../palette.module.scss";
|
||||
|
||||
export const SeasonSelectorSkeleton = () => {
|
||||
return (
|
||||
<Grid
|
||||
container
|
||||
columns={{
|
||||
xs: 2,
|
||||
sm: 3,
|
||||
md: 4,
|
||||
}}
|
||||
sx={{ width: "100%" }}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
gap: "1em",
|
||||
justifyContent: "space-between",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h3">
|
||||
<Skeleton
|
||||
width={320}
|
||||
variant="text"
|
||||
animation="wave"
|
||||
/>
|
||||
</Typography>
|
||||
<Skeleton animation="wave" height={64} width={128} />
|
||||
</div>
|
||||
<Divider
|
||||
style={{
|
||||
display: "block",
|
||||
width: "100%",
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
width: "100%",
|
||||
alignItems: "center",
|
||||
justifyContent: "space-between",
|
||||
paddingBottom: " 0.5em",
|
||||
}}
|
||||
></div>
|
||||
{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="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