71 lines
1.3 KiB
SCSS
71 lines
1.3 KiB
SCSS
/** @format */
|
|
$maskPercentage: 40%;
|
|
.hero {
|
|
position: relative;
|
|
&-backdrop {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100vh;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
filter: brightness(0.4);
|
|
mask-image: linear-gradient(
|
|
to bottom,
|
|
black $maskPercentage,
|
|
transparent
|
|
),
|
|
linear-gradient(to left, black $maskPercentage, transparent);
|
|
-webkit-mask-image: linear-gradient(
|
|
to bottom,
|
|
black $maskPercentage,
|
|
transparent
|
|
),
|
|
linear-gradient(to left, black $maskPercentage, transparent);
|
|
mask-composite: source-in;
|
|
-webkit-mask-composite: source-in;
|
|
& > * {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
&-image {
|
|
object-fit: cover;
|
|
z-index: 1;
|
|
}
|
|
&-blurhash {
|
|
z-index: 0;
|
|
}
|
|
&-icon {
|
|
&-container {
|
|
background: url(../../../assets/herobg.png);
|
|
background-size: cover;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
}
|
|
&-grid {
|
|
display: grid;
|
|
width: 100%;
|
|
grid-template-columns: 1fr 85%;
|
|
}
|
|
|
|
&-name-logo {
|
|
width: 8.3em;
|
|
height: 2.3em;
|
|
object-fit: contain;
|
|
object-position: left;
|
|
opacity: 0;
|
|
transition: opacity $transition-time-fast;
|
|
filter: drop-shadow(0px 4px 10px rgb(0 0 0 / 0.5));
|
|
}
|
|
&-text-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|