diff --git a/package.json b/package.json index 1fbede6..e288910 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "5.10.0", + "version": "5.11.0", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", @@ -16,44 +16,44 @@ "remove-darkmode": "node scripts/removeDarkmode.js && yarn format" }, "dependencies": { - "@astrojs/check": "0.9.5", - "@astrojs/mdx": "4.3.12", + "@astrojs/check": "0.9.6", + "@astrojs/mdx": "4.3.13", "@astrojs/react": "4.4.2", "@astrojs/sitemap": "3.6.0", "@digi4care/astro-google-tagmanager": "^1.6.0", "@justinribeiro/lite-youtube": "^1.9.0", - "astro": "5.16.0", + "astro": "5.16.5", "astro-auto-import": "^0.4.5", "astro-font": "^1.1.0", + "astro-swiper": "^1.3.0", "date-fns": "^4.1.0", "disqus-react": "^1.1.7", "github-slugger": "^2.0.0", "gray-matter": "^4.0.3", - "marked": "^17.0.0", + "marked": "^17.0.1", "prop-types": "^15.8.1", - "react": "^19.2.0", - "react-dom": "^19.2.0", + "react": "^19.2.3", + "react-dom": "^19.2.3", "react-icons": "^5.5.0", "remark-collapse": "^0.1.2", "remark-toc": "^9.0.0", - "swiper": "^12.0.3", - "vite": "^7.2.2", - "sharp": "^0.34.5" + "sharp": "^0.34.5", + "vite": "^7.2.7" }, "devDependencies": { "@tailwindcss/forms": "^0.5.10", "@tailwindcss/typography": "^0.5.19", - "@tailwindcss/vite": "^4.1.17", - "@types/node": "24.10.1", - "@types/react": "19.2.6", + "@tailwindcss/vite": "^4.1.18", + "@types/node": "24.10.3", + "@types/react": "19.2.7", "@types/react-dom": "19.2.3", "concurrently": "^9.2.1", - "eslint": "^9.39.1", - "prettier": "^3.6.2", + "eslint": "^9.39.2", + "prettier": "^3.7.4", "prettier-plugin-astro": "^0.14.1", - "prettier-plugin-tailwindcss": "^0.7.1", + "prettier-plugin-tailwindcss": "^0.7.2", "tailwind-bootstrap-grid": "^6.0.0", - "tailwindcss": "^4.1.17", + "tailwindcss": "^4.1.18", "typescript": "^5.9.3" } } diff --git a/src/layouts/partials/Testimonial.astro b/src/layouts/partials/Testimonial.astro index b956d1b..30ec447 100644 --- a/src/layouts/partials/Testimonial.astro +++ b/src/layouts/partials/Testimonial.astro @@ -1,7 +1,38 @@ --- -import { markdownify } from "@/lib/utils/textConverter"; import ImageMod from "@/components/ImageMod.astro"; +import { markdownify } from "@/lib/utils/textConverter"; +import { + Swiper, + SwiperPagination, + SwiperSlide, + SwiperWrapper, +} from "astro-swiper"; +import type { SwiperOptions } from "swiper/types"; + const { testimonial } = Astro.props; + +const swiperOptions: SwiperOptions = { + spaceBetween: 24, + loop: true, + autoplay: { + delay: 2500, + disableOnInteraction: false, + }, + pagination: { + el: ".testimonial-slider-pagination", + type: "bullets", + clickable: true, + dynamicBullets: false, + }, + breakpoints: { + 768: { + slidesPerView: 2, + }, + 992: { + slidesPerView: 3, + }, + }, +}; --- { @@ -14,8 +45,8 @@ const { testimonial } = Astro.props;