Skip to content

Commit

Permalink
Merge pull request #463 from w3bdesign/dev
Browse files Browse the repository at this point in the history
Remove outdated Swiper
  • Loading branch information
w3bdesign authored Nov 19, 2021
2 parents 1fef56c + 8c5501e commit 5481c73
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 93 deletions.
Binary file not shown.
120 changes: 27 additions & 93 deletions components/Index/Hero.vue
Original file line number Diff line number Diff line change
@@ -1,103 +1,37 @@
<template>
<div>
<swiper id="hero" ref="mySwiper" :options="swiperOption">
<swiper-slide
><img alt="Image slider slide #1" src="~assets/images/Hero.jpg" />
<div
class="
flex flex-col
items-start
justify-center
w-full
mx-auto
tracking-wide
lg:w-1/2
"
>
<span
class="
w-full
p-4
mt-4
text-center text-white
bg-black
text-md
lg:text-2xl lg:-mt-64
"
>
Modern Pillow Sample Set
</span>
</div>
</swiper-slide>
<swiper-slide
><img alt="Image slider slide #2" src="~assets/images/Hero2.jpg" />
<div
class="
flex flex-col
items-start
justify-center
w-full
mx-auto
tracking-wide
lg:w-1/2
"
>
<span
class="
w-full
p-4
mt-4
text-center text-white
bg-black
text-md
lg:text-2xl lg:-mt-64
"
>
Modern Interior Sample
</span>
</div>
</swiper-slide>
<div
slot="button-prev"
class="swiper-button-prev"
@click="swiper.slidePrev(1000, false)"
></div>
<div
slot="button-next"
class="swiper-button-next"
@click="swiper.slideNext(1000, false)"
></div>
</swiper>
<div id="hero">
<img alt="Image slider slide #1" src="~assets/images/Hero.jpg" />
<div
class="
flex flex-col
items-start
justify-center
w-full
mx-auto
tracking-wide
lg:w-1/2
"
>
<span
class="
w-full
p-4
mt-4
text-center text-white
bg-black
text-md
lg:text-2xl lg:-mt-64
"
>
Modern Interior Sample
</span>
</div>
</div>
</template>

<script>
import { Swiper, SwiperSlide } from 'vue-awesome-swiper'
export default {
name: 'Hero',
components: {
Swiper,
SwiperSlide,
},
data() {
return {
swiperOption: {
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
},
}
},
computed: {
swiper() {
return this.$refs.mySwiper.$swiper
},
},
mounted() {
this.swiper.slideTo(2, 2000, false)
},
}
</script>

Expand Down

1 comment on commit 5481c73

@vercel
Copy link

@vercel vercel bot commented on 5481c73 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.