Use module teaser image as background image
This commit is contained in:
parent
82417a5a7a
commit
aa85c152dd
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<router-link :to="moduleLink" tag="div" class="module-teaser">
|
||||
<img :src="heroImage" alt="" class="module-teaser__image">
|
||||
<div class="module-teaser__image" :style="{backgroundImage: 'url('+heroImage+')'}">
|
||||
</div>
|
||||
<div class="module-teaser__body">
|
||||
<h3 class="module-teaser__meta-title">{{metaTitle}}</h3>
|
||||
<h3 class="module-teaser__title">{{title}}</h3>
|
||||
|
|
@ -42,6 +43,10 @@
|
|||
&__image {
|
||||
width: 100%;
|
||||
max-height: 150px;
|
||||
height: 150px;
|
||||
background-position: center;
|
||||
background-size: 100% auto;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
&__body {
|
||||
|
|
|
|||
Loading…
Reference in New Issue