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,
|
!!seriesId ? item.SeriesId : item.Id,
|
||||||
"Primary",
|
"Primary",
|
||||||
{
|
{
|
||||||
quality: 90,
|
quality: 80,
|
||||||
fillHeight: 512,
|
fillHeight: 448,
|
||||||
fillWidth: 512,
|
fillWidth: 448,
|
||||||
},
|
},
|
||||||
)}
|
)}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
@@ -151,9 +151,9 @@ export const Card = ({
|
|||||||
: item.Id,
|
: item.Id,
|
||||||
imageType,
|
imageType,
|
||||||
{
|
{
|
||||||
quality: 90,
|
quality: 95,
|
||||||
fillHeight: 512,
|
fillHeight: 640,
|
||||||
fillWidth: 512,
|
fillWidth: 640,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -180,7 +180,10 @@ export const EpisodeCard = ({
|
|||||||
variant="subtitle1"
|
variant="subtitle1"
|
||||||
fontWeight={500}
|
fontWeight={500}
|
||||||
textAlign="start"
|
textAlign="start"
|
||||||
style={{ opacity: 0.9 }}
|
noWrap
|
||||||
|
style={{
|
||||||
|
opacity: 0.9,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{cardTitle}
|
{cardTitle}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -196,6 +196,8 @@ const Hero = ({
|
|||||||
}
|
}
|
||||||
className="hero-carousel-info"
|
className="hero-carousel-info"
|
||||||
mt={1}
|
mt={1}
|
||||||
|
justifyItems="flex-start"
|
||||||
|
alignItems="center"
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
style={{ opacity: "0.8" }}
|
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>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -71,6 +71,7 @@ import { usePlaybackStore } from "../../utils/store/playback";
|
|||||||
import { Tooltip } from "@mui/material";
|
import { Tooltip } from "@mui/material";
|
||||||
import { useBackdropStore } from "../../utils/store/backdrop";
|
import { useBackdropStore } from "../../utils/store/backdrop";
|
||||||
import { ActorCard } from "../../components/card/actorCards";
|
import { ActorCard } from "../../components/card/actorCards";
|
||||||
|
import { SeasonSelectorSkeleton } from "../../components/skeleton/seasonSelector";
|
||||||
function TabPanel(props) {
|
function TabPanel(props) {
|
||||||
const { children, value, index, ...other } = props;
|
const { children, value, index, ...other } = props;
|
||||||
|
|
||||||
@@ -350,7 +351,9 @@ const SeriesTitlePage = () => {
|
|||||||
</CardScroller>
|
</CardScroller>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{seasons.isSuccess && (
|
{seasons.isLoading ? (
|
||||||
|
<SeasonSelectorSkeleton />
|
||||||
|
) : (
|
||||||
<div className="item-series-seasons-container">
|
<div className="item-series-seasons-container">
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user