diff --git a/src/App.jsx b/src/App.jsx index 2c4772a..7174038 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -44,6 +44,7 @@ import Home from "./routes/home"; import { UserLogin, LoginWithImage, UserLoginManual } from "./routes/login"; import LibraryView from "./routes/library"; import ItemDetail from "./routes/item"; +import SeriesTitlePage from "./routes/series/index.jsx"; import FavouritePage from "./routes/favourite/index.jsx"; import Settings from "./routes/settings"; import About from "./routes/about"; @@ -72,7 +73,6 @@ import { delUser, getUser } from "./utils/storage/user.js"; import axios from "axios"; import { useBackdropStore } from "./utils/store/backdrop.js"; import { usePlaybackDataLoadStore } from "./utils/store/playback.js"; -import SeriesTitlePage from "./routes/series/index.jsx"; const jellyfin = new Jellyfin({ clientInfo: { diff --git a/src/components/card/card.jsx b/src/components/card/card.jsx index 13ceddb..c2a8106 100644 --- a/src/components/card/card.jsx +++ b/src/components/card/card.jsx @@ -199,7 +199,7 @@ export const Card = ({ /> )} - {100 > item.UserData?.PlayedPercentage > 0 && ( + {item.UserData?.PlaybackPositionTicks > 0 && ( { initial={{ transform: animationDirection == "right" - ? "translateX(10%)" - : "translateX(-10%)", + ? "translateX(40px)" + : "translateX(-40px)", opacity: 0, }} animate={{ @@ -123,14 +123,14 @@ const CarouselSlide = ({ item }) => { exit={{ transform: animationDirection == "right" - ? "translateX(-10%)" - : "translateX(10%)", + ? "translateX(-40px)" + : "translateX(40px)", opacity: 0, }} transition={{ duration: 0.25, - ease: "easeInOut", + ease: "anticipate", }} className="hero-carousel-detail" > diff --git a/src/components/layouts/item/hero.jsx b/src/components/layouts/item/hero.jsx index 8dd64dd..922f57a 100644 --- a/src/components/layouts/item/hero.jsx +++ b/src/components/layouts/item/hero.jsx @@ -34,7 +34,7 @@ import { MediaTypeIconCollection } from "../../utils/iconsCollection"; * @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemPerson[]} writers * @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemPerson[]} directors * @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemPerson[]} artists - * + * @property {import("@jellyfin/sdk/lib/generated-client/models").NameGuidPair[]} studios */ /** @@ -49,6 +49,7 @@ const Hero = ({ writers = [], directors = [], artists = [], + studios = [], }) => { const filterMediaStreamVideo = (source) => { if (source.Type == MediaStreamType.Video) { @@ -174,7 +175,7 @@ const Hero = ({ marginTop: "4em", }} > - + {item.Name} @@ -267,7 +268,7 @@ const Hero = ({ {item.Genres.join(", ")} - {100 > item.UserData?.PlayedPercentage > 0 && ( + {item.UserData?.PlaybackPositionTicks > 0 && (
0 && (
{artists - .map((director) => director.Name) + .map((artist) => artist.Name) + .join(", ")} + +
+ )} + {studios.length > 0 && ( +
+ + Airs On + + + {studios + .map((studio) => studio.Name) .join(", ")}
diff --git a/src/components/layouts/item/hero.module.scss b/src/components/layouts/item/hero.module.scss index c587df2..193e18d 100644 --- a/src/components/layouts/item/hero.module.scss +++ b/src/components/layouts/item/hero.module.scss @@ -9,7 +9,7 @@ $maskPercentage: 40%; top: 0; left: 0; z-index: -1; - filter: brightness(0.5); + filter: brightness(0.4); mask-image: linear-gradient( to bottom, black $maskPercentage, diff --git a/src/routes/series/index.jsx b/src/routes/series/index.jsx index ad27630..5b7b06a 100644 --- a/src/routes/series/index.jsx +++ b/src/routes/series/index.jsx @@ -188,6 +188,7 @@ const SeriesTitlePage = () => { limit: 1, parentId: item.data.Id, disableFirstEpisode: true, + fields: [ItemFields.Overview], }); return result.data; }, @@ -301,7 +302,9 @@ const SeriesTitlePage = () => { queryKey={["item", id]} writers={writers} directors={directors} + studios={item.data.Studios} /> + {nextUpEpisode.isSuccess && nextUpEpisode.data.TotalRecordCount > 0 && ( { {nextUpEpisode.data.Items.map( (episode, index) => { return ( - - ); - }, - )} - - )} - {nextUpEpisode.isSuccess && - nextUpEpisode.data.TotalRecordCount > 0 && ( - - {nextUpEpisode.data.Items.map( - (episode, index) => { - return ( - ); }, @@ -514,6 +496,9 @@ const SeriesTitlePage = () => { > {specialFeatures.data.map( (special, index) => { + console.log( + special.ImageBlurHashes, + ); return ( { "similarItem", ]} userId={user.data.Id} - imageBlurhash={ - special - .ImageBlurHashes - ?.Primary[ - Object.keys( - special - .ImageBlurHashes - .Primary, - )[0] - ] - } onClick={() => {}} /> ); diff --git a/src/styles/global.scss b/src/styles/global.scss index d998578..b6cf6ec 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -50,7 +50,7 @@ body { top: 0; left: 0; z-index: -1; - filter: blur(100px) saturate(120%) contrast(110%); + filter: blur(60px) saturate(110%) contrast(110%); &-container { position: fixed; width: 100vw;