<a class="large-signpost-video " data-behavior="video-lightbox" data-video-id="M7lc1UVf-VE" data-poster-image="" tabindex="0">
<img class="large-signpost-video__img" src="/assets/example-content/large-signpost-video.png" alt="">
<div class="large-signpost-video--gradient"></div>
<div class="large-signpost-video__overlay text-center">
<h3 class="large-signpost-video__title" tabindex="0">
Day 03:
training with the lions
at st georges park
</h3>
<div class="large-signpost-video__datetimewrapper">
<div class="large-signpost-video__datetimewrapper--time">
<i class="clock"></i>
3:32 <span> video</span>
</div>
<div class="large-signpost-video__datetimewrapper--date">
11 Oct 2020
</div>
</div>
</div>
</a>
No notes defined.
{
"image": "/assets/example-content/large-signpost-video.png",
"data-behavior": "video-lightbox",
"video-id": "M7lc1UVf-VE",
"modifier": "text-center"
}
.large-signpost-video {
position: relative;
border-radius: 0.8rem;
display: block;
text-decoration: none;
cursor: pointer;
overflow: hidden;
&__img {
object-fit: cover;
object-position: center;
width: 100%;
height: 480px;
max-height: 480px;
border-radius: 0.8rem;
}
&--gradient {
background: linear-gradient(
180deg,
rgba(var(--brand-primary-rgb), 0) 52.02%,
rgba(var(--brand-primary-rgb), 0.14) 71.6%,
var(--brand-primary) 94.79%
);
bottom: 0;
content: '';
display: block;
width: 100%;
height: 100%;
position: absolute;
border-radius: 0 0 0.8rem 0.8rem;
}
&__title {
@extend .heading-1;
color: $white;
z-index: 2;
width: 29rem;
position: inherit;
margin: 0 1.6rem;
bottom: 84px;
}
&__datetimewrapper {
@include text-s;
color: $white;
position: inherit;
bottom: 16px;
z-index: 2;
display: flex;
width: 100%;
justify-content: space-between;
&--time {
padding: 1.5rem 2.4rem 1.6rem 7.6rem;
margin-bottom: -1.6rem;
background-color: $blue;
border-radius: 0 0 0 0.8rem;
&::before {
content: '';
width: 5.2rem;
height: 5.2rem;
background: #c30024 url(./assets/images/video-play-button.svg) no-repeat
center/2rem;
display: block;
position: absolute;
left: 0;
bottom: -16px;
border-radius: 0 0 0 0.8rem;
}
.clock {
background: url(./assets/images/clock-icon-white.svg) no-repeat
center/1.4rem;
height: 1.4rem;
width: 1.4rem;
display: inline-block;
margin-right: 0.87rem;
position: relative;
top: 2px;
}
span {
display: none;
}
}
&--date {
margin-right: 23px;
align-items: end;
display: flex;
}
}
&__overlay {
width: 100%;
height: 100%;
position: absolute;
top: 0;
display: flex;
flex-direction: column;
&::before {
content: '';
background: linear-gradient(
180deg,
rgba(34, 34, 34, 0) 38.98%,
rgba(34, 34, 34, 0.45) 100%
);
width: 100%;
height: 100%;
display: block;
}
&.text-center {
.large-signpost-video__title {
margin: 0 auto;
text-align: center;
left: 0;
right: 0;
}
}
}
@media screen and (min-width: $mq-medium) {
&__img {
height: 100%;
}
&--gradient {
height: 100%;
}
&__title {
margin-left: 144px;
width: 760px;
bottom: 84px;
&::before {
content: '';
width: 7.2rem;
height: 7.2rem;
background: $bold-red url(./assets/images/video-play-button.svg)
no-repeat center/2.3rem;
display: block;
position: absolute;
left: -9.6rem;
}
}
&__datetimewrapper {
width: auto;
flex-direction: row-reverse;
margin-left: 13.8rem;
&--time {
background-color: transparent;
padding-left: 0;
&::before {
display: none;
}
.clock {
margin-left: 1.6rem;
top: 5px;
&::before {
content: '';
background: url(./assets/images/line-1.png) no-repeat;
margin-left: -1.6rem;
display: inline-block;
width: 19px;
height: 19px;
margin-top: -0.2rem;
}
}
span {
display: inline-block;
}
}
&--date {
margin-right: 1.6rem;
}
}
&__overlay {
&.text-center {
.large-signpost-video__title {
padding-left: 0;
width: 950px;
&::before {
left: calc(50% - 3.6rem);
top: -8.8rem;
}
}
.large-signpost-video__datetimewrapper {
margin: 0 auto;
width: 100%;
justify-content: center;
}
}
}
&.full-width {
.large-signpost-video__img {
height: 520px;
max-height: 520px;
}
}
}
}
[data-brand='englandfootball'],
[data-brand='englandfootball--supplimentary'] {
.large-signpost-video {
&__tag p {
font-family: $text-font-ef;
}
}
}
[data-brand='womens'] {
.large-signpost-video {
&__datetimewrapper {
&--time {
background-color: transparent;
&::before {
background-color: $blue;
}
}
}
@media screen and (min-width: $mq-medium) {
&__title {
&::before {
background-color: $blue;
}
}
}
}
}
[data-brand='news'] {
.large-signpost-video {
&--gradient {
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
opacity: 0.8;
}
}
}
.large-signpost-video.full-width {
border-radius: 0;
.large-signpost-video__img {
border-radius: 0;
}
.large-signpost-video--gradient {
border-radius: 0;
}
.large-signpost-video__datetimewrapper--time {
&::before {
border-radius: 0;
}
}
@media screen and (min-width: $mq-medium) {
.large-signpost-video__title,
.large-signpost-video__datetimewrapper {
max-width: 95.2rem;
margin-left: calc(50vw - 47.6rem + 9.6rem);
}
}
}
:root [data-brand=''] {
.large-signpost-video {
&--gradient {
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%);
opacity: 0.8;
}
&__overlay {
&::before {
display: none;
}
}
@media screen and (max-width: $mq-medium) {
&--gradient {
height: 22.6rem;
top: initial;
bottom: 0;
}
}
}
}
<a class="large-signpost-video {{extra-class}}" data-behavior="{{data-behavior}}" data-video-id="{{video-id}}" data-poster-image="{{data-poster-image}}" tabindex="0">
<img class="large-signpost-video__img" src="{{image}}" alt="">
<div class="large-signpost-video--gradient"></div>
<div class="large-signpost-video__overlay {{#if modifier}}{{modifier}}{{/if}}">
<h3 class="large-signpost-video__title" tabindex="0">
Day 03:
training with the lions
at st georges park
</h3>
<div class="large-signpost-video__datetimewrapper">
<div class="large-signpost-video__datetimewrapper--time">
<i class="clock"></i>
3:32 <span> video</span>
</div>
<div class="large-signpost-video__datetimewrapper--date">
11 Oct 2020
</div>
</div>
</div>
</a>