Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | <template>
<div ref="banner">
<div class="wrapper-2">
<div
:data-not-lazy="!!!this.bannerSpecs['lazyBackground']"
:lazy-background="this.bannerSpecs['lazyBackground'] !== 'none' ? this.bannerSpecs['lazyBackground'] : false"
:style="{'background-repeat': 'no-repeat', 'background-size': 'cover'}"
:class="[bannerSpecs['heightClass']]"
class="position-relative banner">
<manufacturer-banner-card
:textCardSpecs="textCardSpecs"
></manufacturer-banner-card>
<div :class="[bannerSpecs['positionImgClass']]">
<img :src="bannerSpecs['imgSrc']" alt="Image banner">
</div>
</div>
</div>
</div>
</template>
<script>
import manufacturerBannerCard from './manufacturer-banner-card.vue';
export default {
components: {manufacturerBannerCard},
props: ['bannerSpecs', 'textCardSpecs'],
mounted() {
if (!this.bannerSpecs['lazyBackground']) {
this.$refs.banner.style.background = this.bannerSpecs['bannerBackground'];
}
}
}
</script>
<style lang="scss" scoped>
.banner {
height: 50rem;
}
.position-img1 {
position: absolute;
left: 0;
top: 0;
width: calc(50% + 16rem);
height: 100%;
}
.position-img1 img {
width: 100%;
height: 100%;
max-height: 100%;
object-fit: cover;
}
@include media-breakpoint-down(lgxl) {
.position-img1 {
position: absolute;
left: 0;
top: 0;
width: calc(50% + 12rem);
height: 100%;
}
.banner {
height: 42rem;
}
}
@include media-breakpoint-down(lg) {
.position-img1 {
position: absolute;
left: 0;
top: 26rem;
width: 100%;
height: 25rem;
}
.height-class1.banner {
height: 70rem;
}
}
@media screen and #{$ipad-pro-landscape-breakpoint},
screen and #{$ipad-pro-portrait-breakpoint},
screen and #{$ipad-landscape-breakpoint} {
.position-img1 {
position: absolute;
left: 0;
top: 26rem;
width: 100%;
height: 25rem;
}
.height-class1.banner {
height: 70rem;
}
}
@include media-breakpoint-down(sm) {
.position-img1 {
top: 21rem;
height: 20rem;
}
.height-class1.banner {
height: 56rem;
}
}
@include media-breakpoint-down(xssm) {
.position-img1 {
top: 23rem;
}
.height-class1.banner {
height: 60rem;
}
}
</style>
|