This commit is contained in:
ManjaroOne666 2019-01-04 16:18:45 +00:00
parent ee04e31562
commit ca381fbe67
3 changed files with 47 additions and 0 deletions

View File

@ -79,6 +79,10 @@ export default {
left: 0; left: 0;
} }
.gallery__featured {
width: 100vw;
}
.close-viewer { .close-viewer {
font-size: 10em; font-size: 10em;
cursor: pointer; cursor: pointer;

View File

@ -7,10 +7,13 @@
<ul class="gallery-thumbs__row"> <ul class="gallery-thumbs__row">
<li class="featured-image mobile-only" <li class="featured-image mobile-only"
:style="{ 'height': featuredHeight }"> :style="{ 'height': featuredHeight }">
<ThumbNav direction="right" />
</li> </li>
<li v-for="image in gallery.images" <li v-for="image in gallery.images"
class="thumb-container" class="thumb-container"
:key="image.url"> :key="image.url">
<ThumbNav direction="left" />
<ThumbNav direction="right" />
<span>{{ image.thumbUrl }}</span> <span>{{ image.thumbUrl }}</span>
</li> </li>
</ul> </ul>
@ -20,8 +23,11 @@
</template> </template>
<script> <script>
import ThumbNav from '@/components/ThumbNav'
export default { export default {
components: { components: {
ThumbNav
}, },
props: { props: {
@ -37,9 +43,14 @@ export default {
data () { data () {
return { return {
activeThumbIndices: []
} }
}, },
mounted () {
console.log('mounted')
},
methods: { methods: {
slideRight(index) { slideRight(index) {
console.log('slideRight: ', index) console.log('slideRight: ', index)
@ -83,6 +94,7 @@ export default {
.thumb-container { .thumb-container {
height: 50vh; height: 50vh;
width: 100vw;
} }
} }
@ -110,6 +122,10 @@ export default {
.gallery-thumbs__row { .gallery-thumbs__row {
flex: 0 0 $thumbs-height; flex: 0 0 $thumbs-height;
} }
.thumb-nav {
display: none;
}
} }
</style> </style>

27
components/ThumbNav.vue Normal file
View File

@ -0,0 +1,27 @@
<template>
<div>ThumbNav--{{ direction }}</div>
</template>
<script>
export default {
props: {
direction: {
type: String,
default: function () {
return 'right'
}
}
},
data () {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
</style>