Update hero carousel
This commit is contained in:
10 files changed
+430
-602
No files matched your search
+1
-1
@@ -296,7 +296,7 @@ function App() {
|
||||
/>
|
||||
)}
|
||||
<Dialog
|
||||
// open={false}
|
||||
// open={true}
|
||||
open={updateDialog}
|
||||
// onClose={}
|
||||
// maxWidth="md"
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,20 +1,4 @@
|
||||
/** @format */
|
||||
.home {
|
||||
&-background {
|
||||
&-container {
|
||||
position: fixed !important;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
}
|
||||
}
|
||||
&-backdrop {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
& > * {
|
||||
all: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.hero-carousel {
|
||||
position: relative;
|
||||
@@ -23,9 +7,11 @@
|
||||
&-slide {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
border-radius: 0px !important;
|
||||
width: 100%;
|
||||
border-radius: 10px !important;
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
// box-shadow: 0 0 40px red;
|
||||
}
|
||||
&-background {
|
||||
&-blurhash {
|
||||
@@ -33,7 +19,7 @@
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
filter: brightness(0.7);
|
||||
filter: brightness(0.4);
|
||||
}
|
||||
&-container {
|
||||
position: absolute;
|
||||
@@ -42,13 +28,7 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
filter: brightness(0.5);
|
||||
mask-image: linear-gradient(to bottom, black 40%, transparent);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to bottom,
|
||||
black 40%,
|
||||
transparent
|
||||
);
|
||||
filter: brightness(0.7);
|
||||
}
|
||||
&-image {
|
||||
position: absolute;
|
||||
@@ -63,23 +43,32 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: opacity 0.5s;
|
||||
mask-image: linear-gradient(to bottom, black 10%, transparent);
|
||||
-webkit-mask-image: linear-gradient(
|
||||
to left,
|
||||
black 40%,
|
||||
transparent 90%
|
||||
);
|
||||
}
|
||||
|
||||
&-icon-container {
|
||||
position: absolute;
|
||||
background: $clr-gradient-dark;
|
||||
// background: url("/public/assetsStatic//meshbackground.png");
|
||||
// background: $clr-gradient-dark;
|
||||
background: url("/src/assets/herobg.png"), rgb(0 0 0 /0.3);
|
||||
z-index: 0;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-blend-mode: overlay;
|
||||
.material-symbols-rounded {
|
||||
position: absolute;
|
||||
font-size: 15em !important;
|
||||
left: 70%;
|
||||
left: 80%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 50,
|
||||
"opsz" 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,7 +79,7 @@
|
||||
margin-bottom: 0.5em;
|
||||
&-logo {
|
||||
max-width: 9em;
|
||||
height: 3em;
|
||||
max-height: 3em;
|
||||
object-fit: contain;
|
||||
object-position: bottom;
|
||||
}
|
||||
@@ -101,15 +90,14 @@
|
||||
display: flex;
|
||||
height: 100%;
|
||||
width: 80%;
|
||||
padding: 2em;
|
||||
padding: 2.5em;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
padding-bottom: 5em;
|
||||
}
|
||||
&-indicator {
|
||||
&-container {
|
||||
width: calc(100% - 2em) !important;
|
||||
// width: calc(100% - 2em) !important;
|
||||
margin-top: -1em !important;
|
||||
margin-left: 1em !important;
|
||||
margin-right: 1em !important;
|
||||
|
||||
@@ -213,7 +213,7 @@ const Home = () => {
|
||||
<div
|
||||
className="padded-container"
|
||||
style={{
|
||||
padding: "0 1.6em 1.6em",
|
||||
padding: "1.6em",
|
||||
scrollPadding: "4.4em",
|
||||
}}
|
||||
id="libraries"
|
||||
|
||||
@@ -8,7 +8,7 @@ $clr-background-default: hsl(256, 100%, 6%);
|
||||
$clr-background-opacity-0_5: hsl(256, 100%, 6%, 50%);
|
||||
|
||||
$clr-background-dark: hsl(256, 100%, 4%);
|
||||
$clr-background-dark-opacity-0_8: hsl(256, 100%, 4%, 80%);
|
||||
$clr-background-dark-opacity-0_8: hsl(256, 100%, 4%, 94%);
|
||||
$clr-background-light: hsl(256, 100%, 16%);
|
||||
|
||||
$clr-gradient-default: linear-gradient(
|
||||
|
||||
Reference in new issue
Block a user