Update hero carousel
This commit is contained in:
10 files changed
+430
-602
No files matched your search
@@ -2,7 +2,8 @@
|
||||
|
||||
.carousel {
|
||||
position: relative;
|
||||
height: 80vh;
|
||||
height: 70vh;
|
||||
margin: 4.4em 1.6em 1.6em 1.6em;
|
||||
&-button {
|
||||
position: absolute !important;
|
||||
top: 50%;
|
||||
@@ -29,8 +30,7 @@
|
||||
&-container {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
bottom: 1em;
|
||||
width: calc(100vw - 3em);
|
||||
bottom: -1em;
|
||||
left: 1em;
|
||||
right: 1em;
|
||||
gap: 1em;
|
||||
|
||||
@@ -73,7 +73,7 @@ const Carousel = ({ content, onChange }) => {
|
||||
}}
|
||||
style={{
|
||||
height: "100%",
|
||||
width: "100vw",
|
||||
width: "100%",
|
||||
position: "absolute",
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -80,8 +80,8 @@ const CarouselSlide = ({ item }) => {
|
||||
sx={{
|
||||
background: "transparent",
|
||||
px: 3,
|
||||
boxShadow: "none !important",
|
||||
}}
|
||||
elevation={6}
|
||||
>
|
||||
<div className="hero-carousel-background-container">
|
||||
{!!item.ImageBlurHashes.Backdrop && (
|
||||
@@ -182,7 +182,7 @@ const CarouselSlide = ({ item }) => {
|
||||
variant="h2"
|
||||
className="hero-carousel-text"
|
||||
sx={{
|
||||
mb: 2.5,
|
||||
mb: "5px",
|
||||
}}
|
||||
overflow="visible"
|
||||
>
|
||||
@@ -195,12 +195,13 @@ const CarouselSlide = ({ item }) => {
|
||||
api.basePath +
|
||||
"/Items/" +
|
||||
item.Id +
|
||||
"/Images/Logo?quality=80&tag=" +
|
||||
"/Images/Logo?quality=90&tag=" +
|
||||
item.ImageTags.Logo
|
||||
}
|
||||
style={{
|
||||
opacity: 0,
|
||||
transition: "opacity 0.2s",
|
||||
objectFit: "contain",
|
||||
}}
|
||||
onLoad={(e) =>
|
||||
(e.target.style.opacity = 1)
|
||||
@@ -372,30 +373,6 @@ const CarouselSlide = ({ item }) => {
|
||||
</Typography>
|
||||
|
||||
<Stack
|
||||
component={motion.div}
|
||||
initial={{
|
||||
transform:
|
||||
animationDirection == "right"
|
||||
? "translateX(20px)"
|
||||
: "translateX(-20px)",
|
||||
opacity: 0,
|
||||
}}
|
||||
animate={{
|
||||
transform: "translateX(0px)",
|
||||
opacity: 1,
|
||||
}}
|
||||
exit={{
|
||||
transform:
|
||||
animationDirection == "right"
|
||||
? "translateX(-20px)"
|
||||
: "translateX(20px)",
|
||||
|
||||
opacity: 0,
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.25,
|
||||
ease: "easeInOut",
|
||||
}}
|
||||
mt={3}
|
||||
direction="row"
|
||||
gap={3}
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
background: $clr-background-dark-opacity-0_8;
|
||||
background: rgb(0 0 0 / 0.6);
|
||||
z-index: 10;
|
||||
display: grid;
|
||||
padding: 1em;
|
||||
margin: 1em;
|
||||
// margin: 1em;
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 10px;
|
||||
// border-radius: 10px;
|
||||
overflow: hidden;
|
||||
gap: 1em;
|
||||
box-shadow: 0 0 20px rgb(0 0 0 / 0.25);
|
||||
|
||||
@@ -212,9 +212,7 @@ const AudioPlayer = () => {
|
||||
transform: "translateY(100%)",
|
||||
}}
|
||||
style={{
|
||||
width: `calc(100vw - ${theme.spacing(
|
||||
13,
|
||||
)} - 10px)`,
|
||||
width: `100%`,
|
||||
}}
|
||||
transition={{
|
||||
duration: 0.2,
|
||||
|
||||
Reference in new issue
Block a user