Add playback indication in cards and update carousel animation #153
This commit is contained in:
10 files changed
+255
-71
No files matched your search
@@ -0,0 +1,19 @@
|
|||||||
|
/** @format */
|
||||||
|
|
||||||
|
import IconButton from "@mui/material/IconButton";
|
||||||
|
import { MdiPlayOutline } from "../icons/mdiPlayOutline";
|
||||||
|
|
||||||
|
const PlayButton = ({ className, sx, iconProps }) => {
|
||||||
|
return (
|
||||||
|
<IconButton
|
||||||
|
className={className}
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
|
sx={sx}
|
||||||
|
disabled
|
||||||
|
>
|
||||||
|
<MdiPlayOutline {...iconProps} />
|
||||||
|
</IconButton>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PlayButton;
|
||||||
@@ -34,6 +34,7 @@ import { MdiHeart } from "../icons/mdiHeart";
|
|||||||
import useIntersecting from "../../utils/hooks/useIntersecting";
|
import useIntersecting from "../../utils/hooks/useIntersecting";
|
||||||
import LikeButton from "../buttons/likeButton";
|
import LikeButton from "../buttons/likeButton";
|
||||||
import MarkPlayedButton from "../buttons/markPlayedButton";
|
import MarkPlayedButton from "../buttons/markPlayedButton";
|
||||||
|
import PlayButton from "../buttons/playButton";
|
||||||
|
|
||||||
const cardImageAspectRatios = {
|
const cardImageAspectRatios = {
|
||||||
thumb: 1.777,
|
thumb: 1.777,
|
||||||
@@ -54,6 +55,8 @@ export const Card = ({
|
|||||||
queryKey,
|
queryKey,
|
||||||
userId,
|
userId,
|
||||||
availableImagesTypes,
|
availableImagesTypes,
|
||||||
|
playedProgress = 0,
|
||||||
|
seriesId,
|
||||||
|
|
||||||
onClick,
|
onClick,
|
||||||
disableOverlay = false,
|
disableOverlay = false,
|
||||||
@@ -97,8 +100,29 @@ export const Card = ({
|
|||||||
overflow: "hidden",
|
overflow: "hidden",
|
||||||
height: "auto",
|
height: "auto",
|
||||||
width: "100%",
|
width: "100%",
|
||||||
|
zIndex: 0,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
position: "absolute",
|
||||||
|
top: "0.4em",
|
||||||
|
right: "0.4em",
|
||||||
|
zIndex: 2,
|
||||||
|
background: "rgb(20 20 20 / 0.5)",
|
||||||
|
padding: "0.2em 0.75em",
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
borderRadius: "100px",
|
||||||
|
backdropFilter: "blur(5px)",
|
||||||
|
transition: "opacity 250ms",
|
||||||
|
opacity: isPlayed ? 1 : 0,
|
||||||
|
boxShadow: "0 0 5px rgb(0 0 0 / 0.2)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<MdiCheck />
|
||||||
|
</Box>
|
||||||
{!!imageBlurhash && (
|
{!!imageBlurhash && (
|
||||||
<Blurhash
|
<Blurhash
|
||||||
hash={imageBlurhash}
|
hash={imageBlurhash}
|
||||||
@@ -114,7 +138,7 @@ export const Card = ({
|
|||||||
</Box>
|
</Box>
|
||||||
<img
|
<img
|
||||||
src={window.api.getItemImageUrl(
|
src={window.api.getItemImageUrl(
|
||||||
itemId,
|
!!seriesId ? seriesId : itemId,
|
||||||
imageType,
|
imageType,
|
||||||
{
|
{
|
||||||
quality: 90,
|
quality: 90,
|
||||||
@@ -133,6 +157,12 @@ export const Card = ({
|
|||||||
/>
|
/>
|
||||||
{!disableOverlay && (
|
{!disableOverlay && (
|
||||||
<Box className="card-overlay">
|
<Box className="card-overlay">
|
||||||
|
<PlayButton
|
||||||
|
className="card-play-button"
|
||||||
|
iconProps={{
|
||||||
|
sx: { fontSize: "1.5em" },
|
||||||
|
}}
|
||||||
|
/>
|
||||||
<LikeButton
|
<LikeButton
|
||||||
itemId={itemId}
|
itemId={itemId}
|
||||||
itemName={itemName}
|
itemName={itemName}
|
||||||
@@ -149,11 +179,29 @@ export const Card = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
)}
|
)}
|
||||||
|
{playedProgress != 0 && (
|
||||||
|
<LinearProgress
|
||||||
|
variant="determinate"
|
||||||
|
value={playedProgress}
|
||||||
|
sx={{
|
||||||
|
position: "absolute",
|
||||||
|
left: 0,
|
||||||
|
right: 0,
|
||||||
|
bottom: 0,
|
||||||
|
zIndex: 2,
|
||||||
|
height: "6px",
|
||||||
|
background:
|
||||||
|
"rgb(5 5 5 / 0.5) !important",
|
||||||
|
backdropFilter: "blur(5px)",
|
||||||
|
}}
|
||||||
|
color="primary"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
<Box className="card-text-container" height="15%">
|
<Box className="card-text-container" height="15%">
|
||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="subtitle1"
|
||||||
fontWeight={400}
|
fontWeight={500}
|
||||||
noWrap
|
noWrap
|
||||||
textAlign="center"
|
textAlign="center"
|
||||||
sx={{ opacity: 0.9 }}
|
sx={{ opacity: 0.9 }}
|
||||||
@@ -161,11 +209,11 @@ export const Card = ({
|
|||||||
{itemName}
|
{itemName}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography
|
<Typography
|
||||||
variant="subtitle1"
|
variant="subtitle2"
|
||||||
fontWeight={300}
|
|
||||||
noWrap
|
noWrap
|
||||||
textAlign="center"
|
textAlign="center"
|
||||||
sx={{ opacity: 0.6 }}
|
sx={{ opacity: 0.6 }}
|
||||||
|
lineHeight="auto"
|
||||||
>
|
>
|
||||||
{secondaryText}
|
{secondaryText}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
@@ -62,4 +62,11 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
&-play-button {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -29,21 +29,25 @@ export const CardScroller = ({
|
|||||||
breakpoint: { max: 4000, min: 3000 },
|
breakpoint: { max: 4000, min: 3000 },
|
||||||
items: displayCards + 1,
|
items: displayCards + 1,
|
||||||
slidesToSlide: displayCards + 1,
|
slidesToSlide: displayCards + 1,
|
||||||
|
partialVisibilityGutter: 40,
|
||||||
},
|
},
|
||||||
desktop: {
|
desktop: {
|
||||||
breakpoint: { max: 3000, min: 625 },
|
breakpoint: { max: 3000, min: 625 },
|
||||||
items: displayCards,
|
items: displayCards,
|
||||||
slidesToSlide: displayCards, // optional, default to 1.
|
slidesToSlide: displayCards, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 30,
|
||||||
},
|
},
|
||||||
tablet: {
|
tablet: {
|
||||||
breakpoint: { max: 624, min: 464 },
|
breakpoint: { max: 624, min: 464 },
|
||||||
items: displayCards - 2,
|
items: displayCards - 2,
|
||||||
slidesToSlide: displayCards - 2, // optional, default to 1.
|
slidesToSlide: displayCards - 2, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 20,
|
||||||
},
|
},
|
||||||
mobile: {
|
mobile: {
|
||||||
breakpoint: { max: 464, min: 0 },
|
breakpoint: { max: 464, min: 0 },
|
||||||
items: displayCards - 5,
|
items: displayCards - 5,
|
||||||
slidesToSlide: displayCards - 5, // optional, default to 1.
|
slidesToSlide: displayCards - 5, // optional, default to 1.
|
||||||
|
partialVisibilityGutter: 10,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -60,7 +64,7 @@ export const CardScroller = ({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h4"
|
variant="h5"
|
||||||
color="textPrimary"
|
color="textPrimary"
|
||||||
className="card-scroller-heading"
|
className="card-scroller-heading"
|
||||||
{...headingProps}
|
{...headingProps}
|
||||||
@@ -89,8 +93,6 @@ export const CardScroller = ({
|
|||||||
responsive={responsive}
|
responsive={responsive}
|
||||||
arrows={false}
|
arrows={false}
|
||||||
ref={(el) => setCarouselRef(el)}
|
ref={(el) => setCarouselRef(el)}
|
||||||
// customButtonGroup={<HomeSectionHeader />}
|
|
||||||
// renderButtonGroupOutside={true}
|
|
||||||
className="card-scroller"
|
className="card-scroller"
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
margin-bottom: 0.25em !important;
|
margin-bottom: 0.25em !important;
|
||||||
&-decoration {
|
&-decoration {
|
||||||
width: 0.75em;
|
width: 0.75em;
|
||||||
height: 3px;
|
height: 2px;
|
||||||
background: white;
|
background: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,8 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
animate={{ opacity: 1 }}
|
animate={{ opacity: 1 }}
|
||||||
exit={{ opacity: 0 }}
|
exit={{ opacity: 0 }}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.4,
|
duration: 0.25,
|
||||||
|
ease: "easeInOut",
|
||||||
}}
|
}}
|
||||||
drag={"x"}
|
drag={"x"}
|
||||||
dragConstraints={{ left: 0, right: 0 }}
|
dragConstraints={{ left: 0, right: 0 }}
|
||||||
|
|||||||
@@ -110,8 +110,8 @@ const CarouselSlide = ({ item }) => {
|
|||||||
initial={{
|
initial={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection == "right"
|
||||||
? "translateX(20%)"
|
? "translateX(10%)"
|
||||||
: "translateX(-20%)",
|
: "translateX(-10%)",
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
animate={{
|
animate={{
|
||||||
@@ -121,13 +121,14 @@ const CarouselSlide = ({ item }) => {
|
|||||||
exit={{
|
exit={{
|
||||||
transform:
|
transform:
|
||||||
animationDirection == "right"
|
animationDirection == "right"
|
||||||
? "translateX(-20%)"
|
? "translateX(-10%)"
|
||||||
: "translateX(20%)",
|
: "translateX(10%)",
|
||||||
|
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.35,
|
duration: 0.25,
|
||||||
|
ease: "easeInOut",
|
||||||
}}
|
}}
|
||||||
className="hero-carousel-detail"
|
className="hero-carousel-detail"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -46,8 +46,13 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
|
|||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={index}
|
key={index}
|
||||||
itemName={item.Name}
|
itemName={
|
||||||
|
item.Type == BaseItemKind.Episode
|
||||||
|
? item.SeriesName
|
||||||
|
: item.Name
|
||||||
|
}
|
||||||
itemId={item.Id}
|
itemId={item.Id}
|
||||||
|
seriesId={item.SeriesId}
|
||||||
itemType={item.Type}
|
itemType={item.Type}
|
||||||
imageType="Primary"
|
imageType="Primary"
|
||||||
cardType={
|
cardType={
|
||||||
@@ -56,9 +61,29 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
|
|||||||
? "square"
|
? "square"
|
||||||
: "portrait"
|
: "portrait"
|
||||||
}
|
}
|
||||||
secondaryText={item.ProductionYear}
|
secondaryText={
|
||||||
|
item.Type == BaseItemKind.Episode
|
||||||
|
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
||||||
|
: item.Type == BaseItemKind.Series
|
||||||
|
? `${item.ProductionYear} - ${
|
||||||
|
!!item.EndDate
|
||||||
|
? new Date(
|
||||||
|
item.EndDate,
|
||||||
|
).toLocaleString(
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
year: "numeric",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
: "Present"
|
||||||
|
}`
|
||||||
|
: item.ProductionYear
|
||||||
|
}
|
||||||
isFavorite={item.UserData.IsFavorite}
|
isFavorite={item.UserData.IsFavorite}
|
||||||
queryKey={["home", "resume", "video"]}
|
queryKey={[
|
||||||
|
"homeSection, latestMedia",
|
||||||
|
latestMediaLib,
|
||||||
|
]}
|
||||||
isPlayed={item.UserData.Played}
|
isPlayed={item.UserData.Played}
|
||||||
userId={user.data.Id}
|
userId={user.data.Id}
|
||||||
imageBlurhash={
|
imageBlurhash={
|
||||||
@@ -68,6 +93,9 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
|
|||||||
)[0]
|
)[0]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
playedProgress={
|
||||||
|
item.UserData.PlayedPercentage
|
||||||
|
}
|
||||||
></Card>
|
></Card>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
+129
-51
@@ -214,7 +214,7 @@ const Home = () => {
|
|||||||
) : (
|
) : (
|
||||||
<Carousel
|
<Carousel
|
||||||
content={latestMedia.data?.map((item, index) => (
|
content={latestMedia.data?.map((item, index) => (
|
||||||
<CarouselSlide item={item} key={index} />
|
<CarouselSlide item={item} key={item.Id} />
|
||||||
))}
|
))}
|
||||||
onChange={(now) => {
|
onChange={(now) => {
|
||||||
if (latestMedia.isSuccess) {
|
if (latestMedia.isSuccess) {
|
||||||
@@ -251,7 +251,7 @@ const Home = () => {
|
|||||||
(item, index) => {
|
(item, index) => {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={index}
|
key={item.Id}
|
||||||
itemName={item.Name}
|
itemName={item.Name}
|
||||||
itemId={item.Id}
|
itemId={item.Id}
|
||||||
itemType="Library"
|
itemType="Library"
|
||||||
@@ -291,54 +291,7 @@ const Home = () => {
|
|||||||
(item, index) => {
|
(item, index) => {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={index}
|
key={item.Id}
|
||||||
itemName={item.Name}
|
|
||||||
itemId={item.Id}
|
|
||||||
itemType={item.Type}
|
|
||||||
imageType="Primary"
|
|
||||||
cardType="thumb"
|
|
||||||
isFavorite={
|
|
||||||
item.UserData
|
|
||||||
.IsFavorite
|
|
||||||
}
|
|
||||||
queryKey={[
|
|
||||||
"home",
|
|
||||||
"upNext",
|
|
||||||
]}
|
|
||||||
isPlayed={
|
|
||||||
item.UserData.Played
|
|
||||||
}
|
|
||||||
userId={user.data.Id}
|
|
||||||
imageBlurhash={
|
|
||||||
item.ImageBlurHashes
|
|
||||||
?.Primary[
|
|
||||||
Object.keys(
|
|
||||||
item
|
|
||||||
.ImageBlurHashes
|
|
||||||
.Primary,
|
|
||||||
)[0]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
></Card>
|
|
||||||
);
|
|
||||||
},
|
|
||||||
)}
|
|
||||||
</CardScroller>
|
|
||||||
)}
|
|
||||||
{resumeItemsVideo.isLoading ? (
|
|
||||||
<CardsSkeleton />
|
|
||||||
) : resumeItemsVideo.data.Items.length == 0 ? (
|
|
||||||
<></>
|
|
||||||
) : (
|
|
||||||
<CardScroller
|
|
||||||
displayCards={4}
|
|
||||||
title="Continue Watching"
|
|
||||||
>
|
|
||||||
{resumeItemsVideo.data.Items.map(
|
|
||||||
(item, index) => {
|
|
||||||
return (
|
|
||||||
<Card
|
|
||||||
key={index}
|
|
||||||
itemName={
|
itemName={
|
||||||
item.Type ==
|
item.Type ==
|
||||||
BaseItemKind.Episode
|
BaseItemKind.Episode
|
||||||
@@ -363,6 +316,117 @@ const Home = () => {
|
|||||||
item.Type ==
|
item.Type ==
|
||||||
BaseItemKind.Episode
|
BaseItemKind.Episode
|
||||||
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
||||||
|
: item.Type ==
|
||||||
|
BaseItemKind.Series
|
||||||
|
? `${
|
||||||
|
item.ProductionYear
|
||||||
|
} - ${
|
||||||
|
!!item.EndDate
|
||||||
|
? new Date(
|
||||||
|
item.EndDate,
|
||||||
|
).toLocaleString(
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
year: "numeric",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
: "Present"
|
||||||
|
}`
|
||||||
|
: item.ProductionYear
|
||||||
|
}
|
||||||
|
cardType="thumb"
|
||||||
|
isFavorite={
|
||||||
|
item.UserData
|
||||||
|
.IsFavorite
|
||||||
|
}
|
||||||
|
queryKey={[
|
||||||
|
"home",
|
||||||
|
"upNext",
|
||||||
|
]}
|
||||||
|
isPlayed={
|
||||||
|
item.UserData.Played
|
||||||
|
}
|
||||||
|
userId={user.data.Id}
|
||||||
|
imageBlurhash={
|
||||||
|
item.ImageBlurHashes
|
||||||
|
?.Primary[
|
||||||
|
Object.keys(
|
||||||
|
item
|
||||||
|
.ImageBlurHashes
|
||||||
|
.Primary,
|
||||||
|
)[0]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
availableImagesTypes={
|
||||||
|
!!item.ImageTags &&
|
||||||
|
Object.keys(
|
||||||
|
item.ImageTags,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
playedProgress={
|
||||||
|
item.UserData
|
||||||
|
.PlayedPercentage
|
||||||
|
}
|
||||||
|
></Card>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
)}
|
||||||
|
</CardScroller>
|
||||||
|
)}
|
||||||
|
{resumeItemsVideo.isLoading ? (
|
||||||
|
<CardsSkeleton />
|
||||||
|
) : resumeItemsVideo.data.Items.length == 0 ? (
|
||||||
|
<></>
|
||||||
|
) : (
|
||||||
|
<CardScroller
|
||||||
|
displayCards={4}
|
||||||
|
title="Continue Watching"
|
||||||
|
>
|
||||||
|
{resumeItemsVideo.data.Items.map(
|
||||||
|
(item, index) => {
|
||||||
|
return (
|
||||||
|
<Card
|
||||||
|
key={item.Id}
|
||||||
|
itemName={
|
||||||
|
item.Type ==
|
||||||
|
BaseItemKind.Episode
|
||||||
|
? item.SeriesName
|
||||||
|
: item.Name
|
||||||
|
}
|
||||||
|
itemId={item.Id}
|
||||||
|
itemType={item.Type}
|
||||||
|
imageType={
|
||||||
|
item.Type ==
|
||||||
|
BaseItemKind.Episode
|
||||||
|
? "Primary"
|
||||||
|
: Object.keys(
|
||||||
|
item.ImageTags,
|
||||||
|
).includes(
|
||||||
|
"Thumb",
|
||||||
|
)
|
||||||
|
? "Thumb"
|
||||||
|
: "Backdrop"
|
||||||
|
}
|
||||||
|
secondaryText={
|
||||||
|
item.Type ==
|
||||||
|
BaseItemKind.Episode
|
||||||
|
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
|
||||||
|
: item.Type ==
|
||||||
|
BaseItemKind.Series
|
||||||
|
? `${
|
||||||
|
item.ProductionYear
|
||||||
|
} - ${
|
||||||
|
!!item.EndDate
|
||||||
|
? new Date(
|
||||||
|
item.EndDate,
|
||||||
|
).toLocaleString(
|
||||||
|
[],
|
||||||
|
{
|
||||||
|
year: "numeric",
|
||||||
|
},
|
||||||
|
)
|
||||||
|
: "Present"
|
||||||
|
}`
|
||||||
: item.ProductionYear
|
: item.ProductionYear
|
||||||
}
|
}
|
||||||
cardType="thumb"
|
cardType="thumb"
|
||||||
@@ -395,6 +459,10 @@ const Home = () => {
|
|||||||
item.ImageTags,
|
item.ImageTags,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
playedProgress={
|
||||||
|
item.UserData
|
||||||
|
.PlayedPercentage
|
||||||
|
}
|
||||||
></Card>
|
></Card>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
@@ -414,7 +482,7 @@ const Home = () => {
|
|||||||
(item, index) => {
|
(item, index) => {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
key={index}
|
key={item.Id}
|
||||||
itemName={item.Name}
|
itemName={item.Name}
|
||||||
itemId={item.Id}
|
itemId={item.Id}
|
||||||
itemType={item.Type}
|
itemType={item.Type}
|
||||||
@@ -422,6 +490,12 @@ const Home = () => {
|
|||||||
item.Type ==
|
item.Type ==
|
||||||
BaseItemKind.Episode
|
BaseItemKind.Episode
|
||||||
? "Primary"
|
? "Primary"
|
||||||
|
: Object.keys(
|
||||||
|
item.ImageTags,
|
||||||
|
).includes(
|
||||||
|
"Thumb",
|
||||||
|
)
|
||||||
|
? "Thumb"
|
||||||
: "Backdrop"
|
: "Backdrop"
|
||||||
}
|
}
|
||||||
secondaryText={
|
secondaryText={
|
||||||
@@ -451,6 +525,10 @@ const Home = () => {
|
|||||||
)[0]
|
)[0]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
playedProgress={
|
||||||
|
item.UserData
|
||||||
|
.PlayedPercentage
|
||||||
|
}
|
||||||
></Card>
|
></Card>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ $clr-gradient-dark: linear-gradient(
|
|||||||
$clr-secondary-dark
|
$clr-secondary-dark
|
||||||
);
|
);
|
||||||
|
|
||||||
$border-radius-default: 10px;
|
$border-radius-default: 6px;
|
||||||
$border-radius-intensity-1: 5px;
|
$border-radius-intensity-1: 4px;
|
||||||
|
|
||||||
$transition-time-default: 250ms;
|
$transition-time-default: 250ms;
|
||||||
$transition-time-fast: 150ms;
|
$transition-time-fast: 150ms;
|
||||||
Reference in new issue
Block a user