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