<section class="profile-page-total-caps">
<div class="profile-page-total-caps__wrapper">
<picture>
<source media="(max-width: 744px)" srcset="/assets/example-content/lion-mob.png">
<source media="(max-width: 1080px)" srcset="/assets/example-content/lion-tablet.png">
<source media="(min-width: 1080px)" srcset="/assets/example-content/lion-desktop.png">
<img class="background-lion" src="/assets/example-content/lion-desktop.png" alt="">
</picture>
<div class="profile-page-total-caps__overlay">
<div class="profile-page-total-caps__content">
<div class="profile-page-caps">
<div class="number">32</div>
<div class="subtitle">TOTAL CAPS<span class="asterisk">*</span></div>
</div>
<div class="profile-page-total-caps__content--star">
</div>
<div class="profile-page-caps">
<div class="number">32</div>
<div class="subtitle">TOTAL CAPS<span class="asterisk">*</span></div>
</div>
</div>
</div>
</div>
<div class="profile-page-total-caps__renewal">
<span>*2 bonus caps for renewing your ESTC membership for three consecutive years</span>
</div>
</section>
No notes defined.
{
"backgroundImageMob": "/assets/example-content/lion-mob.png",
"backgroundImageTab": "/assets/example-content/lion-tablet.png",
"backgroundImageDes": "/assets/example-content/lion-desktop.png",
"title": {
"copy": "England Supporters Travel Club"
},
"total-caps": {
"number": "32",
"subtitle": "ACTIVE CAPS",
"renewalCaps": "*2 bonus caps for renewing your ESTC membership for three consecutive years"
}
}
.profile-page-total-caps {
margin-bottom: 24px;
border-radius: 4px;
position: relative;
&__wrapper {
background-color: #004f9f;
height: 299px;
.background-lion {
width: 100%;
height: 299px;
}
}
&__overlay {
width: 100%;
position: absolute;
top: 0;
left: 0;
height: 299px;
display: flex;
align-content: center;
justify-content: center;
align-items: center;
}
&__content {
display: flex;
align-items: center;
.profile-page-caps:last-child .number {
color: #bbc1ce;
font-size: 172px;
}
.profile-page-caps:last-child .subtitle {
color: #bbc1ce;
font-size: 18px;
line-height: 22.5px;
}
.profile-page-caps:last-child .subtitle .asterisk {
display: none;
}
&--star {
background-image: url('./assets/example-content/star.png');
height: 34px;
width: 34px;
margin: 0 38px;
}
}
&__renewal {
font-family: 'FS Dillon', arial, helvetica, sans-serif;
font-size: 14px;
margin-top: 16px;
font-weight: 400;
line-height: 20px;
letter-spacing: 0.02em;
text-align: center;
color: #5b6885;
}
@include xs {
&__wrapper {
height: 273px;
.background-lion {
height: 290px;
width: 100%;
position: absolute;
top: 50%;
left: 50%;
object-fit: cover;
transform: translate(-50%, -60%);
}
}
&__content {
gap: 30px;
&--star {
display: none;
}
.profile-page-caps:last-child .number {
font-size: 100px;
}
.profile-page-caps:last-child .subtitle {
font-size: 16px;
}
}
}
}
<section class="profile-page-total-caps">
<div class="profile-page-total-caps__wrapper">
<picture>
<source media="(max-width: 744px)" srcset="{{backgroundImageMob}}">
<source media="(max-width: 1080px)" srcset="{{backgroundImageTab}}">
<source media="(min-width: 1080px)" srcset="{{backgroundImageDes}}">
<img class="background-lion" src="{{backgroundImageDes}}" alt="">
</picture>
<div class="profile-page-total-caps__overlay">
<div class="profile-page-total-caps__content">
{{render '@profile-page-caps' merge="true"}}
<div class="profile-page-total-caps__content--star">
</div>
{{render '@profile-page-caps' merge="true"}}
</div>
</div>
</div>
<div class="profile-page-total-caps__renewal">
<span>{{total-caps.renewalCaps}}</span>
</div>
</section>