Update hero carousel
This commit is contained in:
10 files changed
+430
-602
No files matched your search
Generated
+394
-529
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -296,7 +296,7 @@ function App() {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Dialog
|
<Dialog
|
||||||
// open={false}
|
// open={true}
|
||||||
open={updateDialog}
|
open={updateDialog}
|
||||||
// onClose={}
|
// onClose={}
|
||||||
// maxWidth="md"
|
// maxWidth="md"
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
.carousel {
|
.carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 80vh;
|
height: 70vh;
|
||||||
|
margin: 4.4em 1.6em 1.6em 1.6em;
|
||||||
&-button {
|
&-button {
|
||||||
position: absolute !important;
|
position: absolute !important;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -29,8 +30,7 @@
|
|||||||
&-container {
|
&-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 1em;
|
bottom: -1em;
|
||||||
width: calc(100vw - 3em);
|
|
||||||
left: 1em;
|
left: 1em;
|
||||||
right: 1em;
|
right: 1em;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ const Carousel = ({ content, onChange }) => {
|
|||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
height: "100%",
|
height: "100%",
|
||||||
width: "100vw",
|
width: "100%",
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ const CarouselSlide = ({ item }) => {
|
|||||||
sx={{
|
sx={{
|
||||||
background: "transparent",
|
background: "transparent",
|
||||||
px: 3,
|
px: 3,
|
||||||
boxShadow: "none !important",
|
|
||||||
}}
|
}}
|
||||||
|
elevation={6}
|
||||||
>
|
>
|
||||||
<div className="hero-carousel-background-container">
|
<div className="hero-carousel-background-container">
|
||||||
{!!item.ImageBlurHashes.Backdrop && (
|
{!!item.ImageBlurHashes.Backdrop && (
|
||||||
@@ -182,7 +182,7 @@ const CarouselSlide = ({ item }) => {
|
|||||||
variant="h2"
|
variant="h2"
|
||||||
className="hero-carousel-text"
|
className="hero-carousel-text"
|
||||||
sx={{
|
sx={{
|
||||||
mb: 2.5,
|
mb: "5px",
|
||||||
}}
|
}}
|
||||||
overflow="visible"
|
overflow="visible"
|
||||||
>
|
>
|
||||||
@@ -195,12 +195,13 @@ const CarouselSlide = ({ item }) => {
|
|||||||
api.basePath +
|
api.basePath +
|
||||||
"/Items/" +
|
"/Items/" +
|
||||||
item.Id +
|
item.Id +
|
||||||
"/Images/Logo?quality=80&tag=" +
|
"/Images/Logo?quality=90&tag=" +
|
||||||
item.ImageTags.Logo
|
item.ImageTags.Logo
|
||||||
}
|
}
|
||||||
style={{
|
style={{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
transition: "opacity 0.2s",
|
transition: "opacity 0.2s",
|
||||||
|
objectFit: "contain",
|
||||||
}}
|
}}
|
||||||
onLoad={(e) =>
|
onLoad={(e) =>
|
||||||
(e.target.style.opacity = 1)
|
(e.target.style.opacity = 1)
|
||||||
@@ -372,30 +373,6 @@ const CarouselSlide = ({ item }) => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Stack
|
<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}
|
mt={3}
|
||||||
direction="row"
|
direction="row"
|
||||||
gap={3}
|
gap={3}
|
||||||
|
|||||||
@@ -4,13 +4,13 @@
|
|||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background: $clr-background-dark-opacity-0_8;
|
background: rgb(0 0 0 / 0.6);
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
display: grid;
|
display: grid;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
margin: 1em;
|
// margin: 1em;
|
||||||
backdrop-filter: blur(10px);
|
backdrop-filter: blur(10px);
|
||||||
border-radius: 10px;
|
// border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
gap: 1em;
|
gap: 1em;
|
||||||
box-shadow: 0 0 20px rgb(0 0 0 / 0.25);
|
box-shadow: 0 0 20px rgb(0 0 0 / 0.25);
|
||||||
|
|||||||
@@ -212,9 +212,7 @@ const AudioPlayer = () => {
|
|||||||
transform: "translateY(100%)",
|
transform: "translateY(100%)",
|
||||||
}}
|
}}
|
||||||
style={{
|
style={{
|
||||||
width: `calc(100vw - ${theme.spacing(
|
width: `100%`,
|
||||||
13,
|
|
||||||
)} - 10px)`,
|
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
duration: 0.2,
|
duration: 0.2,
|
||||||
|
|||||||
@@ -1,20 +1,4 @@
|
|||||||
/** @format */
|
/** @format */
|
||||||
.home {
|
|
||||||
&-background {
|
|
||||||
&-container {
|
|
||||||
position: fixed !important;
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&-backdrop {
|
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
& > * {
|
|
||||||
all: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-carousel {
|
.hero-carousel {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -23,9 +7,11 @@
|
|||||||
&-slide {
|
&-slide {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 0px !important;
|
width: 100%;
|
||||||
|
border-radius: 10px !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
// box-shadow: 0 0 40px red;
|
||||||
}
|
}
|
||||||
&-background {
|
&-background {
|
||||||
&-blurhash {
|
&-blurhash {
|
||||||
@@ -33,7 +19,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
filter: brightness(0.7);
|
filter: brightness(0.4);
|
||||||
}
|
}
|
||||||
&-container {
|
&-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -42,13 +28,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
filter: brightness(0.5);
|
filter: brightness(0.7);
|
||||||
mask-image: linear-gradient(to bottom, black 40%, transparent);
|
|
||||||
-webkit-mask-image: linear-gradient(
|
|
||||||
to bottom,
|
|
||||||
black 40%,
|
|
||||||
transparent
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
&-image {
|
&-image {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -63,23 +43,32 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
transition: opacity 0.5s;
|
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 {
|
&-icon-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background: $clr-gradient-dark;
|
// background: $clr-gradient-dark;
|
||||||
// background: url("/public/assetsStatic//meshbackground.png");
|
background: url("/src/assets/herobg.png"), rgb(0 0 0 /0.3);
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
background-blend-mode: overlay;
|
||||||
.material-symbols-rounded {
|
.material-symbols-rounded {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
font-size: 15em !important;
|
font-size: 15em !important;
|
||||||
left: 70%;
|
left: 80%;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translate(-50%, -50%);
|
transform: translate(-50%, -50%);
|
||||||
|
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 50,
|
||||||
|
"opsz" 60;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -90,7 +79,7 @@
|
|||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
&-logo {
|
&-logo {
|
||||||
max-width: 9em;
|
max-width: 9em;
|
||||||
height: 3em;
|
max-height: 3em;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: bottom;
|
object-position: bottom;
|
||||||
}
|
}
|
||||||
@@ -101,15 +90,14 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
padding: 2em;
|
padding: 2.5em;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: flex-end;
|
justify-content: center;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
padding-bottom: 5em;
|
|
||||||
}
|
}
|
||||||
&-indicator {
|
&-indicator {
|
||||||
&-container {
|
&-container {
|
||||||
width: calc(100% - 2em) !important;
|
// width: calc(100% - 2em) !important;
|
||||||
margin-top: -1em !important;
|
margin-top: -1em !important;
|
||||||
margin-left: 1em !important;
|
margin-left: 1em !important;
|
||||||
margin-right: 1em !important;
|
margin-right: 1em !important;
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ const Home = () => {
|
|||||||
<div
|
<div
|
||||||
className="padded-container"
|
className="padded-container"
|
||||||
style={{
|
style={{
|
||||||
padding: "0 1.6em 1.6em",
|
padding: "1.6em",
|
||||||
scrollPadding: "4.4em",
|
scrollPadding: "4.4em",
|
||||||
}}
|
}}
|
||||||
id="libraries"
|
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-opacity-0_5: hsl(256, 100%, 6%, 50%);
|
||||||
|
|
||||||
$clr-background-dark: hsl(256, 100%, 4%);
|
$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-background-light: hsl(256, 100%, 16%);
|
||||||
|
|
||||||
$clr-gradient-default: linear-gradient(
|
$clr-gradient-default: linear-gradient(
|
||||||
|
|||||||
Reference in new issue
Block a user