- {100 >
- item.data.UserData.PlayedPercentage >
- 0 && (
+ {item.data.UserData.PlaybackPositionTicks > 0 && (
{
const [directors, setDirectors] = useState([]);
const [writers, setWriters] = useState([]);
+ const [actors, setActors] = useState([]);
+ const [producers, setProducers] = useState([]);
useEffect(() => {
if (item.isSuccess) {
setAppBackdrop(
@@ -208,6 +220,14 @@ const SeriesTitlePage = () => {
(itm) => itm.Type == "Writer",
);
setWriters(writeTp);
+ let producerTp = item.data.People.filter(
+ (itm) => itm.Type == "Producer",
+ );
+ setProducers(producerTp);
+ let actorTp = item.data.People.filter(
+ (itm) => itm.Type == "Actor",
+ );
+ setActors(actorTp);
}
}, [item.isSuccess]);
@@ -240,22 +260,645 @@ const SeriesTitlePage = () => {
duration: 0.25,
ease: "easeInOut",
}}
- className="scrollY"
- style={{
- padding: "5em 2em 2em 1em",
- display: "flex",
- flexDirection: "column",
- gap: "0.5em",
- }}
+ className="scrollY padded-top flex flex-column item"
>
-
+
+
+ {item.data.BackdropImageTags ? (
+

+ (e.currentTarget.style.opacity = 1)
+ }
+ />
+ ) : (
+ <>>
+ )}
+
+
+ {Object.keys(item.data.ImageTags).includes(
+ "Primary",
+ ) ? (
+ <>
+
+

+ (e.currentTarget.style.opacity = 1)
+ }
+ className="item-hero-image"
+ />
+ >
+ ) : (
+ <>>
+ )}
+
+
+ {Object.keys(item.data.ImageTags).includes(
+ "Logo",
+ ) ? (
+

+ (e.currentTarget.style.opacity = 1)
+ }
+ className="item-hero-logo"
+ />
+ ) : (
+
+ {item.data.Name}
+
+ )}
+
+
+ {item.data.ProductionYear ?? ""}
+
+ {item.data.OfficialRating && (
+
+ )}
+
+ {item.data.CommunityRating && (
+
+
+ star
+
+
+ {Math.round(
+ item.data
+ .CommunityRating *
+ 10,
+ ) / 10}
+
+
+ )}
+ {item.data.CriticRating && (
+
+
+ 50
+ ? green[400]
+ : red[400],
+ fontVariationSettings:
+ '"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
+ }}
+ >
+ {item.data.CriticRating > 50
+ ? "thumb_up"
+ : "thumb_down"}
+
+
+ {item.data.CriticRating}
+
+
+ )}
+
+ {seasons.data?.TotalRecordCount && (
+
+ {seasons.data.TotalRecordCount}{" "}
+ Seasons
+
+ )}
+
+ {item.data.RunTimeTicks && (
+
+ {getRuntime(
+ item.data.RunTimeTicks,
+ )}
+
+ )}
+ {item.data.RunTimeTicks && (
+
+ {endsAt(
+ item.data.RunTimeTicks -
+ item.data.UserData
+ .PlaybackPositionTicks,
+ )}
+
+ )}
+
+
+ {item.data.Genres.join(", ")}
+
+
+
+
+
+
+
+ {item.data.UserData.PlaybackPositionTicks > 0 && (
+
+
+ {getRuntime(
+ item.data.RunTimeTicks -
+ item.data.UserData
+ .PlaybackPositionTicks,
+ )}{" "}
+ left
+
+
+
+ )}
+
+ {item.data.Taglines[0] ?? ""}
+
+
+ {item.data.Overview ?? ""}
+
+ {writers.length > 0 && (
+
+
+ Written by
+
+
+ {writers.map((writer, index) => (
+ <>
+
+ {writer.Name}
+
+ {index !=
+ writers.length -
+ 1 && (
+
+ ,{" "}
+
+ )}
+ >
+ ))}
+
+
+ )}
+ {directors.length > 0 && (
+
+
+ Directed by
+
+
+ {directors.map(
+ (director, index) => (
+ <>
+
+ {director.Name}
+
+ {index !=
+ directors.length -
+ 1 && (
+
+ ,{" "}
+
+ )}
+ >
+ ),
+ )}
+
+
+ )}
+
+ {item.data.ExternalUrls.map((url) => (
+
+ {url.Name}
+
+ ))}
+
+
+
+
+
+ {actors.length > 0 && (
+
+
+ Actors
+
+
+ {actors.map((actor) => (
+
+ {actor.PrimaryImageTag ? (
+
+ ) : (
+
+ {getTypeIcon(
+ "Person",
+ )}
+
+ )}
+
+
+ {
+ actor.Name
+ }
+
+
+ {
+ actor.Role
+ }
+
+
+
+ ))}
+
+
+ )}
+ {writers.length > 0 && (
+
+
+ Writers
+
+
+ {writers.map((actor) => (
+
+ {actor.PrimaryImageTag ? (
+
+ ) : (
+
+ {getTypeIcon(
+ "Person",
+ )}
+
+ )}
+
+
+ {
+ actor.Name
+ }
+
+
+ {
+ actor.Role
+ }
+
+
+
+ ))}
+
+
+ )}
+ {directors.length > 0 && (
+
+
+ Directors
+
+
+ {directors.map((actor) => (
+
+ {actor.PrimaryImageTag ? (
+
+ ) : (
+
+ {getTypeIcon(
+ "Person",
+ )}
+
+ )}
+
+
+ {
+ actor.Name
+ }
+
+
+ {
+ actor.Role
+ }
+
+
+
+ ))}
+
+
+ )}
+ {producers.length > 0 && (
+
+
+ Producers
+
+
+ {producers.map((actor) => (
+
+ {actor.PrimaryImageTag ? (
+
+ ) : (
+
+ {getTypeIcon(
+ "Person",
+ )}
+
+ )}
+
+
+ {
+ actor.Name
+ }
+
+
+ {
+ actor.Role
+ }
+
+
+
+ ))}
+
+
+ )}
+
+
+
{nextUpEpisode.isSuccess &&
nextUpEpisode.data.TotalRecordCount > 0 && (
@@ -453,7 +1096,7 @@ const SeriesTitlePage = () => {
ease: "backInOut",
}}
style={{
- maxWidth: "23.3vw",
+ width: "100%",
}}
>
{
})}
)}
- {item.data.People.length > 0 && (
+ {/* {item.data.People.length > 0 && (
{
);
})}
- )}
+ )} */}
{similarItems.data.TotalRecordCount > 0 && (