Update sidemenu and cards
This commit is contained in:
6 files changed
+61
-39
No files matched your search
+4
-1
@@ -396,10 +396,13 @@ function App() {
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.5,
|
duration: 0.6,
|
||||||
}}
|
}}
|
||||||
onLoad={() => setBackdropLoading(false)}
|
onLoad={() => setBackdropLoading(false)}
|
||||||
loading="eager"
|
loading="eager"
|
||||||
|
style={{
|
||||||
|
transition: "opacity 6s",
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</AnimatePresence>
|
</AnimatePresence>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ export const Card = ({
|
|||||||
secondaryText,
|
secondaryText,
|
||||||
queryKey,
|
queryKey,
|
||||||
userId,
|
userId,
|
||||||
|
availableImagesTypes,
|
||||||
|
|
||||||
onClick,
|
onClick,
|
||||||
disableOverlay = false,
|
disableOverlay = false,
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
animate={{ opacity: 1 }}
|
animate={{ opacity: 1 }}
|
||||||
exit={{ opacity: 0 }}
|
exit={{ opacity: 0 }}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.3,
|
duration: 0.4,
|
||||||
}}
|
}}
|
||||||
drag={"x"}
|
drag={"x"}
|
||||||
dragConstraints={{ left: 0, right: 0 }}
|
dragConstraints={{ left: 0, right: 0 }}
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.15,
|
duration: 0.35,
|
||||||
}}
|
}}
|
||||||
className="hero-carousel-detail"
|
className="hero-carousel-detail"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -152,6 +152,45 @@ export const SideMenu = ({}) => {
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<List sx={{ border: "none" }}>
|
<List sx={{ border: "none" }}>
|
||||||
|
<Tooltip
|
||||||
|
title="Home"
|
||||||
|
placement="right"
|
||||||
|
followCursor
|
||||||
|
arrow
|
||||||
|
>
|
||||||
|
<ListItem
|
||||||
|
className="sidemenu-item-container"
|
||||||
|
disablePadding
|
||||||
|
sx={{
|
||||||
|
mb: 1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ListItemButton
|
||||||
|
component={NavLink}
|
||||||
|
to="/home"
|
||||||
|
className="sidemenu-item"
|
||||||
|
sx={{
|
||||||
|
minHeight: 48,
|
||||||
|
justifyContent:
|
||||||
|
"center",
|
||||||
|
px: 2.5,
|
||||||
|
display: "flex",
|
||||||
|
flexDirection:
|
||||||
|
"column",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<ListItemIcon
|
||||||
|
sx={{
|
||||||
|
minWidth: 0,
|
||||||
|
justifyContent:
|
||||||
|
"center",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<MdiHomeVariantOutline />
|
||||||
|
</ListItemIcon>
|
||||||
|
</ListItemButton>
|
||||||
|
</ListItem>
|
||||||
|
</Tooltip>
|
||||||
{libraries.data.Items.map(
|
{libraries.data.Items.map(
|
||||||
(library, index) => {
|
(library, index) => {
|
||||||
return (
|
return (
|
||||||
@@ -161,6 +200,9 @@ export const SideMenu = ({}) => {
|
|||||||
arrow
|
arrow
|
||||||
followCursor
|
followCursor
|
||||||
key={index}
|
key={index}
|
||||||
|
sx={{
|
||||||
|
mb: 1,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ListItem
|
<ListItem
|
||||||
className="sidemenu-item-container"
|
className="sidemenu-item-container"
|
||||||
@@ -207,42 +249,6 @@ export const SideMenu = ({}) => {
|
|||||||
)}
|
)}
|
||||||
</List>
|
</List>
|
||||||
<List sx={{ marginTop: "auto" }}>
|
<List sx={{ marginTop: "auto" }}>
|
||||||
<Tooltip
|
|
||||||
title="Home"
|
|
||||||
placement="right"
|
|
||||||
followCursor
|
|
||||||
arrow
|
|
||||||
>
|
|
||||||
<ListItem
|
|
||||||
className="sidemenu-item-container"
|
|
||||||
disablePadding
|
|
||||||
>
|
|
||||||
<ListItemButton
|
|
||||||
component={NavLink}
|
|
||||||
to="/home"
|
|
||||||
className="sidemenu-item"
|
|
||||||
sx={{
|
|
||||||
minHeight: 48,
|
|
||||||
justifyContent:
|
|
||||||
"center",
|
|
||||||
px: 2.5,
|
|
||||||
display: "flex",
|
|
||||||
flexDirection:
|
|
||||||
"column",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<ListItemIcon
|
|
||||||
sx={{
|
|
||||||
minWidth: 0,
|
|
||||||
justifyContent:
|
|
||||||
"center",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<MdiHomeVariantOutline />
|
|
||||||
</ListItemIcon>
|
|
||||||
</ListItemButton>
|
|
||||||
</ListItem>
|
|
||||||
</Tooltip>
|
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title="Logout"
|
title="Logout"
|
||||||
placement="right"
|
placement="right"
|
||||||
|
|||||||
@@ -351,6 +351,12 @@ const Home = () => {
|
|||||||
item.Type ==
|
item.Type ==
|
||||||
BaseItemKind.Episode
|
BaseItemKind.Episode
|
||||||
? "Primary"
|
? "Primary"
|
||||||
|
: Object.keys(
|
||||||
|
item.ImageTags,
|
||||||
|
).includes(
|
||||||
|
"Thumb",
|
||||||
|
)
|
||||||
|
? "Thumb"
|
||||||
: "Backdrop"
|
: "Backdrop"
|
||||||
}
|
}
|
||||||
secondaryText={
|
secondaryText={
|
||||||
@@ -383,6 +389,12 @@ const Home = () => {
|
|||||||
)[0]
|
)[0]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
availableImagesTypes={
|
||||||
|
!!item.ImageTags &&
|
||||||
|
Object.keys(
|
||||||
|
item.ImageTags,
|
||||||
|
)
|
||||||
|
}
|
||||||
></Card>
|
></Card>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user