Hero Simple (Workspace)
<!-- Onsite Example -->
<div class="hero-simple-links" style="background-image: url(/images/photos/workplace-onsite.jpg)">
<div class="hero-simple-links__inner">
<div class="hero-simple-links__label">Please take note:</div>
<ul class="hero-simple-links__list">
<li class="hero-simple-links__item">
<a href="#" class="hero-simple-links__link">
COVID 19 updates
<!-- Badge -->
<span class="badge badge-info hero-simple-links__badge">Important</span>
</a>
</li>
<li class="hero-simple-links__item">
<a href="#" class="hero-simple-links__link"> Return to work </a>
</li>
<li class="hero-simple-links__item">
<a href="#" class="hero-simple-links__link"> Workplace model context (onsite) </a>
</li>
</ul>
</div>
</div>
<!-- /Onsite Example -->
<!-- Blank Example -->
<div class="hero-simple-links" style="background-image: url(https://via.placeholder.com/1140x320)">
<div class="hero-simple-links__inner">
<div class="hero-simple-links__label">Please take note:</div>
<ul class="hero-simple-links__list">
<li class="hero-simple-links__item">
<a href="#" class="hero-simple-links__link"> Lorem ipsum dolor sit </a>
</li>
</ul>
</div>
</div>
<!-- /Blank Example -->
.hero-simple-links {
position: relative;
z-index: 1;
background-position: center;
background-size: cover;
margin-bottom: 4rem;
margin-left: -15px;
margin-right: -15px;
@media (min-width: $breakpoint-tablet) {
margin-left: 0;
margin-right: 0;
display: table;
width: 100%;
}
@media (min-width: $breakpoint-desktop) {
&::before {
content: "";
float: left;
padding-bottom: 28.0702%; /* Match aspect ratio of 1140x320 image */
}
}
&::after {
content: "";
position: absolute;
z-index: 0;
top: 0;
width: 100%;
height: 100%;
background-image: linear-gradient(
90deg,
rgba($color-green-light, 0.6) 1.6rem,
rgba($color-green-light, 0.3) 1.6rem,
rgba($color-green-light, 0.3) 3.2rem,
rgba($color-green-light, 0) 3.2rem
);
@media (min-width: $breakpoint-tablet) {
background-image: linear-gradient(
90deg,
rgba($color-green-light, 0.6) 3.2rem,
rgba($color-green-light, 0.3) 3.2rem,
rgba($color-green-light, 0.3) 6.4rem,
rgba($color-green-light, 0) 6.4rem
);
}
}
}
.hero-simple-links__inner {
position: relative;
z-index: 1;
padding: 2.4rem 3.2rem;
@media (min-width: $breakpoint-tablet) {
padding: 3.2rem 0 2.4rem 9.6rem;
width: 50%;
}
@media (min-width: $breakpoint-desktop) {
width: 33.3334%;
}
}
.hero-simple-links__label {
@include typeBody(true);
color: $color-base-white;
margin-bottom: 0.8rem;
}
.hero-simple-links__list {
list-style: none;
padding-left: 0;
}
.hero-simple-links__item {
margin-bottom: 1.6rem;
}
.hero-simple-links__link {
@include typeSubheader(true);
color: $color-base-white;
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: $color-base-blue;
padding: 1.6rem 2.4rem;
text-align: center;
min-height: 6.4rem;
&:hover {
color: $color-base-white;
background-color: $color-blue-medium;
}
}
.hero-simple-links__badge {
position: absolute;
top: 0;
right: 0;
}