2019-01-04 13:10:41 +00:00
|
|
|
<template>
|
2019-01-04 13:55:30 +00:00
|
|
|
<ul>
|
2019-01-04 13:10:41 +00:00
|
|
|
<li v-for="(gallery, index) in galleries"
|
|
|
|
class="featured-image"
|
2019-01-04 13:55:30 +00:00
|
|
|
:style="{ 'height': featuredHeight }"
|
2019-01-04 13:10:41 +00:00
|
|
|
:key="index">
|
|
|
|
<span>{{ gallery.title }}</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
galleries: {
|
|
|
|
type: Array,
|
|
|
|
required: true
|
2019-01-04 13:55:30 +00:00
|
|
|
},
|
|
|
|
featuredHeight: {
|
|
|
|
type: String,
|
|
|
|
required: true
|
2019-01-04 13:10:41 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
@media (max-width: $bp__layout) {
|
|
|
|
.featured-image {
|
2019-01-04 13:55:30 +00:00
|
|
|
height: 50vh !important; // must override inline style set with prop
|
2019-01-04 13:10:41 +00:00
|
|
|
width: 100vw;
|
|
|
|
flex: 0 0 100vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: $bp__layout) {
|
|
|
|
.featured-image {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|