forked from matter-labs/dapp-portal
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from zkLinkProtocol/feat/banner
Feat/banner
- Loading branch information
Showing
6 changed files
with
130 additions
and
9 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,96 @@ | ||
<template> | ||
<div class="banner max-w-[100vw] md:max-w-[700px]"> | ||
<swiper | ||
:spaceBetween="30" | ||
:centeredSlides="true" | ||
:autoplay="{ | ||
delay: 2500, | ||
disableOnInteraction: false, | ||
}" | ||
:pagination="{ | ||
clickable: true, | ||
}" | ||
:navigation="true" | ||
:modules="modules" | ||
class="mySwiper" | ||
> | ||
<swiper-slide> | ||
<!-- <div> | ||
<img src="/img/banner.svg" class="m-auto hidden md:block" /> | ||
<img src="/img/mobile.svg" class="m-auto block md:hidden" /> | ||
</div> --> | ||
|
||
<a href="https://app.zklink.io/" target="\_blank"> | ||
<img src="/img/banner.svg" className="bannerImg" /> | ||
<img src="/img/mobile.svg" className="mobileImg" /> | ||
</a> | ||
</swiper-slide> | ||
<swiper-slide> | ||
<a href="https://zklink.io/merge" target="\_blank"> | ||
<img src="/img/portal-banner.png" className="bannerImg" /> | ||
<img src="/img/portal-banner-mobile.png" className="mobileImg" /> | ||
</a> | ||
</swiper-slide> | ||
</swiper> | ||
</div> | ||
</template> | ||
<script> | ||
// Import Swiper Vue.js components | ||
import { Swiper, SwiperSlide } from "swiper/vue"; | ||
// Import Swiper styles | ||
import "swiper/css"; | ||
// import "swiper/css/pagination"; | ||
// import "swiper/css/navigation"; | ||
// import required modules | ||
import { Autoplay, Pagination, Navigation } from "swiper/modules"; | ||
export default { | ||
components: { | ||
Swiper, | ||
SwiperSlide, | ||
}, | ||
setup() { | ||
return { | ||
modules: [Autoplay, Pagination, Navigation], | ||
}; | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
/* @import "swiper/css"; */ | ||
.banner { | ||
margin: 0 auto; | ||
overflow: auto; | ||
width: 100%; | ||
text-align: center; | ||
a { | ||
display: block; | ||
width: 100%; | ||
min-width: 0px; | ||
max-width: 700px; | ||
} | ||
.bannerImg { | ||
display: block; | ||
width: 100%; | ||
height: 80px; | ||
} | ||
.mobileImg { | ||
display: none; | ||
} | ||
@media screen and (max-width: 640px) { | ||
.bannerImg { | ||
display: none; | ||
} | ||
.mobileImg { | ||
display: none; | ||
display: block; | ||
width: 100%; | ||
height: 80px; | ||
} | ||
} | ||
} | ||
</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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.