This commit is contained in:
Prayag Prajapati committed 2023-09-13 14:34:07 +05:30
1 parent 7f91fd083c
commit fb27c3071f
6 files changed
+128 -8

No files matched your search

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