{
className="scrollY padded-top item item-person flex flex-column"
ref={pageRef}
>
-
+
{
)}
- {item.data.Name}
+
+ {item.data.Name}
+
{
))}
-
{
>
{item.data.PremiereDate && (
<>
- Born
-
+ Birth
+
{new Date(item.data.PremiereDate).toDateString()}
>
)}
{item.data.EndDate && (
<>
-
+
Death
-
+
{new Date(item.data.EndDate).toDateString()}
>
@@ -424,7 +425,7 @@ const PersonTitlePage = () => {
tab.title === "Movies" ||
tab.title === "TV Shows" ||
tab.title === "Books"
- ? "col-8"
+ ? "col-7"
: "col-4"
}`}
key={tab.queryKey}
@@ -460,16 +461,16 @@ const PersonTitlePage = () => {
tabitem.Type === BaseItemKind.Episode
? `S${tabitem.ParentIndexNumber}:E${tabitem.IndexNumber} - ${tabitem.Name}`
: tabitem.Type === BaseItemKind.Series
- ? `${tabitem.ProductionYear} - ${
+ ? `${tabitem.ProductionYear} - ${
tabitem.EndDate
? new Date(
tabitem.EndDate,
- ).toLocaleString([], {
+ ).toLocaleString([], {
year: "numeric",
- })
+ })
: "Present"
- }`
- : tabitem.ProductionYear
+ }`
+ : tabitem.ProductionYear
}
cardType={
tabitem.Type === BaseItemKind.Episode
diff --git a/src/routes/person/person.module.scss b/src/routes/person/person.module.scss
index fc7e5e9..735cc43 100644
--- a/src/routes/person/person.module.scss
+++ b/src/routes/person/person.module.scss
@@ -1,4 +1,4 @@
-
+$cardWidth: 18%;
.item-detail-person {
&-container {
position: relative;
@@ -13,8 +13,8 @@
}
}
-.col-8 {
- grid-template-columns: repeat(8, minmax(0, 1fr));
+.col-7 {
+ grid-template-columns: repeat(7, minmax(0, 1fr));
}
.col-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
@@ -25,8 +25,13 @@
.item-hero {
height: 50vh;
gap: 2em;
+ row-gap: 1.2em;
position: relative;
- align-items: center;
+ align-items: flex-end;
+ margin-bottom: 1em;
+ display: grid;
+ grid-template-columns: $cardWidth 1fr;
+ grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
@@ -41,7 +46,7 @@
flex-grow: 1;
flex-shrink: 0;
position: relative;
- width: 18% !important;
+ width: 100%;
}
&-blurhash {
position: absolute !important;
@@ -49,18 +54,29 @@
height: 100% !important;
z-index: -1;
}
+ &-icon {
+ background: linear-gradient(45deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.15));
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ .material-symbols-rounded{
+ font-size: 4em;
+ }
+ }
}
&-logo {
- max-width: 42rem;
+ max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
+ margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
- gap: 1em;
+ gap: 0.2em;
justify-content: end;
}
&-buttons {
@@ -68,6 +84,10 @@
align-items: center;
justify-content: space-between;
width: 100%;
+ grid-column: 1/3;
+ display: grid;
+ grid-template-columns: inherit;
+ gap: 2em;
}
}
&-backdrop {
@@ -83,25 +103,29 @@
top: -4.4em;
left: -$page-margin;
width: 100vw;
- height: calc(50vh + 4.4em);
+ height: calc(44vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
- to top,
- transparent,
- black
+ to top,
+ transparent,
+ black
);
}
}
+ & .play-button {
+ width: 100% !important;
+ }
}
-
+
+
.item-detail {
display: grid;
- grid-template-columns: 1fr 5px 35%;
+ grid-template-columns: 1fr 35%;
justify-items: center;
align-items: start;
- gap: 1em;
-
+ gap: 3em;
+
&-cast {
&-container {
display: flex;
diff --git a/src/routes/player/videoPlayer.module.scss b/src/routes/player/videoPlayer.module.scss
index be9b116..eef5152 100644
--- a/src/routes/player/videoPlayer.module.scss
+++ b/src/routes/player/videoPlayer.module.scss
@@ -60,12 +60,16 @@ video {
height: 100vh;
top: 0;
left: 0;
+ cursor: none;
display: flex;
flex-direction: column;
align-self: stretch;
justify-content: space-between;
padding: 1em 2em;
background: linear-gradient(to top, rgb(0 0 0 / 0.7) 5vh, transparent 26vh 90vh, rgb(0 0 0 / 0.7));
+ &.hovering{
+ cursor: default;
+ }
&-controls{
&-progress{
display: flex;
diff --git a/src/routes/player/videoPlayer.tsx b/src/routes/player/videoPlayer.tsx
index 30ec279..7110c7d 100644
--- a/src/routes/player/videoPlayer.tsx
+++ b/src/routes/player/videoPlayer.tsx
@@ -1156,7 +1156,11 @@ const VideoPlayer = () => {
)}
{
-
setShowVolumeControl(false)}
+ onMouseLeave={() => setShowVolumeControl(false)}
>
- {muted ? 0 : Math.round(volume*100)}
- {
- setVolume(newVal);
- if (newVal === 0) setMuted(true)
- else setMuted(false)
- }} />
+
+ {muted ? 0 : Math.round(volume * 100)}
+
+ {
+ setVolume(newVal);
+ if (newVal === 0) setMuted(true);
+ else setMuted(false);
+ }}
+ />
-
setMuted((state) => !state)} onMouseMoveCapture={() => {
- setShowVolumeControl(true)
- }}>
- {muted ? "volume_off" :
- volume < 0.4 ? "volume_down" :
- "volume_up"}
+ setMuted((state) => !state)}
+ onMouseMoveCapture={() => {
+ setShowVolumeControl(true);
+ }}
+ >
+
+ {muted
+ ? "volume_off"
+ : volume < 0.4
+ ? "volume_down"
+ : "volume_up"}
+
setShowSubtitles((state) => !state)}>
diff --git a/src/routes/series/index.tsx b/src/routes/series/index.tsx
index 5dcb919..2dbc88e 100644
--- a/src/routes/series/index.tsx
+++ b/src/routes/series/index.tsx
@@ -359,10 +359,9 @@ const SeriesTitlePage = () => {
className="scrollY padded-top flex flex-column item item-series"
ref={pageRef}
>
-
+
-
{item.data.BackdropImageTags ? (
{
src={backdropImage}
className="item-hero-backdrop"
initial={{
- opacity: 0
+ opacity: 0,
}}
onLoad={() => {
- setBackdropImageLoaded(true)
+ setBackdropImageLoaded(true);
}}
animate={{
- opacity: backdropImageLoaded ? 1 : 0
+ opacity: backdropImageLoaded ? 1 : 0,
}}
exit={{
- opacity: 0
+ opacity: 0,
}}
transition={{
- duration: 0.2
+ duration: 0.2,
}}
style={{
y: parallax,
@@ -404,7 +403,7 @@ const SeriesTitlePage = () => {
{
<>>
)}
-
+
{Object.keys(item.data.ImageTags).includes("Logo") ? (
![{item.data.Name}]()
{
className="item-hero-logo"
/>
) : (
-
{item.data.Name}
+
+ {item.data.Name}
+
)}
{
justifyItems="flex-start"
alignItems="center"
>
-
+
{item.data.ProductionYear ?? ""}
{item.data.Status === "Continuing"
? " - Present"
: item.data.EndDate &&
- ` - ${new Date(item.data.EndDate).getFullYear()}`}
+ ` - ${new Date(item.data.EndDate).getFullYear()}`}
+
+ {seasons.data?.TotalRecordCount && (
+
+ {seasons.data.TotalRecordCount > 1
+ ? `${seasons.data.TotalRecordCount} Seasons`
+ : `${seasons.data.TotalRecordCount} Season`}
+
+ )}
+
{item.data.OfficialRating && (
-
+
)}
{item.data.CommunityRating && (
@@ -469,12 +483,10 @@ const SeriesTitlePage = () => {
className="hero-carousel-info-rating"
>
star
@@ -483,7 +495,7 @@ const SeriesTitlePage = () => {
style={{
opacity: "0.8",
}}
- variant="subtitle1"
+ variant="subtitle2"
>
{Math.round(item.data.CommunityRating * 10) / 10}
@@ -499,12 +511,10 @@ const SeriesTitlePage = () => {
className="hero-carousel-info-rating"
>
50 ? green[400] : red[400],
- fontVariationSettings:
- '"FILL" 1, "wght" 300, "GRAD" 25, "opsz" 40',
}}
>
{item.data.CriticRating > 50 ? "thumb_up" : "thumb_down"}
@@ -513,72 +523,72 @@ const SeriesTitlePage = () => {
style={{
opacity: "0.8",
}}
- variant="subtitle1"
+ variant="subtitle2"
>
{item.data.CriticRating}
)}
- {seasons.data?.TotalRecordCount && (
-
- {seasons.data.TotalRecordCount > 1
- ? `${seasons.data.TotalRecordCount} Seasons`
- : `${seasons.data.TotalRecordCount} Season`}
-
- )}
-
{item.data.RunTimeTicks && (
-
+
{getRuntime(item.data.RunTimeTicks)}
)}
{item.data.RunTimeTicks && (
-
+
{endsAt(
item.data.RunTimeTicks -
- item.data.UserData.PlaybackPositionTicks,
+ item.data.UserData.PlaybackPositionTicks,
)}
)}
+
+ {item.data.Genres?.slice(0, 5).join(" / ")}
+
-
- {item.data.Genres.join(", ")}
-
+
-
@@ -594,7 +604,7 @@ const SeriesTitlePage = () => {
{getRuntime(
item.data.RunTimeTicks -
- item.data.UserData.PlaybackPositionTicks,
+ item.data.UserData.PlaybackPositionTicks,
)}{" "}
left
@@ -698,7 +708,6 @@ const SeriesTitlePage = () => {
))}
-
{
cardCaption={episode.Overview}
imageBlurhash={
episode.ImageBlurHashes?.Primary[
- Object.keys(episode.ImageBlurHashes.Primary)[0]
+ Object.keys(episode.ImageBlurHashes.Primary)[0]
]
}
queryKey={[
@@ -1010,9 +1019,10 @@ const SeriesTitlePage = () => {
- {episodes.isPending
- ?
- : episodes.data.Items.map((episode, index) => {
+ {episodes.isPending ? (
+
+ ) : (
+ episodes.data.Items.map((episode, index) => {
return (
<>
{
>
);
- })}
+ })
+ )}
)}
{specialFeatures.isSuccess && specialFeatures.data.length > 0 && (
{specialFeatures.data.map((special) => {
@@ -1188,11 +1199,11 @@ const SeriesTitlePage = () => {
imageBlurhash={
!!special.ImageBlurHashes?.Primary &&
special.ImageBlurHashes.Primary[
- Object.keys(special.ImageBlurHashes.Primary)[0]
+ Object.keys(special.ImageBlurHashes.Primary)[0]
]
}
userId={user.data.Id}
- onClick={() => { }}
+ onClick={() => {}}
/>
);
})}
@@ -1201,7 +1212,7 @@ const SeriesTitlePage = () => {
{similarItems.data.TotalRecordCount > 0 && (
{similarItems.data.Items.map((similar) => {
@@ -1220,17 +1231,18 @@ const SeriesTitlePage = () => {
similar.Type === BaseItemKind.Episode
? `S${similar.ParentIndexNumber}:E${similar.IndexNumber} - ${similar.Name}`
: similar.Type === BaseItemKind.Series
- ? `${similar.ProductionYear} - ${similar.EndDate
- ? new Date(similar.EndDate).toLocaleString([], {
- year: "numeric",
- })
- : "Present"
- }`
+ ? `${similar.ProductionYear} - ${
+ similar.EndDate
+ ? new Date(similar.EndDate).toLocaleString([], {
+ year: "numeric",
+ })
+ : "Present"
+ }`
: similar.ProductionYear
}
cardType={
similar.Type === BaseItemKind.MusicAlbum ||
- similar.Type === BaseItemKind.Audio
+ similar.Type === BaseItemKind.Audio
? "square"
: "portrait"
}
@@ -1239,7 +1251,7 @@ const SeriesTitlePage = () => {
imageBlurhash={
!!similar.ImageBlurHashes?.Primary &&
similar.ImageBlurHashes?.Primary[
- Object.keys(similar.ImageBlurHashes.Primary)[0]
+ Object.keys(similar.ImageBlurHashes.Primary)[0]
]
}
/>
diff --git a/src/routes/series/series.module.scss b/src/routes/series/series.module.scss
index 10d5a09..f746d7c 100644
--- a/src/routes/series/series.module.scss
+++ b/src/routes/series/series.module.scss
@@ -1,10 +1,17 @@
+$cardWidth: 18%;
+
.item-series.item {
gap: 1em;
- .item-hero {
- height: 50vh;
+ .item-hero {
+ height: 60vh;
gap: 2em;
+ row-gap: 1.2em;
position: relative;
- align-items: center;
+ align-items: flex-end;
+ margin-bottom: 1em;
+ display: grid;
+ grid-template-columns: $cardWidth 1fr;
+ grid-template-rows: 1fr auto;
&-image {
opacity: 0;
width: 100%;
@@ -15,12 +22,11 @@
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;
- width: 18% !important;
+ width: 100%;
}
&-blurhash {
position: absolute !important;
@@ -30,16 +36,17 @@
}
}
&-logo {
- max-width: 42rem;
+ max-width: 34rem;
max-height: 10rem;
opacity: 0;
transition: opacity $transition-time-default;
object-position: bottom;
+ margin-bottom: 2em;
}
&-detail {
width: 100%;
align-items: flex-start;
- gap: 1em;
+ gap: 0.2em;
justify-content: end;
}
&-buttons {
@@ -47,6 +54,10 @@
align-items: center;
justify-content: space-between;
width: 100%;
+ grid-column: 1/3;
+ display: grid;
+ grid-template-columns: inherit;
+ gap: 2em;
}
}
&-backdrop {
@@ -62,7 +73,7 @@
top: -4.4em;
left: -$page-margin;
width: 100vw;
- height: calc(50vh + 4.4em);
+ height: calc(54vh + 4.4em);
z-index: -1;
mask-image: linear-gradient(to top, transparent, black);
-webkit-mask-image: linear-gradient(
@@ -72,14 +83,17 @@
);
}
}
+ & .play-button {
+ width: 100% !important;
+ }
}
.item-detail {
display: grid;
- grid-template-columns: 1fr 5px 35%;
+ grid-template-columns: 1fr 35%;
justify-items: center;
align-items: start;
- gap: 1em;
+ gap: 3em;
&-nextUp {
max-width: 23em;
@@ -194,7 +208,7 @@
position: absolute;
top: 0;
right: 0;
- border: 0.85em solid #00c853;
+ border: 0.65em solid #00c853;
border-bottom-color: transparent;
border-left-color: transparent;
opacity: 0;
diff --git a/src/styles/global.scss b/src/styles/global.scss
index 7053d93..72f4b72 100644
--- a/src/styles/global.scss
+++ b/src/styles/global.scss
@@ -284,4 +284,8 @@ h1 {
@function neg($var) {
@return $var * -1;
+}
+
+.fullWidth {
+ width: 100%;
}
\ No newline at end of file
diff --git a/src/styles/variables.scss b/src/styles/variables.scss
index 3742974..c866832 100644
--- a/src/styles/variables.scss
+++ b/src/styles/variables.scss
@@ -21,7 +21,7 @@ $clr-gradient-dark: linear-gradient(
$clr-secondary-dark
);
-$border-radius-default: 6px;
+$border-radius-default: 8px;
$border-radius_04: 4px;
$transition-time-default: 250ms;
diff --git a/src/theme.js b/src/theme.js
index 8488b3a..d0495d2 100644
--- a/src/theme.js
+++ b/src/theme.js
@@ -6,7 +6,8 @@ import {
clrBackgroundLight,
clrSecondaryDefault,
} from "./palette.module.scss";
-
+const { palette } = createTheme({});
+const { augmentColor } = palette;
export const theme = createTheme({
palette: {
primary: {
@@ -24,9 +25,8 @@ export const theme = createTheme({
default: clrBackgroundDefault,
paper: clrBackgroundDark,
},
- white: {
- main: "#ffffff",
- },
+ white: augmentColor({ color: { main: "#ffffff" } }),
+ black: augmentColor({ color: { main: "#000" } }),
mode: "dark",
},
typography: {
diff --git a/src/utils/store/playback.ts b/src/utils/store/playback.ts
index 1d69938..d24eb4b 100644
--- a/src/utils/store/playback.ts
+++ b/src/utils/store/playback.ts
@@ -159,6 +159,24 @@ export const playItem = (
availableSubtitleTracks,
mediaSourceId
) => {
+ console.log({
+ itemName,
+ episodeTitle,
+ mediaSource: {
+ videoTrack,
+ audioTrack,
+ subtitleTrack,
+ container,
+ availableSubtitleTracks,
+ id: mediaSourceId,
+ },
+ enableSubtitle,
+ hlsStream,
+ userId,
+ startPosition,
+ itemDuration,
+ item,
+ });
usePlaybackStore.setState({
itemName,
episodeTitle,