@burh/nuxt-core 1.0.240 → 1.0.242
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/argon-core/BaseDropdown.vue +114 -114
- package/components/burh-ds/Cards/PerformanceCard.vue +81 -81
- package/components/burh-ds/Cards/RecruitmentCard.vue +196 -196
- package/components/burh-ds/Cards/RecruitmentUserCard.vue +225 -225
- package/components/burh-ds/Carousel/ImageCarousel.vue +106 -106
- package/components/burh-ds/Curriculum/UserCurriculum/UserCvRightSide.vue +355 -356
- package/components/burh-ds/Curriculum/UserCurriculum/index.vue +231 -134
- package/components/burh-ds/Headings/AppHeader.vue +138 -138
- package/components/burh-ds/Modals/SharedModal.vue +270 -270
- package/nuxt.config.js +206 -206
- package/package.json +1 -1
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="recruitment__user__card">
|
|
3
|
-
<div class="recruitment__user__card__header">
|
|
4
|
-
<div class="recruitment__user__card__header__actions">
|
|
5
|
-
<div class="left">
|
|
6
|
-
<input type="checkbox" name="" id="">
|
|
7
|
-
</div>
|
|
8
|
-
<div class="right">
|
|
9
|
-
<el-tooltip placement="top" content="Anotações">
|
|
10
|
-
<button>
|
|
11
|
-
<i class="far fa-comment-alt notes"></i>
|
|
12
|
-
</button>
|
|
13
|
-
</el-tooltip>
|
|
14
|
-
<el-tooltip placement="top" content="Reprovar">
|
|
15
|
-
<button>
|
|
16
|
-
<i class="fas fa-times"></i>
|
|
17
|
-
</button>
|
|
18
|
-
</el-tooltip>
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
<img src="https://www.rotamaxima.com.br/wp-content/uploads/2018/11/principal.png" alt="Cover" class="user__cover">
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div class="recruitment__user__card__content">
|
|
25
|
-
<img src="https://randomuser.me/api/portraits/women/86.jpg" alt="Marisa da Silva">
|
|
26
|
-
<span class="name">
|
|
27
|
-
Marisa Silva
|
|
28
|
-
<i class="fas fa-wheelchair pcd"></i>
|
|
29
|
-
</span>
|
|
30
|
-
<span class="age">23 anos</span>
|
|
31
|
-
<span class="city">
|
|
32
|
-
<i class="fas fa-map-marker-alt"></i>
|
|
33
|
-
Sorocaba
|
|
34
|
-
</span>
|
|
35
|
-
<div class="info">
|
|
36
|
-
<span>ÚLTIMA EXPERIÊNCIA</span>
|
|
37
|
-
<p>Programadora PHP em Burh Brasil</p>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="recruitment__user__card__footer">
|
|
42
|
-
<span>
|
|
43
|
-
<el-tooltip placement="top" content="
|
|
44
|
-
<i class="fas fa-user-plus"></i>
|
|
45
|
-
</el-tooltip>
|
|
46
|
-
</span>
|
|
47
|
-
<span>
|
|
48
|
-
<el-tooltip placement="top" content="Reincidente">
|
|
49
|
-
<i class="fas fa-sync-alt"></i>
|
|
50
|
-
</el-tooltip>
|
|
51
|
-
</span>
|
|
52
|
-
<span>
|
|
53
|
-
<el-tooltip placement="top" content="Visualizado">
|
|
54
|
-
<i class="fas fa-eye"></i>
|
|
55
|
-
</el-tooltip>
|
|
56
|
-
</span>
|
|
57
|
-
<span>
|
|
58
|
-
<el-tooltip placement="top" content="Interno">
|
|
59
|
-
<i class="fas fa-building"></i>
|
|
60
|
-
</el-tooltip>
|
|
61
|
-
</span>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<script>
|
|
67
|
-
export default {
|
|
68
|
-
name: 'recruitment-user-card',
|
|
69
|
-
data() {
|
|
70
|
-
return {
|
|
71
|
-
checked: false
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
</script>
|
|
76
|
-
|
|
77
|
-
<style lang="scss" scoped>
|
|
78
|
-
|
|
79
|
-
.recruitment__user__card {
|
|
80
|
-
background: #fff;
|
|
81
|
-
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
|
|
82
|
-
border-radius: 4px;
|
|
83
|
-
overflow: hidden;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
transition: transform 0.25s;
|
|
86
|
-
&:focus {
|
|
87
|
-
outline: none;
|
|
88
|
-
transform: translateY(-5px);
|
|
89
|
-
}
|
|
90
|
-
&:hover {
|
|
91
|
-
transform: translateY(-5px);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&__header {
|
|
95
|
-
width: 100%;
|
|
96
|
-
height: 70px;
|
|
97
|
-
overflow: hidden;
|
|
98
|
-
position: relative;
|
|
99
|
-
&::before {
|
|
100
|
-
content: '';
|
|
101
|
-
position: absolute;
|
|
102
|
-
top: 0;
|
|
103
|
-
left: 0;
|
|
104
|
-
width: 100%;
|
|
105
|
-
height: 100%;
|
|
106
|
-
background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), 80%, transparent);
|
|
107
|
-
z-index: 1;
|
|
108
|
-
}
|
|
109
|
-
img {
|
|
110
|
-
width: 100%;
|
|
111
|
-
height: 100%;
|
|
112
|
-
object-fit: cover;
|
|
113
|
-
}
|
|
114
|
-
&__actions {
|
|
115
|
-
position: absolute;
|
|
116
|
-
top: 0;
|
|
117
|
-
left: 0;
|
|
118
|
-
width: 100%;
|
|
119
|
-
display: flex;
|
|
120
|
-
align-items: center;
|
|
121
|
-
justify-content: space-between;
|
|
122
|
-
padding: 10px 15px;
|
|
123
|
-
z-index: 2;
|
|
124
|
-
.right {
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
flex-direction: row;
|
|
128
|
-
button {
|
|
129
|
-
color: #fff;
|
|
130
|
-
border: 0;
|
|
131
|
-
background: transparent;
|
|
132
|
-
width: 32px;
|
|
133
|
-
height: 32px;
|
|
134
|
-
display: flex;
|
|
135
|
-
align-items: center;
|
|
136
|
-
justify-content: center;
|
|
137
|
-
.notes {
|
|
138
|
-
position: relative;
|
|
139
|
-
&::after {
|
|
140
|
-
content: '';
|
|
141
|
-
position: absolute;
|
|
142
|
-
top: -5px;
|
|
143
|
-
right: -5px;
|
|
144
|
-
width: 10px;
|
|
145
|
-
height: 10px;
|
|
146
|
-
background: #FF7D7E;
|
|
147
|
-
border-radius: 100px;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
&__content {
|
|
155
|
-
display: flex;
|
|
156
|
-
flex-direction: column;
|
|
157
|
-
align-items: center;
|
|
158
|
-
justify-content: center;
|
|
159
|
-
img {
|
|
160
|
-
width: 120px;
|
|
161
|
-
height: 120px;
|
|
162
|
-
border-radius: 100px;
|
|
163
|
-
object-fit: cover;
|
|
164
|
-
margin-top: -20px;
|
|
165
|
-
z-index: 10;
|
|
166
|
-
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.name {
|
|
170
|
-
font-size: 1.275rem;
|
|
171
|
-
font-weight: 500;
|
|
172
|
-
color: #1D364B;
|
|
173
|
-
padding-top: 20px;
|
|
174
|
-
.pcd {
|
|
175
|
-
color: #1F8CEB;
|
|
176
|
-
margin-left: 5px;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
.age {
|
|
180
|
-
font-weight: 500;
|
|
181
|
-
font-size: 0.875rem;
|
|
182
|
-
color: #1F8CEB;
|
|
183
|
-
padding-bottom: 20px;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.city {
|
|
187
|
-
font-size: 1rem;
|
|
188
|
-
font-weight: 400;
|
|
189
|
-
color: #525F7F;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.info {
|
|
193
|
-
padding: 30px 0;
|
|
194
|
-
text-align: center;
|
|
195
|
-
span {
|
|
196
|
-
font-size: 0.75rem;
|
|
197
|
-
font-weight: 500;
|
|
198
|
-
color: #AEB6BE;
|
|
199
|
-
}
|
|
200
|
-
p {
|
|
201
|
-
margin: 0;
|
|
202
|
-
color: #525F7F;
|
|
203
|
-
font-size: 1rem;
|
|
204
|
-
font-weight: 400;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
&__footer {
|
|
209
|
-
display: flex;
|
|
210
|
-
align-items: center;
|
|
211
|
-
justify-content: center;
|
|
212
|
-
padding-bottom: 20px;
|
|
213
|
-
span {
|
|
214
|
-
font-size: 0.875rem;
|
|
215
|
-
font-weight: 500;
|
|
216
|
-
margin: 0 10px;
|
|
217
|
-
color: #AEB6BE;
|
|
218
|
-
&.new {
|
|
219
|
-
color: #1F8CEB;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="recruitment__user__card">
|
|
3
|
+
<div class="recruitment__user__card__header">
|
|
4
|
+
<div class="recruitment__user__card__header__actions">
|
|
5
|
+
<div class="left">
|
|
6
|
+
<input type="checkbox" name="" id="">
|
|
7
|
+
</div>
|
|
8
|
+
<div class="right">
|
|
9
|
+
<el-tooltip placement="top" content="Anotações">
|
|
10
|
+
<button>
|
|
11
|
+
<i class="far fa-comment-alt notes"></i>
|
|
12
|
+
</button>
|
|
13
|
+
</el-tooltip>
|
|
14
|
+
<el-tooltip placement="top" content="Reprovar">
|
|
15
|
+
<button>
|
|
16
|
+
<i class="fas fa-times"></i>
|
|
17
|
+
</button>
|
|
18
|
+
</el-tooltip>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<img src="https://www.rotamaxima.com.br/wp-content/uploads/2018/11/principal.png" alt="Cover" class="user__cover">
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="recruitment__user__card__content">
|
|
25
|
+
<img src="https://randomuser.me/api/portraits/women/86.jpg" alt="Marisa da Silva">
|
|
26
|
+
<span class="name">
|
|
27
|
+
Marisa Silva
|
|
28
|
+
<i class="fas fa-wheelchair pcd"></i>
|
|
29
|
+
</span>
|
|
30
|
+
<span class="age">23 anos</span>
|
|
31
|
+
<span class="city">
|
|
32
|
+
<i class="fas fa-map-marker-alt"></i>
|
|
33
|
+
Sorocaba
|
|
34
|
+
</span>
|
|
35
|
+
<div class="info">
|
|
36
|
+
<span>ÚLTIMA EXPERIÊNCIA</span>
|
|
37
|
+
<p>Programadora PHP em Burh Brasil</p>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="recruitment__user__card__footer">
|
|
42
|
+
<span>
|
|
43
|
+
<el-tooltip placement="top" content="Indicado">
|
|
44
|
+
<i class="fas fa-user-plus"></i>
|
|
45
|
+
</el-tooltip>
|
|
46
|
+
</span>
|
|
47
|
+
<span>
|
|
48
|
+
<el-tooltip placement="top" content="Reincidente">
|
|
49
|
+
<i class="fas fa-sync-alt"></i>
|
|
50
|
+
</el-tooltip>
|
|
51
|
+
</span>
|
|
52
|
+
<span>
|
|
53
|
+
<el-tooltip placement="top" content="Visualizado">
|
|
54
|
+
<i class="fas fa-eye"></i>
|
|
55
|
+
</el-tooltip>
|
|
56
|
+
</span>
|
|
57
|
+
<span>
|
|
58
|
+
<el-tooltip placement="top" content="Interno">
|
|
59
|
+
<i class="fas fa-building"></i>
|
|
60
|
+
</el-tooltip>
|
|
61
|
+
</span>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
export default {
|
|
68
|
+
name: 'recruitment-user-card',
|
|
69
|
+
data() {
|
|
70
|
+
return {
|
|
71
|
+
checked: false
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
</script>
|
|
76
|
+
|
|
77
|
+
<style lang="scss" scoped>
|
|
78
|
+
|
|
79
|
+
.recruitment__user__card {
|
|
80
|
+
background: #fff;
|
|
81
|
+
box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
|
|
82
|
+
border-radius: 4px;
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
transition: transform 0.25s;
|
|
86
|
+
&:focus {
|
|
87
|
+
outline: none;
|
|
88
|
+
transform: translateY(-5px);
|
|
89
|
+
}
|
|
90
|
+
&:hover {
|
|
91
|
+
transform: translateY(-5px);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__header {
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 70px;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
position: relative;
|
|
99
|
+
&::before {
|
|
100
|
+
content: '';
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), 80%, transparent);
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|
|
109
|
+
img {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 100%;
|
|
112
|
+
object-fit: cover;
|
|
113
|
+
}
|
|
114
|
+
&__actions {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
left: 0;
|
|
118
|
+
width: 100%;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: space-between;
|
|
122
|
+
padding: 10px 15px;
|
|
123
|
+
z-index: 2;
|
|
124
|
+
.right {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
flex-direction: row;
|
|
128
|
+
button {
|
|
129
|
+
color: #fff;
|
|
130
|
+
border: 0;
|
|
131
|
+
background: transparent;
|
|
132
|
+
width: 32px;
|
|
133
|
+
height: 32px;
|
|
134
|
+
display: flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
.notes {
|
|
138
|
+
position: relative;
|
|
139
|
+
&::after {
|
|
140
|
+
content: '';
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: -5px;
|
|
143
|
+
right: -5px;
|
|
144
|
+
width: 10px;
|
|
145
|
+
height: 10px;
|
|
146
|
+
background: #FF7D7E;
|
|
147
|
+
border-radius: 100px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
&__content {
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
align-items: center;
|
|
158
|
+
justify-content: center;
|
|
159
|
+
img {
|
|
160
|
+
width: 120px;
|
|
161
|
+
height: 120px;
|
|
162
|
+
border-radius: 100px;
|
|
163
|
+
object-fit: cover;
|
|
164
|
+
margin-top: -20px;
|
|
165
|
+
z-index: 10;
|
|
166
|
+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.name {
|
|
170
|
+
font-size: 1.275rem;
|
|
171
|
+
font-weight: 500;
|
|
172
|
+
color: #1D364B;
|
|
173
|
+
padding-top: 20px;
|
|
174
|
+
.pcd {
|
|
175
|
+
color: #1F8CEB;
|
|
176
|
+
margin-left: 5px;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
.age {
|
|
180
|
+
font-weight: 500;
|
|
181
|
+
font-size: 0.875rem;
|
|
182
|
+
color: #1F8CEB;
|
|
183
|
+
padding-bottom: 20px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.city {
|
|
187
|
+
font-size: 1rem;
|
|
188
|
+
font-weight: 400;
|
|
189
|
+
color: #525F7F;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.info {
|
|
193
|
+
padding: 30px 0;
|
|
194
|
+
text-align: center;
|
|
195
|
+
span {
|
|
196
|
+
font-size: 0.75rem;
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
color: #AEB6BE;
|
|
199
|
+
}
|
|
200
|
+
p {
|
|
201
|
+
margin: 0;
|
|
202
|
+
color: #525F7F;
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
font-weight: 400;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
&__footer {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
padding-bottom: 20px;
|
|
213
|
+
span {
|
|
214
|
+
font-size: 0.875rem;
|
|
215
|
+
font-weight: 500;
|
|
216
|
+
margin: 0 10px;
|
|
217
|
+
color: #AEB6BE;
|
|
218
|
+
&.new {
|
|
219
|
+
color: #1F8CEB;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
</style>
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<vue-slick-carousel v-bind="settings" :arrows="true" :dots="true">
|
|
3
|
-
<div
|
|
4
|
-
v-for="(item, index) in carouselItems"
|
|
5
|
-
:key="index"
|
|
6
|
-
class="carousel__image"
|
|
7
|
-
>
|
|
8
|
-
<img :src="item.img" :alt="item.title" draggable="false">
|
|
9
|
-
</div>
|
|
10
|
-
</vue-slick-carousel>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script>
|
|
14
|
-
import VueSlickCarousel from 'vue-slick-carousel';
|
|
15
|
-
import 'vue-slick-carousel/dist/vue-slick-carousel.css';
|
|
16
|
-
import 'vue-slick-carousel/dist/vue-slick-carousel-theme.css';
|
|
17
|
-
|
|
18
|
-
export default {
|
|
19
|
-
name: 'ImageCarousel',
|
|
20
|
-
components: {
|
|
21
|
-
VueSlickCarousel
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
carouselItems: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => {
|
|
27
|
-
return [];
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
dots: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: true
|
|
33
|
-
},
|
|
34
|
-
infinite: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: true
|
|
37
|
-
},
|
|
38
|
-
autoplay: {
|
|
39
|
-
type: Boolean,
|
|
40
|
-
default: true
|
|
41
|
-
},
|
|
42
|
-
slides: {
|
|
43
|
-
type: Number,
|
|
44
|
-
default: 3
|
|
45
|
-
},
|
|
46
|
-
speed: {
|
|
47
|
-
type: Number,
|
|
48
|
-
default: 500
|
|
49
|
-
},
|
|
50
|
-
breakpoints: {
|
|
51
|
-
type: Array,
|
|
52
|
-
default: () => {
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
breakpoint: 800,
|
|
56
|
-
settings: {
|
|
57
|
-
slidesToShow: 2,
|
|
58
|
-
slidesToScroll: 2
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
breakpoint: 600,
|
|
63
|
-
settings: {
|
|
64
|
-
slidesToShow: 1,
|
|
65
|
-
slidesToScroll: 1
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
];
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
data() {
|
|
73
|
-
return {
|
|
74
|
-
settings: {}
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
mounted() {
|
|
78
|
-
const settings = {
|
|
79
|
-
dots: this.dots,
|
|
80
|
-
infinite: this.infinite,
|
|
81
|
-
autoplay: this.autoplay,
|
|
82
|
-
slidesToShow: this.slides,
|
|
83
|
-
slidesToScroll: this.slides,
|
|
84
|
-
speed: this.speed,
|
|
85
|
-
responsive: this.breakpoints
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
this.settings = settings;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
</script>
|
|
92
|
-
|
|
93
|
-
<style lang="scss">
|
|
94
|
-
.carousel__image {
|
|
95
|
-
padding: 20px 0;
|
|
96
|
-
display: flex!important;
|
|
97
|
-
align-items: center;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
user-select: none;
|
|
100
|
-
img {
|
|
101
|
-
display: block;
|
|
102
|
-
width: 150px;
|
|
103
|
-
padding: 10px;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<vue-slick-carousel v-bind="settings" :arrows="true" :dots="true">
|
|
3
|
+
<div
|
|
4
|
+
v-for="(item, index) in carouselItems"
|
|
5
|
+
:key="index"
|
|
6
|
+
class="carousel__image"
|
|
7
|
+
>
|
|
8
|
+
<img :src="item.img" :alt="item.title" draggable="false">
|
|
9
|
+
</div>
|
|
10
|
+
</vue-slick-carousel>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import VueSlickCarousel from 'vue-slick-carousel';
|
|
15
|
+
import 'vue-slick-carousel/dist/vue-slick-carousel.css';
|
|
16
|
+
import 'vue-slick-carousel/dist/vue-slick-carousel-theme.css';
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: 'ImageCarousel',
|
|
20
|
+
components: {
|
|
21
|
+
VueSlickCarousel
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
carouselItems: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
dots: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
infinite: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true
|
|
37
|
+
},
|
|
38
|
+
autoplay: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
slides: {
|
|
43
|
+
type: Number,
|
|
44
|
+
default: 3
|
|
45
|
+
},
|
|
46
|
+
speed: {
|
|
47
|
+
type: Number,
|
|
48
|
+
default: 500
|
|
49
|
+
},
|
|
50
|
+
breakpoints: {
|
|
51
|
+
type: Array,
|
|
52
|
+
default: () => {
|
|
53
|
+
return [
|
|
54
|
+
{
|
|
55
|
+
breakpoint: 800,
|
|
56
|
+
settings: {
|
|
57
|
+
slidesToShow: 2,
|
|
58
|
+
slidesToScroll: 2
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
breakpoint: 600,
|
|
63
|
+
settings: {
|
|
64
|
+
slidesToShow: 1,
|
|
65
|
+
slidesToScroll: 1
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
data() {
|
|
73
|
+
return {
|
|
74
|
+
settings: {}
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
mounted() {
|
|
78
|
+
const settings = {
|
|
79
|
+
dots: this.dots,
|
|
80
|
+
infinite: this.infinite,
|
|
81
|
+
autoplay: this.autoplay,
|
|
82
|
+
slidesToShow: this.slides,
|
|
83
|
+
slidesToScroll: this.slides,
|
|
84
|
+
speed: this.speed,
|
|
85
|
+
responsive: this.breakpoints
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
this.settings = settings;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
</script>
|
|
92
|
+
|
|
93
|
+
<style lang="scss">
|
|
94
|
+
.carousel__image {
|
|
95
|
+
padding: 20px 0;
|
|
96
|
+
display: flex!important;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
user-select: none;
|
|
100
|
+
img {
|
|
101
|
+
display: block;
|
|
102
|
+
width: 150px;
|
|
103
|
+
padding: 10px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
</style>
|