fixed issue #17

This commit is contained in:
somrat sorkar
2023-10-23 09:05:10 +06:00
parent 4539079c56
commit 7aa8bf8b49
5 changed files with 33 additions and 34 deletions
-4
View File
@@ -33,8 +33,6 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
width={logo_width.replace("px", "") * 2}
height={logo_height.replace("px", "") * 2}
alt={title}
fit={"contain"}
background={"rgba(0,0,0,0)"}
style={{
height: logo_height.replace("px", "") + "px",
width: logo_width.replace("px", "") + "px",
@@ -48,8 +46,6 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
width={logo_width.replace("px", "") * 2}
height={logo_height.replace("px", "") * 2}
alt={title}
fit={"contain"}
background={"rgba(0,0,0,0)"}
style={{
height: logo_height.replace("px", "") + "px",
width: logo_width.replace("px", "") + "px",
+24 -21
View File
@@ -85,28 +85,31 @@ const { testimonial } = Astro.props;
import "swiper/css/pagination";
import { Autoplay, Pagination } from "swiper/modules";
new Swiper(".testimonial-slider", {
modules: [Pagination, Autoplay],
spaceBetween: 24,
loop: true,
loopedSlides: 2,
centeredSlides: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
pagination: {
el: ".testimonial-slider-pagination",
type: "bullets",
clickable: true,
},
breakpoints: {
768: {
slidesPerView: 2,
// astro:page-load event is fired when the page is loaded
document.addEventListener("astro:page-load", () => {
new Swiper(".testimonial-slider", {
modules: [Pagination, Autoplay],
spaceBetween: 24,
loop: true,
loopedSlides: 2,
centeredSlides: true,
autoplay: {
delay: 2500,
disableOnInteraction: false,
},
992: {
slidesPerView: 3,
pagination: {
el: ".testimonial-slider-pagination",
type: "bullets",
clickable: true,
},
},
breakpoints: {
768: {
slidesPerView: 2,
},
992: {
slidesPerView: 3,
},
},
});
});
</script>