Update Episode page #243
This commit is contained in:
8 files changed
+1105
-93
No files matched your search
@@ -1,5 +1,151 @@
|
||||
/** @format */
|
||||
|
||||
.episode .item-detail-primaryImage {
|
||||
align-self: center;
|
||||
.item {
|
||||
gap: 1em;
|
||||
&-hero {
|
||||
height: 50vh;
|
||||
gap: 2em;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
&-image {
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
object-fit: contain;
|
||||
transition: opacity $transition-time-default;
|
||||
&-container {
|
||||
height: fit-content;
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-default;
|
||||
width: fit-content;
|
||||
box-shadow: $shadow-card;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
}
|
||||
&-blurhash {
|
||||
position: absolute !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
z-index: -1;
|
||||
}
|
||||
}
|
||||
&-logo {
|
||||
max-width: 42rem;
|
||||
max-height: 10rem;
|
||||
opacity: 0;
|
||||
transition: opacity $transition-time-default;
|
||||
object-position: bottom;
|
||||
}
|
||||
&-detail {
|
||||
width: 100%;
|
||||
align-items: flex-start;
|
||||
gap: 1em;
|
||||
justify-content: end;
|
||||
}
|
||||
&-buttons {
|
||||
&-container {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
&-backdrop {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: top;
|
||||
opacity: 0;
|
||||
transition: opacity $transition-time-default;
|
||||
&-container {
|
||||
filter: brightness(0.8);
|
||||
position: absolute;
|
||||
top: -4.4em;
|
||||
left: -1.6em;
|
||||
width: 100vw;
|
||||
height: calc(50vh + 4.4em);
|
||||
z-index: -1;
|
||||
mask-image: linear-gradient(to top, transparent, black);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to top,
|
||||
transparent,
|
||||
black
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&-detail {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 5px 35%;
|
||||
justify-items: center;
|
||||
align-items: start;
|
||||
gap: 1em;
|
||||
|
||||
&-cast {
|
||||
&-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1em;
|
||||
}
|
||||
&-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
&-card {
|
||||
display: grid;
|
||||
grid-template-columns: 6em 1fr;
|
||||
gap: 0.5em;
|
||||
align-items: center;
|
||||
color: white !important;
|
||||
text-decoration: none;
|
||||
padding: 0.5em;
|
||||
background: rgb(255 255 255 / 0);
|
||||
transition: background $transition-time-default;
|
||||
border-radius: $border-radius-default;
|
||||
&:hover {
|
||||
background: rgb(255 255 255 / 0.1);
|
||||
}
|
||||
&-image,
|
||||
&-icon {
|
||||
width: 6em;
|
||||
height: 6em;
|
||||
object-fit: cover;
|
||||
border-radius: 100%;
|
||||
box-shadow: $shadow-card-image;
|
||||
}
|
||||
&-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 1em;
|
||||
background: rgb(255 255 255 / 0.1);
|
||||
.material-symbols-rounded {
|
||||
font-size: 3em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&-link {
|
||||
color: white;
|
||||
text-decoration-color: rgb(255 255 255 / 0.5);
|
||||
&:hover {
|
||||
text-decoration-color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.item-episode {
|
||||
.item-hero {
|
||||
&-image-container {
|
||||
width: 26% !important;
|
||||
max-width: 26% !important;
|
||||
}
|
||||
&-detail {
|
||||
gap: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
+900
-66
File diff suppressed because it is too large.
Load diff
@@ -1,5 +1,5 @@
|
||||
/** @format */
|
||||
import React, { useState, useEffect, useLayoutEffect } from "react";
|
||||
import React, { useState, useLayoutEffect } from "react";
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
import Box from "@mui/material/Box";
|
||||
@@ -15,7 +15,7 @@ import { red, green, yellow } from "@mui/material/colors";
|
||||
|
||||
import { Blurhash } from "react-blurhash";
|
||||
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useParams, Link, NavLink } from "react-router-dom";
|
||||
|
||||
import { motion } from "framer-motion";
|
||||
|
||||
@@ -30,7 +30,6 @@ import { getLibraryApi } from "@jellyfin/sdk/lib/utils/api/library-api";
|
||||
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
import Hero from "../../components/layouts/item/hero";
|
||||
import { Card } from "../../components/card/card";
|
||||
import { CardScroller } from "../../components/cardScroller/cardScroller";
|
||||
|
||||
@@ -39,7 +38,6 @@ import "./item.module.scss";
|
||||
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";
|
||||
import { endsAt, getRuntime } from "../../utils/date/time";
|
||||
import PlayButton from "../../components/buttons/playButton";
|
||||
@@ -47,8 +45,6 @@ import LikeButton from "../../components/buttons/likeButton";
|
||||
import MarkPlayedButton from "../../components/buttons/markPlayedButton";
|
||||
import TextLink from "../../components/textLink";
|
||||
import { getTypeIcon } from "../../components/utils/iconsCollection";
|
||||
import { NavLink } from "react-router-dom";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function TabPanel(props) {
|
||||
const { children, value, index, ...other } = props;
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
/** @format */
|
||||
|
||||
.item {
|
||||
gap: 1em;
|
||||
&-hero {
|
||||
height: 50vh;
|
||||
gap: 2em;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
&-image {
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
object-fit: contain;
|
||||
transition: opacity $transition-time-default;
|
||||
&-container {
|
||||
height: 100%;
|
||||
height: fit-content;
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-default;
|
||||
width: fit-content;
|
||||
@@ -20,7 +22,7 @@
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
max-width: 26%;
|
||||
width: 20%;
|
||||
}
|
||||
&-blurhash {
|
||||
position: absolute !important;
|
||||
|
||||
@@ -54,7 +54,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
const series = useQuery({
|
||||
@@ -69,7 +69,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
const musicAlbum = useQuery({
|
||||
@@ -84,7 +84,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
const audio = useQuery({
|
||||
@@ -99,7 +99,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
const book = useQuery({
|
||||
@@ -114,7 +114,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
const musicArtists = useQuery({
|
||||
@@ -129,7 +129,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
const person = useQuery({
|
||||
@@ -142,7 +142,7 @@ const SearchPage = () => {
|
||||
});
|
||||
return result.data;
|
||||
},
|
||||
enabled: user.isSuccess && Boolean(searchParam),
|
||||
enabled: user.isSuccess,
|
||||
cacheTime: 0,
|
||||
});
|
||||
|
||||
|
||||
@@ -1100,8 +1100,12 @@ const SeriesTitlePage = () => {
|
||||
"10px",
|
||||
animationDelay: `${
|
||||
index *
|
||||
0.15
|
||||
0.2
|
||||
}s`,
|
||||
animationDuration:
|
||||
"1.4s",
|
||||
animationName:
|
||||
"pulse",
|
||||
}}
|
||||
/>
|
||||
</CardMedia>
|
||||
@@ -1120,8 +1124,12 @@ const SeriesTitlePage = () => {
|
||||
sx={{
|
||||
animationDelay: `${
|
||||
index *
|
||||
0.15
|
||||
0.2
|
||||
}s`,
|
||||
animationDuration:
|
||||
"1.4s",
|
||||
animationName:
|
||||
"pulse",
|
||||
}}
|
||||
/>
|
||||
</Typography>
|
||||
@@ -1132,8 +1140,12 @@ const SeriesTitlePage = () => {
|
||||
sx={{
|
||||
animationDelay: `${
|
||||
index *
|
||||
0.15
|
||||
0.2
|
||||
}s`,
|
||||
animationDuration:
|
||||
"1.4s",
|
||||
animationName:
|
||||
"pulse",
|
||||
}}
|
||||
/>
|
||||
<Skeleton
|
||||
@@ -1141,8 +1153,12 @@ const SeriesTitlePage = () => {
|
||||
sx={{
|
||||
animationDelay: `${
|
||||
index *
|
||||
0.15
|
||||
0.2
|
||||
}s`,
|
||||
animationDuration:
|
||||
"1.4s",
|
||||
animationName:
|
||||
"pulse",
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -1151,8 +1167,12 @@ const SeriesTitlePage = () => {
|
||||
sx={{
|
||||
animationDelay: `${
|
||||
index *
|
||||
0.15
|
||||
0.2
|
||||
}s`,
|
||||
animationDuration:
|
||||
"1.4s",
|
||||
animationName:
|
||||
"pulse",
|
||||
}}
|
||||
/>
|
||||
</Typography>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
/** @format */
|
||||
/** @format */
|
||||
.item {
|
||||
gap: 1em;
|
||||
&-hero {
|
||||
height: 50vh;
|
||||
gap: 2em;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
&-image {
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
object-fit: contain;
|
||||
transition: opacity $transition-time-default;
|
||||
&-container {
|
||||
height: 100%;
|
||||
height: fit-content;
|
||||
max-height: 100%;
|
||||
overflow: hidden;
|
||||
border-radius: $border-radius-default;
|
||||
width: fit-content;
|
||||
@@ -21,7 +21,6 @@
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
position: relative;
|
||||
max-width: 26%;
|
||||
}
|
||||
&-blurhash {
|
||||
position: absolute !important;
|
||||
@@ -159,6 +158,9 @@
|
||||
}
|
||||
|
||||
.item-series {
|
||||
.item-hero-image-container {
|
||||
width: 18% !important;
|
||||
}
|
||||
.item-detail-cast {
|
||||
max-height: 50vh;
|
||||
overflow-y: auto;
|
||||
|
||||
@@ -220,3 +220,15 @@ h1 {
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
opacity: 0.1;
|
||||
}
|
||||
50% {
|
||||
opacity: 1;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.1;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user