diff --git a/src/App.jsx b/src/App.jsx index 54b2e85..a6f4529 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -99,7 +99,7 @@ event.on("set-api-accessToken", (serverAddress) => { const anim = { initial: { - transform: "scale(0.99)", + transform: "scale(0.98)", opacity: 0, }, animate: { @@ -107,7 +107,7 @@ const anim = { opacity: 1, }, exit: { - transform: "scale(0.99)", + transform: "sscale(1.02)", opacity: 0, }, }; @@ -121,7 +121,8 @@ const AnimationWrapper = () => { animate="animate" exit="exit" transition={{ - duration: 0.35, + duration: 0.25, + ease: "easeInOut", }} > diff --git a/src/assets/herobg.png b/src/assets/herobg.png new file mode 100644 index 0000000..1b1f32a Binary files /dev/null and b/src/assets/herobg.png differ diff --git a/src/components/card/actorCards.jsx b/src/components/card/actorCards.jsx index c2a8106..2858dbd 100644 --- a/src/components/card/actorCards.jsx +++ b/src/components/card/actorCards.jsx @@ -51,7 +51,7 @@ const availableSpecialRoutes = [BaseItemKind.Series]; * @returns {React.Component} */ -export const Card = ({ +export const ActorCard = ({ item, cardTitle, cardCaption, diff --git a/src/components/carousel/index.jsx b/src/components/carousel/index.jsx index bdc7251..4610615 100644 --- a/src/components/carousel/index.jsx +++ b/src/components/carousel/index.jsx @@ -23,7 +23,7 @@ const Carousel = ({ content, onChange }) => { ]); useEffect(() => { onChange(currentSlide); - }, [currentSlide]); + }, [content[currentSlide].key]); return (
diff --git a/src/components/carouselSlide/index.jsx b/src/components/carouselSlide/index.jsx index a4d0109..0693c20 100644 --- a/src/components/carouselSlide/index.jsx +++ b/src/components/carouselSlide/index.jsx @@ -130,7 +130,7 @@ const CarouselSlide = ({ item }) => { }} transition={{ duration: 0.25, - ease: "anticipate", + ease: "easeInOut", }} className="hero-carousel-detail" > diff --git a/src/components/layouts/item/hero.jsx b/src/components/layouts/item/hero.jsx index 922f57a..38d47d6 100644 --- a/src/components/layouts/item/hero.jsx +++ b/src/components/layouts/item/hero.jsx @@ -559,7 +559,7 @@ const Hero = ({ }} noWrap > - Airs On + Studios {studios diff --git a/src/components/layouts/item/hero.module.scss b/src/components/layouts/item/hero.module.scss index 193e18d..1304cfc 100644 --- a/src/components/layouts/item/hero.module.scss +++ b/src/components/layouts/item/hero.module.scss @@ -42,7 +42,8 @@ $maskPercentage: 40%; } &-icon { &-container { - background: $clr-gradient-dark; + background: url(../../../assets/herobg.png); + background-size: cover; z-index: -1; } } diff --git a/src/routes/library/index.jsx b/src/routes/library/index.jsx index 2818a6b..ecfcb03 100644 --- a/src/routes/library/index.jsx +++ b/src/routes/library/index.jsx @@ -1035,16 +1035,20 @@ const LibraryView = () => { ], ]} userId={user.data.Id} - // imageBlurhash={ - // item.ImageBlurHashes - // ?.Primary[ - // Object.keys( - // item - // .ImageBlurHashes - // .Primary, - // )[0] - // ] - // } + imageBlurhash={ + Boolean( + item.ImageBlurHashes + ?.Primary, + ) && + item.ImageBlurHashes + ?.Primary[ + Object.keys( + item + .ImageBlurHashes + .Primary, + )[0] + ] + } > ); diff --git a/src/routes/series/series.module.scss b/src/routes/series/series.module.scss index 9595793..c07fa30 100644 --- a/src/routes/series/series.module.scss +++ b/src/routes/series/series.module.scss @@ -15,7 +15,7 @@ grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0.25em; margin-top: 0.5em; - align-items: center; + align-items: start; justify-items: center; } }