72 lines
1.1 KiB
CSS
72 lines
1.1 KiB
CSS
.promo {
|
|
height: 480px;
|
|
position: relative;
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.content {
|
|
position: relative;
|
|
z-index: 2;
|
|
align-items: center;
|
|
display: flex;
|
|
flex: 1 0 100%;
|
|
flex-direction: column;
|
|
gap: var(--Spacing-x2);
|
|
justify-content: center;
|
|
padding: var(--Spacing-x4) var(--Spacing-x3);
|
|
color: var(--UI-Opacity-White-100);
|
|
text-align: center;
|
|
}
|
|
|
|
.text {
|
|
width: 100%;
|
|
}
|
|
|
|
.imageContainer {
|
|
height: 100%;
|
|
width: 100%;
|
|
position: absolute;
|
|
background-image: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
rgba(0, 0, 0, 0.36) 37.88%,
|
|
rgba(0, 0, 0, 0.75) 100%
|
|
);
|
|
}
|
|
|
|
.overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-image: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
rgba(0, 0, 0, 0.36) 37.88%,
|
|
rgba(0, 0, 0, 0.75) 100%
|
|
);
|
|
z-index: 1;
|
|
}
|
|
|
|
.image {
|
|
height: 100%;
|
|
object-fit: cover;
|
|
width: 100%;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.promo {
|
|
border-radius: var(--Corner-radius-xl);
|
|
}
|
|
|
|
.content {
|
|
flex: 1 0 480px;
|
|
}
|
|
|
|
.text {
|
|
width: 400px;
|
|
}
|
|
}
|