<a class="efl-bundles-overview-card" href="#" target="_blank">
<div class="efl-bundles-overview-card__content">
<div class="efl-bundles-overview-card__content--info">
<p>COACHING SKILLS</p>
<div class="title">Communication and connection</div>
<hr>
<div class="quiz-time">
<span>20 - mins</span>
<span>5 - Quizzes</span>
</div>
</div>
<div class="efl-bundles-overview-card__content--img">
<img src="/assets/example-content/bundles-tropy-3.svg" />
</div>
</div>
<div class="efl-bundles-overview-card__status complete">Complete!</div>
</a>
No notes defined.
{
"category": "COACHING SKILLS",
"title": "Communication and connection",
"image": "/assets/example-content/bundles-tropy-3.svg",
"status": "Complete!",
"status-class": "complete"
}
.efl-bundles-overview-card {
display: flex;
flex-direction: column;
justify-content: space-between;
background: $grey-light;
border-radius: 8px;
width: 31.1rem;
text-decoration: none !important;
min-width: calc(100vw - 6.4rem);
&__content {
display: flex;
justify-content: space-between;
padding: 1.6rem 1.3rem 1.6rem 2.4rem;
gap: 1.9rem;
height: 100%;
align-items: center;
&--info {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
p {
@extend .efl-category-title;
font-size: 1.2rem;
line-height: 1.2rem;
letter-spacing: 0.08em;
overflow-wrap: break-word;
color: $color-interface-light;
}
.title {
@extend .efl-heading-3;
position: relative;
font-size: 2.4rem;
line-height: 2.6rem;
max-width: 14.1rem;
color: $blue;
margin-bottom: 0;
&::after {
content: '';
background: url('./assets/images/bundle-link-icon.svg') no-repeat center;
background-size: contain;
position: absolute;
bottom: 0.5rem;
display: inline-block;
width: 1.4rem;
height: 1.6rem;
margin-left: 0.7rem;
cursor: pointer;
}
}
hr {
border-top: 1px solid rgba(187, 193, 206, 0.54);
border-bottom: none;
width: 100%;
display: flex;
margin: 0.4rem 0;
}
.quiz-time {
display: flex;
}
span {
font-family: $ef-font;
font-weight: 400;
font-size: 1.4rem;
line-height: 2.4rem;
letter-spacing: -0.01em;
color: $blue;
display: flex;
align-items: center;
text-wrap: nowrap;
&:first-of-type {
margin-right: 1.5rem;
&::before {
content: '';
background: url(./assets/images/time-gray.svg) no-repeat center;
width: 1.4rem;
height: 1.6rem;
display: flex;
margin-right: 0.8rem;
}
}
&:last-of-type {
&::before {
content: '';
background: url(./assets/images/quiz-gray.svg) no-repeat center;
width: 1.4rem;
height: 1.6rem;
display: flex;
margin-right: 0.8rem;
}
}
}
img {
max-width: 8.8rem;
}
}
&__status {
@extend .efl-p-1;
color: $blue;
height: 3.4rem;
min-height: 3.4rem;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0 0 0.8rem 0.8rem;
&.not-started {
background-color: $grey;
}
&.started {
background-color: $light-blue;
}
&.complete {
background-color: #90714c;
color: $white;
}
}
@media screen and (min-width: 768px) {
min-width: initial;
}
@media screen and (min-width: $mq-medium) {
width: 30.6rem;
min-width: initial;
}
@media screen and (max-width: 360px) {
max-width: calc(100vw - 5.4rem);
&__content {
padding: 1.6rem 1.2rem 1.6rem 1.2rem;
img {
max-width: 7.8rem;
}
}
}
}
<a class="efl-bundles-overview-card" href="#" target="_blank">
<div class="efl-bundles-overview-card__content">
<div class="efl-bundles-overview-card__content--info">
<p>{{category}}</p>
<div class="title">{{title}}</div>
<hr>
<div class="quiz-time">
<span>20 - mins</span>
<span>5 - Quizzes</span>
</div>
</div>
<div class="efl-bundles-overview-card__content--img">
<img src="{{image}}" />
</div>
</div>
<div class="efl-bundles-overview-card__status {{status-class}}">{{status}}</div>
</a>