ommit
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped

This commit is contained in:
1xDed committed 2026-12-03 07:20:39 +03:00
1 parent cbb750a413
commit 497b9a2fc5
42 files changed
+945 -354

No files matched your search

+17 -14
View File
@@ -7,27 +7,27 @@ import Chip from "@mui/material/Chip";
import { green, red, yellow } from "@mui/material/colors";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { useNavigate } from "@tanstack/react-router";
import { useQuery } from "@tanstack/react-query";
import { useNavigate } from "@tanstack/react-router";
import { motion, type Variants } from "motion/react";
import React from "react";
import CachedImage from "@/components/cachedImage";
import { endsAt, getRuntime } from "@/utils/date/time";
import {
getHeroPosterUrl,
getItemImagesQueryOptions,
resolveHeroArtwork,
} from "@/utils/methods/heroArtwork";
import CachedImage from "@/components/cachedImage";
import BlurhashCanvas from "../blurhash-canvas";
import { getItemLinkOptions } from "@/utils/navigation/itemLink";
import { useApiInContext } from "@/utils/store/api";
import { useCarouselStore } from "@/utils/store/carousel";
import { useCentralStore } from "@/utils/store/central";
import BlurhashCanvas from "../blurhash-canvas";
import LikeButton from "../buttons/likeButton";
import MarkPlayedButton from "../buttons/markPlayedButton";
import PlayButton from "../buttons/playButton";
import { getTypeIcon } from "../utils/iconsCollection";
import { getItemLinkOptions } from "@/utils/navigation/itemLink";
const MotionTypography = motion.create(Typography);
const MotionStack = motion.create(Stack);
@@ -79,14 +79,17 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
: undefined;
return (
<div className="hero-carousel-slide">
<motion.div
className="hero-carousel-background-container"
initial={{ opacity: 1 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
transition={{ duration: 0.4, ease: "easeInOut" }}
>
<motion.div
className="hero-carousel-slide"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
// Keep the previous slide fully visible underneath while the next
// one fades in. The text inside fades out on its own, so the
// background crossfades without dipping to black between slides.
exit={{ opacity: 1 }}
transition={{ duration: 0.8, ease: [0.2, 0, 0, 1] }}
>
<div className="hero-carousel-background-container">
{heroArtwork?.blurhash && (
<BlurhashCanvas
blurhashString={heroArtwork.blurhash}
@@ -118,7 +121,7 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
loading="eager"
/>
)}
</motion.div>
</div>
<motion.div
className="hero-carousel-detail"
initial="initial"
@@ -341,7 +344,7 @@ const CarouselSlide = ({ item }: { item: BaseItemDto }) => {
</Stack>
</MotionStack>
</motion.div>
</div>
</motion.div>
);
};