focus.vue
1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template>
<div class="focus-floor">
<swipe :class="`swipe swipe-${floor.length}`">
<swipe-item v-for="item in floor" :key="item.src" :style="{backgroundColor: item.bgColor}">
<a v-blk-href="item.url" :title="item.title">
<img v-img-src="{src: item.src, width: 750, height: 365}">
</a>
</swipe-item>
</swipe>
</div>
</template>
<script>
import 'vue-swipe/dist/vue-swipe.css';
import { Swipe, SwipeItem } from 'vue-swipe';
export default {
props: ['floor'],
components: {
swipe: Swipe,
swipeItem: SwipeItem
}
};
</script>
<style>
.focus-floor {
.swipe {
position: relative;
height: 100%;
}
.swipe-1 {
.mint-swipe-indicators {
display: none;
}
}
.mint-swipe-item {
a {
display: block;
}
img {
width: 100%;
height: 100%;
}
}
.mint-swipe-indicators {
left: initial;
right: 30px;
transform: none;
}
.mint-swipe-indicator {
width: 16px;
height: 16px;
background: #ccc;
opacity: 1;
vertical-align: middle;
border-radius: 50%;
transform: scale(0.5, 0.5);
margin-left: -4px;
&.active {
width: 24px;
height: 24px;
background: #fff;
border-radius: 50%;
transform: scale(0.5, 0.5);
}
}
}
</style>