Leadership.vue
8.49 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<template>
<div class="container leadership-bg" :class="{ rtl: $i18n.locale === 'ar' }">
<AppHeader />
<img src="@/assets/icon1.png" alt="" class="leadership-icon1" />
<img src="@/assets/icon2.png" alt="" class="leadership-icon2" />
<img src="@/assets/leadership/icon5.png" alt="" class="leadership-icon4" />
<div class="leadership-main">
<!-- <div class="leadership-title" v-html="$t('leadership.title')"></div> -->
<div class="leadership-title">
{{ $t('leadership.title1') }}
<span class="highlight">{{ $t('leadership.title2') }}</span>
</div>
<img class="star star-left" src="@/assets/leadership/icon3.png" alt="star" />
<img class="star star-right" src="@/assets/leadership/icon4.png" alt="star" />
<div class="leadership-slider-outer">
<div class="arrow-btn-outer">
<div class="arrow-btn left" @click="slidePrev">
<img src="@/assets/leadership/left.png" alt="left" />
</div>
<div class="arrow-btn right" @click="slideNext">
<img src="@/assets/leadership/right.png" alt="right" />
</div>
</div>
<div class="leadership-slider" :key="$i18n.locale">
<Swiper :modules="modules" :slides-per-view="4" :space-between="71" :navigation="false"
:loop="leaders.length > 4" class="leader-swiper" @swiper="onSwiper">
<SwiperSlide v-for="(leader, idx) in leaders" :key="idx">
<div class="leader-card">
<img class="leader-photo" :src="leader.photo" alt="leader" />
<span class="dot"></span>
<div class="leader-info-bar">
<div class="leader-name">{{ $t("leadership.name") }}</div>
<div class="leader-position">
{{ $t("leadership.position") }}
</div>
</div>
</div>
</SwiperSlide>
</Swiper>
</div>
</div>
<div class="team-intro-block">
<div class="team-intro-text">
<div class="team-intro-title">{{ $t("leadership.team_intro") }}</div>
<div class="team-intro-desc">{{ $t("leadership.team_desc1") }}</div>
<div class="team-intro-desc">{{ $t("leadership.team_desc2") }}</div>
</div>
<img class="team-intro-img" src="@/assets/leadership/team.png" alt="team" />
<img src="@/assets/leadership/icon5.png" alt="" class="leadership-icon3" />
</div>
</div>
</div>
</template>
<script setup>
import AppHeader from "@/components/AppHeader.vue";
import { Swiper, SwiperSlide } from "swiper/vue";
import { Navigation } from "swiper/modules";
import "swiper/css";
import leader1 from "@/assets/leadership/card1.png";
import leader2 from "@/assets/leadership/card2.png";
import leader3 from "@/assets/leadership/card3.png";
import leader4 from "@/assets/leadership/card4.png";
import { ref, watch } from "vue";
import { useI18n } from "vue-i18n";
const { t, locale } = useI18n();
const modules = [Navigation];
const leaders = [
{ photo: leader1 },
{ photo: leader2 },
{ photo: leader3 },
{ photo: leader4 },
{ photo: leader1 },
{ photo: leader2 },
{ photo: leader3 },
{ photo: leader4 },
];
const swiperRef = ref(null);
const onSwiper = (swiper) => {
swiperRef.value = swiper;
};
const slidePrev = () => {
swiperRef.value && swiperRef.value.slidePrev();
};
const slideNext = () => {
swiperRef.value && swiperRef.value.slideNext();
};
// Watch for changes in the locale
watch(locale, (newLocale) => {
if (swiperRef.value) {
swiperRef.value.update(); // Update the Swiper instance
}
});
</script>
<style scoped lang="scss">
.leadership-bg {
background: #000000;
position: relative;
padding-bottom: 40px;
}
.leadership-icon1 {
position: absolute;
left: -698px;
top: -300px;
width: 1396px;
object-fit: cover;
z-index: 0;
}
.leadership-icon2 {
position: absolute;
right: -422px;
bottom: -308px;
width: 1396px;
object-fit: cover;
z-index: 0;
}
.leadership-icon3 {
width: 212px;
height: 212px;
position: absolute;
left: 222px;
bottom: -8px;
}
.leadership-icon4 {
width: 212px;
height: 212px;
position: absolute;
right: -24px;
top: 577px;
}
.leadership-main {
position: relative;
max-width: 1400px;
margin: 0 auto;
padding-top: 48px;
}
.leadership-title {
position: relative;
margin-bottom: 49px;
padding-left: 40px;
font-family: Microsoft YaHei, Microsoft YaHei;
font-weight: 800;
font-size: 52px;
color: #ffffff;
z-index: 2;
.highlight {
position: relative;
display: inline-block;
font-weight: 800;
background: linear-gradient(90deg, #c844ff 0%, #982fff 100%);
background-clip: text;
-webkit-background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
line-height: 1.1;
padding-bottom: 0;
&::after {
content: "";
position: absolute;
bottom: -8px;
left: 0;
width: 100%;
height: 34px;
background: url(@/assets/leadership/name_desc.png);
background-size: cover;
background-repeat: no-repeat;
z-index: -1;
}
}
}
.star-left {
position: absolute;
width: 60px;
top: 88px;
left: -61px;
width: 61px;
height: 60px;
}
.star-right {
position: absolute;
width: 60px;
top: 13px;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 80px;
}
.leadership-slider-outer {
width: 100%;
max-width: 1400px;
margin: 0 auto 69px auto;
position: relative;
}
.leadership-slider {
position: relative;
width: 100%;
padding: 28px 17px 28px 41px;
box-sizing: border-box;
overflow: hidden;
}
.arrow-btn-outer {
position: absolute;
right: -71px;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
z-index: 10;
}
.rtl .arrow-btn-outer {
right: auto;
left: -71px;
flex-direction: row-reverse;
}
.arrow-btn {
width: 18px;
height: 26px;
cursor: pointer;
}
.leader-swiper {
width: 100%;
max-width: 1400px;
overflow: visible;
.swiper-wrapper {
align-items: stretch;
overflow: visible;
}
.swiper-slide {
overflow: visible;
}
}
.leadership-cards {
display: flex;
gap: 71px;
overflow: visible;
}
.leader-card {
background: #fff1;
border-radius: 8px;
overflow: visible;
width: 283px;
height: 341px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
transition: all 0.3s ease-in-out;
}
.leader-card:hover {
transform: scale(1.07) translateY(-8px);
z-index: 3;
}
.leader-photo {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
}
.dot {
position: absolute;
top: 15px;
right: 16px;
width: 12px;
height: 12px;
background: #fff;
border-radius: 50%;
border: 2px solid #eaeaea;
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
z-index: 3;
}
.leader-info-bar {
position: absolute;
left: -23px;
bottom: 13px;
width: 262px;
height: 102px;
padding: 10px 22px 22px;
background: linear-gradient(90deg, #c22fff 0%, #8b17ff 100%), #b178ff;
border-radius: 8px;
box-sizing: border-box;
}
.leader-name {
margin-bottom: 5px;
font-family: Microsoft YaHei, Microsoft YaHei;
font-weight: 600;
font-size: 28px;
color: #ffffff;
}
.leader-position {
font-family: Microsoft YaHei, Microsoft YaHei;
font-weight: 600;
font-size: 20px;
color: #ffffff;
}
.team-intro-block {
display: flex;
align-items: center;
margin: 0 auto;
max-width: 1400px;
width: 100%;
height: 350px;
min-height: 350px;
padding: 32px 28px 37px 27px;
overflow: hidden;
background-image: url(@/assets/leadership/content_bg.png);
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
.team-intro-desc+.team-intro-desc {
margin-top: 12px;
}
.team-intro-text {
padding-top: 38px;
display: flex;
flex-direction: column;
justify-content: center;
height: 100%;
}
.team-intro-title {
margin-bottom: 20px;
font-family: Microsoft YaHei, Microsoft YaHei;
font-weight: 600;
font-size: 32px;
color: #ffffff;
}
.team-intro-desc {
font-family: Microsoft YaHei, Microsoft YaHei;
font-weight: 600;
font-size: 16px;
color: #ffffff;
}
.team-intro-img {
flex: 1;
object-fit: cover;
width: 834px;
height: 295px;
border-radius: 20px;
}
@media (max-width: 1200px) {
.leadership-main {
max-width: 98vw;
}
.leader-swiper {
width: 98vw;
}
.team-intro-block {
flex-direction: column;
min-height: 0;
}
.team-intro-img {
min-width: 0;
max-width: 100%;
border-radius: 0 0 20px 20px;
}
}
</style>