Skip to content

Commit

Permalink
Update header bannder (apache#30600)
Browse files Browse the repository at this point in the history
  • Loading branch information
damondouglas authored Mar 13, 2024
1 parent e648fd0 commit da26f5a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 7 additions & 3 deletions website/www/site/assets/js/sliders/top-banners.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
// the License.

new Swiper('.top-banners', {
autoplay: {
delay: 5000,
autoplay: false,
effect: 'fade',
loop: true,
navigation: {
enabled: true,
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
loop: false,
pagination: {
el: ".top-banners .swiper-pagination",
clickable: true,
Expand Down
8 changes: 2 additions & 6 deletions website/www/site/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@

<div class="top-banners swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<a href="https://beamcollege.dev/">
<img class="banner-img-desktop" src="/images/college_2023_banner_desktop.png" alt="banner-desktop">
<img class="banner-img-mobile" src="/images/college_2023_banner_mobile.png" alt="banner-mobile">
</a>
</div>
<div class="swiper-slide">
<a href="https://tour.beam.apache.org">
<img class="banner-img-desktop" src="/images/banners/tour-of-beam/tour-of-beam-desktop.png" alt="Start Tour of Beam">
Expand All @@ -227,6 +221,8 @@
</div>
</div>
<div class="swiper-pagination"></div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
{{ $swiperSlider := resources.Get "js/swiper-bundle.min.js" | minify | fingerprint }}
<script src="{{ $swiperSlider.RelPermalink }}"></script>
Expand Down

0 comments on commit da26f5a

Please sign in to comment.