diff --git a/src/components/layouts/item/hero.jsx b/src/components/layouts/item/hero.jsx
index 175bf95..c3ecc04 100644
--- a/src/components/layouts/item/hero.jsx
+++ b/src/components/layouts/item/hero.jsx
@@ -13,8 +13,7 @@ import { BaseItemKind } from "@jellyfin/sdk/lib/generated-client/models/base-ite
import { MediaStreamType } from "@jellyfin/sdk/lib/generated-client/models/media-stream-type";
import { Card } from "../../card/card";
-import { MdiStar } from "../../icons/mdiStar";
-import { yellow } from "@mui/material/colors";
+import { yellow, red } from "@mui/material/colors";
import { endsAt, getRuntime, getRuntimeFull } from "../../../utils/date/time";
import LikeButton from "../../buttons/likeButton";
import MarkPlayedButton from "../../buttons/markPlayedButton";
@@ -25,6 +24,7 @@ import { Blurhash } from "react-blurhash";
import TextLink from "../../textLink";
import { useApi } from "../../../utils/store/api";
+import { ErrorBoundary } from "react-error-boundary";
/**
* @typedef {Object} Props
* @property {import("@jellyfin/sdk/lib/generated-client/models").BaseItemDto} item
@@ -418,42 +418,69 @@ const Hero = ({
item.OfficialRating ?? "Not Rated"
}
/>
-
- {item.CommunityRating ? (
- <>
-
-
- {Math.round(
- item.CommunityRating *
- 10,
- ) / 10}
-
- >
- ) : (
+
>}>
+
+
+ star
+
- No Community Rating
+ {Math.round(
+ item.CommunityRating *
+ 10,
+ ) / 10}
- )}
-
+
+
+ >}>
+
+
+ thumb_up
+
+
+ {item.CriticRating}
+
+
+
+
{!!item.RunTimeTicks && (
{
{
style={{
fontSize: "10em",
color: yellow[800],
- "--clr": yellow[800],
+ fontVariationSettings:
+ '"FILL" 0, "wght" 100, "GRAD" 25, "opsz" 40',
+ "--clr": "rgb(249 168 37 / 30%)",
}}
>
sentiment_dissatisfied
-
+
No results found
diff --git a/src/components/notices/errorNotice/errorNotice.jsx b/src/components/notices/errorNotice/errorNotice.jsx
index f5fb0d8..5811836 100644
--- a/src/components/notices/errorNotice/errorNotice.jsx
+++ b/src/components/notices/errorNotice/errorNotice.jsx
@@ -24,16 +24,14 @@ export const ErrorNotice = ({ error, resetErrorBoundary }) => {
style={{
fontSize: "10em",
color: red[800],
- "--clr": red[800],
+ "--clr": "rgb(198 40 40 / 30%)",
+ fontVariationSettings:
+ '"FILL" 0, "wght" 100, "GRAD" 25, "opsz" 40',
}}
>
error
-
+
Something went wrong
{
style={{
marginTop: "1em",
}}
+ color="info"
>
- Retry
+ Close
+
+ Note: You need to click on CLOSE button if you change the
+ page in order to close this error message
+
);
};
diff --git a/src/routes/album/index.jsx b/src/routes/album/index.jsx
index d030076..2391f17 100644
--- a/src/routes/album/index.jsx
+++ b/src/routes/album/index.jsx
@@ -9,6 +9,8 @@ import Paper from "@mui/material/Paper";
import { useParams } from "react-router-dom";
+import { motion } from "framer-motion";
+
import {
BaseItemKind,
ItemFields,
@@ -34,6 +36,7 @@ import { useBackdropStore } from "../../utils/store/backdrop";
import LikeButton from "../../components/buttons/likeButton";
import { useAudioPlayback } from "../../utils/store/audioPlayback";
import { useApi } from "../../utils/store/api";
+
function TabPanel(props) {
const { children, value, index, ...other } = props;
@@ -179,7 +182,18 @@ const MusicAlbumTitlePage = () => {
}
if (item.isSuccess && similarItems.isSuccess) {
return (
- {
})}
)}
-
+
);
}
if (item.isError || similarItems.isError) {
diff --git a/src/routes/artist/index.jsx b/src/routes/artist/index.jsx
index 6fef2d0..172f7ae 100644
--- a/src/routes/artist/index.jsx
+++ b/src/routes/artist/index.jsx
@@ -32,6 +32,7 @@ import { ArtistAlbum } from "../../components/layouts/artist/artistAlbum";
import { useBackdropStore } from "../../utils/store/backdrop";
import MusicTrack from "../../components/musicTrack";
import { useApi } from "../../utils/store/api";
+
function TabPanel(props) {
const { children, value, index, ...other } = props;
@@ -197,7 +198,18 @@ const ArtistTitlePage = () => {
}
if (item.isSuccess) {
return (
- {
-
+
);
}
if (item.isError) {
diff --git a/src/routes/boxset/index.jsx b/src/routes/boxset/index.jsx
index 971a799..4fb66f7 100644
--- a/src/routes/boxset/index.jsx
+++ b/src/routes/boxset/index.jsx
@@ -6,6 +6,8 @@ import Box from "@mui/material/Box";
import CircularProgress from "@mui/material/CircularProgress";
import { useParams, useNavigate } from "react-router-dom";
+import { motion } from "framer-motion";
+
import {
BaseItemKind,
ItemFields,
@@ -149,7 +151,18 @@ const BoxSetTitlePage = () => {
}
if (item.isSuccess && similarItems.isSuccess) {
return (
- {
})}
)}
-
+
);
}
if (item.isError || similarItems.isError) {
diff --git a/src/routes/episode/index.jsx b/src/routes/episode/index.jsx
index fd914fc..2d81d61 100644
--- a/src/routes/episode/index.jsx
+++ b/src/routes/episode/index.jsx
@@ -7,6 +7,8 @@ import CircularProgress from "@mui/material/CircularProgress";
import { useParams } from "react-router-dom";
+import { motion } from "framer-motion";
+
import {
BaseItemKind,
ItemFields,
@@ -27,6 +29,7 @@ import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
import { useBackdropStore } from "../../utils/store/backdrop";
import { ActorCard } from "../../components/card/actorCards";
import { useApi } from "../../utils/store/api";
+
function TabPanel(props) {
const { children, value, index, ...other } = props;
@@ -175,7 +178,18 @@ const EpisodeTitlePage = () => {
}
if (item.isSuccess) {
return (
- {
)}
)}
-
+
);
}
if (item.isError) {
diff --git a/src/routes/item/index.jsx b/src/routes/item/index.jsx
index 90e41a6..203c27c 100644
--- a/src/routes/item/index.jsx
+++ b/src/routes/item/index.jsx
@@ -7,6 +7,8 @@ import CircularProgress from "@mui/material/CircularProgress";
import { useParams } from "react-router-dom";
+import { motion, AnimatePresence } from "framer-motion";
+
import {
BaseItemKind,
ItemFields,
@@ -29,6 +31,7 @@ import { ErrorNotice } from "../../components/notices/errorNotice/errorNotice";
import { useBackdropStore } from "../../utils/store/backdrop";
import { ActorCard } from "../../components/card/actorCards";
import { useApi } from "../../utils/store/api";
+
function TabPanel(props) {
const { children, value, index, ...other } = props;
@@ -200,9 +203,21 @@ const ItemDetail = () => {
);
}
+
if (item.isSuccess && similarItems.isSuccess) {
return (
- {
})}
)}
-
+
);
}
if (item.isError || similarItems.isError) {
diff --git a/src/routes/person/index.jsx b/src/routes/person/index.jsx
index 360709b..3ede9b8 100644
--- a/src/routes/person/index.jsx
+++ b/src/routes/person/index.jsx
@@ -267,7 +267,18 @@ const PersonTitlePage = () => {
}
if (item.isSuccess) {
return (
- {
})}
-
+
);
}
if (item.isError) {
diff --git a/src/routes/series/index.jsx b/src/routes/series/index.jsx
index 98d50a8..a43a016 100644
--- a/src/routes/series/index.jsx
+++ b/src/routes/series/index.jsx
@@ -228,7 +228,18 @@ const SeriesTitlePage = () => {
}
if (item.isSuccess && similarItems.isSuccess) {
return (
- {
})}
)}
-
+
);
}
if (item.isError || similarItems.isError) {
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 5e010c6..8d792fc 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -181,22 +181,18 @@ h1 {
height: 100%;
border-radius: 100%;
opacity: 0;
-
- filter: blur(10px);
- animation: iconAnimation cubic-bezier(0.175, 0.885, 0.32, 1.275) 3s
- infinite;
- background: radial-gradient(transparent, var(--clr));
+ // filter: blur(10px);
+ animation: iconAnimation ease-out 1s infinite;
+ background: var(--clr);
+ z-index: -1;
+ // background: radial-gradient(transparent, var(--clr));
}
}
@keyframes iconAnimation {
0% {
- opacity: 0;
- transform: translate(-50%, -50%) scale(1);
- }
- 60% {
- opacity: 0.1;
- transform: translate(-50%, -50%) scale(4);
+ opacity: 1;
+ transform: translate(-50%, -50%) scale(0);
}
100% {
opacity: 0;