114 lines
1.8 KiB
CSS
114 lines
1.8 KiB
CSS
.container {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: var(--Corner-Radius-lg);
|
|
background: linear-gradient(
|
|
to right,
|
|
var(--Scandic-Blue-60),
|
|
var(--Scandic-Blue-80)
|
|
);
|
|
}
|
|
|
|
.backgroundImage {
|
|
position: absolute;
|
|
inset: 0;
|
|
}
|
|
|
|
.mobileImage {
|
|
object-fit: cover;
|
|
display: block;
|
|
}
|
|
|
|
.desktopImage {
|
|
object-fit: cover;
|
|
display: none;
|
|
}
|
|
|
|
.overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 23.33%,
|
|
rgba(0, 0, 0, 0.25) 61.67%,
|
|
rgba(0, 0, 0, 0.52) 100%
|
|
);
|
|
}
|
|
|
|
.content {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-areas:
|
|
"heading"
|
|
"description"
|
|
"button";
|
|
gap: var(--Space-x2);
|
|
min-height: 200px;
|
|
color: var(--Text-Inverted);
|
|
padding: var(--Space-x5) var(--Space-x3);
|
|
}
|
|
|
|
.headingContainer {
|
|
grid-area: heading;
|
|
}
|
|
.descriptionContainer {
|
|
grid-area: description;
|
|
}
|
|
.buttonContainer {
|
|
grid-area: button;
|
|
justify-self: start;
|
|
}
|
|
|
|
.brandName {
|
|
font-weight: 600;
|
|
}
|
|
.highlight {
|
|
color: var(--Scandic-Brand-Burgundy);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.container {
|
|
background: linear-gradient(
|
|
to right,
|
|
var(--Scandic-Yellow-10),
|
|
var(--Scandic-Peach-20)
|
|
);
|
|
}
|
|
|
|
.mobileImage {
|
|
display: none;
|
|
}
|
|
.desktopImage {
|
|
display: block;
|
|
}
|
|
|
|
.overlay {
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
rgba(0, 0, 0, 0.18) 50%,
|
|
rgba(0, 0, 0, 0.38) 100%
|
|
);
|
|
}
|
|
|
|
.content {
|
|
grid-template-areas:
|
|
"heading button"
|
|
"description button";
|
|
grid-template-columns: 2fr 1fr;
|
|
gap: var(--Space-x2) var(--Space-x4);
|
|
padding: var(--Space-x4) var(--Space-x4) var(--Space-x5);
|
|
}
|
|
|
|
.headingContainer {
|
|
align-self: end;
|
|
}
|
|
.descriptionContainer {
|
|
align-self: start;
|
|
}
|
|
.buttonContainer {
|
|
justify-self: center;
|
|
align-self: center;
|
|
}
|
|
}
|