Files
Blink/src/routes/_api/home/home.scss
T

125 lines
2.2 KiB
SCSS

.hero-carousel {
position: relative;
overflow: hidden;
isolation: isolate;
&-slide {
position: relative;
height: 100%;
width: 100%;
border-radius: 10px !important;
overflow: hidden;
margin: 0 auto;
border: 1.2px solid rgb(255 255 255 / 0.15);
// box-shadow: 0 0 30px black !important;
}
&-background {
&-blurhash {
width: 100%;
height: 100%;
position: absolute;
z-index: 1;
filter: brightness(0.4);
}
&-container {
position: absolute;
z-index: 0;
top: 0;
left: 0;
right: 0;
bottom: 0;
filter: brightness(0.8);
}
&-image {
position: absolute;
background-size: cover;
z-index: 1;
top: 0;
right: 0;
bottom: 0;
background-position: center;
object-fit: cover;
width: 80%;
height: 100%;
transition: opacity 0.5s;
mask-image: linear-gradient(to left, black 50%, transparent);
-webkit-mask-image: linear-gradient(
to left,
black 50%,
transparent
);
}
&-icon-container {
position: absolute;
// 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: 80%;
top: 50%;
transform: translate(-50%, -50%);
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 50,
"opsz" 60;
}
}
}
&-text {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
margin-bottom: 0.5em;
&-logo {
max-width: 34vw;
max-height: 2.4em;
object-fit: contain;
object-position: bottom;
}
}
&-detail {
position: relative;
z-index: 0;
display: flex;
height: 100%;
width: 80%;
padding: 2.5em;
flex-direction: column;
justify-content: center;
align-items: flex-start;
}
}
.backdropContainer {
background: linear-gradient(
45deg,
$clr-background-default,
$clr-background-light
);
}
@media (max-width: 1140px) {
.carousel{
height: 60vh !important;
}
.hero-carousel{
&-background-image{
width: 100%;
}
&-text {
-webkit-line-clamp: 2 !important;
&-logo {
max-width: 7em;
max-height: 2em;
object-fit: contain;
object-position: bottom;
}
}
}
}