|
1 | 1 | <template>
|
2 | 2 | <div class="relative w-full wrapper-height">
|
3 |
| - <div class="absolute z-10 bottom-0 right-0 flex gap-3"> |
4 |
| - <button |
5 |
| - class="bg-black rounded-2xl" |
6 |
| - :class="[ |
7 |
| - { 'brightness-75 grow': currentIndex > 0 }, |
8 |
| - { 'brightness-50': currentIndex === 0 }, |
9 |
| - ]" |
10 |
| - @click="slideToIndex(currentIndex - 1)" |
11 |
| - > |
12 |
| - <img |
13 |
| - src="assets/app/icons/chevron-left.svg" |
14 |
| - alt="chevron-left-icon" |
15 |
| - class="w-10 h-10 md:w-16 md:h-16" |
16 |
| - /> |
17 |
| - </button> |
18 |
| - <button |
19 |
| - class="bg-black rounded-2xl" |
20 |
| - :class="[ |
21 |
| - { |
22 |
| - 'grow brightness-75': currentIndex < projectItems.length - 1, |
23 |
| - }, |
24 |
| - { 'brightness-50': currentIndex === projectItems.length - 1 }, |
25 |
| - ]" |
26 |
| - @click="slideToIndex(currentIndex + 1)" |
27 |
| - > |
28 |
| - <img |
29 |
| - src="assets/app/icons/chevron-right.svg" |
30 |
| - alt="chevron-right-icon" |
31 |
| - class="w-10 h-10 md:w-16 md:h-16" |
32 |
| - /> |
33 |
| - </button> |
34 |
| - </div> |
| 3 | + <button |
| 4 | + class="bg-black rounded-2xl absolute left-0 top-1/2 z-10" |
| 5 | + :class="[ |
| 6 | + { 'brightness-75 grow': currentIndex > 0 }, |
| 7 | + { 'brightness-50': currentIndex === 0 }, |
| 8 | + ]" |
| 9 | + @click="slideToIndex(currentIndex - 1)" |
| 10 | + > |
| 11 | + <img |
| 12 | + src="assets/app/icons/chevron-left.svg" |
| 13 | + alt="chevron-left-icon" |
| 14 | + class="w-10 h-10 md:w-16 md:h-16" |
| 15 | + /> |
| 16 | + </button> |
| 17 | + <button |
| 18 | + class="bg-black rounded-2xl absolute right-0 top-1/2 z-10" |
| 19 | + :class="[ |
| 20 | + { |
| 21 | + 'grow brightness-75': currentIndex < projectItems.length - 1, |
| 22 | + }, |
| 23 | + { 'brightness-50': currentIndex === projectItems.length - 1 }, |
| 24 | + ]" |
| 25 | + @click="slideToIndex(currentIndex + 1)" |
| 26 | + > |
| 27 | + <img |
| 28 | + src="assets/app/icons/chevron-right.svg" |
| 29 | + alt="chevron-right-icon" |
| 30 | + class="w-10 h-10 md:w-16 md:h-16" |
| 31 | + /> |
| 32 | + </button> |
| 33 | + |
35 | 34 | <swiper
|
36 | 35 | class="w-full h-full"
|
37 | 36 | @swiper="onSwiper"
|
|
0 commit comments