featured images displayed
This commit is contained in:
parent
32cca30d5e
commit
ec40c66dc9
|
@ -2,7 +2,8 @@
|
|||
<ul>
|
||||
<li v-for="(gallery, index) in galleries"
|
||||
class="featured-image"
|
||||
:style="{ 'height': featuredHeight }"
|
||||
:style="{ 'height': featuredHeight,
|
||||
'background-image': 'url(' + gallery.featuredImage + ')' }"
|
||||
:key="index"
|
||||
@click="$emit('clicked', index)">
|
||||
<span>{{ gallery.title }}</span>
|
||||
|
@ -28,6 +29,9 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
},
|
||||
|
||||
methods: {
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +49,8 @@ export default {
|
|||
@media (min-width: $bp__layout) {
|
||||
.featured-image {
|
||||
width: 100%;
|
||||
background-size: cover;
|
||||
background-position: center center;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue