-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91dcb6e
commit ff12dc3
Showing
30 changed files
with
3,062 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* for swiper */ | ||
|
||
.swiper-container-2 { | ||
overflow: hidden; | ||
position: absolute; | ||
} | ||
|
||
.swiper-slide { | ||
text-align: center; | ||
font-size: 18px; | ||
background: #fff; | ||
/* Center slide text vertically */ | ||
display: -webkit-box; | ||
display: -ms-flexbox; | ||
display: -webkit-flex; | ||
display: flex; | ||
-webkit-box-pack: center; | ||
-ms-flex-pack: center; | ||
-webkit-justify-content: center; | ||
justify-content: center; | ||
-webkit-box-align: center; | ||
-ms-flex-align: center; | ||
-webkit-align-items: center; | ||
align-items: center; | ||
} | ||
|
||
.swiper-slide img { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
.swiper-container-2 .swiper-slide img{ | ||
object-fit: contain; | ||
height: 65%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<div class="swiper-container" :style="{ width: width, height: height }"> | ||
<!-- Additional required wrapper --> | ||
<div class="swiper-wrapper"> | ||
<!-- Slides --> | ||
<slot></slot> | ||
</div> | ||
<!-- If we need pagination --> | ||
<div v-if="pagination" class="swiper-pagination"></div> | ||
|
||
<!-- If we need navigation buttons --> | ||
<div :class="['swiper-button-prev',{'text-success':!danger,'text-danger':danger}]"></div> | ||
<div :class="['swiper-button-next',{'text-success':!danger,'text-danger':danger}]"></div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Swiper, { Autoplay, EffectFade, Pagination, Navigation } from "swiper"; | ||
Swiper.use([Autoplay, EffectFade, Pagination, Navigation]); | ||
export default { | ||
props: {"width":String,"height":String,"danger":Boolean,"pagination":Boolean}, | ||
mounted() { | ||
new Swiper(".swiper-container", { | ||
loop: true, | ||
pagination: { | ||
el: ".swiper-pagination", | ||
dynamicBullets: true, | ||
}, | ||
navigation: { | ||
nextEl: ".swiper-button-next", | ||
prevEl: ".swiper-button-prev", | ||
}, | ||
effect: "fade", | ||
autoplay: { | ||
delay: 2500, | ||
disableOnInteraction: false, | ||
} | ||
}); | ||
}, | ||
}; | ||
</script> | ||
<style scoped> | ||
.swiper-container{ | ||
border-radius: 20px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<template> | ||
<div class="swiper-container-2" :style="{ width: width, height: height }"> | ||
<!-- Additional required wrapper --> | ||
<div class="swiper-wrapper"> | ||
<!-- Slides --> | ||
<slot></slot> | ||
</div> | ||
<!-- If we need navigation buttons --> | ||
<div class="swiper-button-prev text-success"></div> | ||
<div class="swiper-button-next text-success"></div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Swiper, {Navigation } from "swiper"; | ||
Swiper.use([Navigation]); | ||
export default { | ||
props: ["width", "height"], | ||
mounted() { | ||
new Swiper(".swiper-container-2", { | ||
navigation: { | ||
nextEl: ".swiper-button-next", | ||
prevEl: ".swiper-button-prev", | ||
}, | ||
slidesPerView:5, | ||
spaceBetween:10 | ||
}); | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.