mirror of
https://github.com/10h30/astroplate.git
synced 2026-07-11 18:56:06 +09:00
fixed issue #17
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "astroplate",
|
"name": "astroplate",
|
||||||
"version": "2.1.0",
|
"version": "2.1.1",
|
||||||
"description": "Astro and Tailwindcss boilerplate",
|
"description": "Astro and Tailwindcss boilerplate",
|
||||||
"author": "zeon.studio",
|
"author": "zeon.studio",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -44,10 +44,10 @@
|
|||||||
"@tailwindcss/typography": "^0.5.10",
|
"@tailwindcss/typography": "^0.5.10",
|
||||||
"@types/marked": "^5.0.2",
|
"@types/marked": "^5.0.2",
|
||||||
"@types/node": "20.8.7",
|
"@types/node": "20.8.7",
|
||||||
"@types/react": "18.2.29",
|
"@types/react": "18.2.31",
|
||||||
"@types/react-dom": "18.2.14",
|
"@types/react-dom": "18.2.14",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.16",
|
||||||
"eslint": "^8.51.0",
|
"eslint": "^8.52.0",
|
||||||
"postcss": "^8.4.31",
|
"postcss": "^8.4.31",
|
||||||
"prettier": "^3.0.3",
|
"prettier": "^3.0.3",
|
||||||
"prettier-plugin-astro": "^0.12.0",
|
"prettier-plugin-astro": "^0.12.0",
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ const { theme_switcher }: { theme_switcher: boolean } = config.settings;
|
|||||||
width={logo_width.replace("px", "") * 2}
|
width={logo_width.replace("px", "") * 2}
|
||||||
height={logo_height.replace("px", "") * 2}
|
height={logo_height.replace("px", "") * 2}
|
||||||
alt={title}
|
alt={title}
|
||||||
fit={"contain"}
|
|
||||||
background={"rgba(0,0,0,0)"}
|
|
||||||
style={{
|
style={{
|
||||||
height: logo_height.replace("px", "") + "px",
|
height: logo_height.replace("px", "") + "px",
|
||||||
width: logo_width.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}
|
width={logo_width.replace("px", "") * 2}
|
||||||
height={logo_height.replace("px", "") * 2}
|
height={logo_height.replace("px", "") * 2}
|
||||||
alt={title}
|
alt={title}
|
||||||
fit={"contain"}
|
|
||||||
background={"rgba(0,0,0,0)"}
|
|
||||||
style={{
|
style={{
|
||||||
height: logo_height.replace("px", "") + "px",
|
height: logo_height.replace("px", "") + "px",
|
||||||
width: logo_width.replace("px", "") + "px",
|
width: logo_width.replace("px", "") + "px",
|
||||||
|
|||||||
@@ -85,28 +85,31 @@ const { testimonial } = Astro.props;
|
|||||||
import "swiper/css/pagination";
|
import "swiper/css/pagination";
|
||||||
import { Autoplay, Pagination } from "swiper/modules";
|
import { Autoplay, Pagination } from "swiper/modules";
|
||||||
|
|
||||||
new Swiper(".testimonial-slider", {
|
// astro:page-load event is fired when the page is loaded
|
||||||
modules: [Pagination, Autoplay],
|
document.addEventListener("astro:page-load", () => {
|
||||||
spaceBetween: 24,
|
new Swiper(".testimonial-slider", {
|
||||||
loop: true,
|
modules: [Pagination, Autoplay],
|
||||||
loopedSlides: 2,
|
spaceBetween: 24,
|
||||||
centeredSlides: true,
|
loop: true,
|
||||||
autoplay: {
|
loopedSlides: 2,
|
||||||
delay: 2500,
|
centeredSlides: true,
|
||||||
disableOnInteraction: false,
|
autoplay: {
|
||||||
},
|
delay: 2500,
|
||||||
pagination: {
|
disableOnInteraction: false,
|
||||||
el: ".testimonial-slider-pagination",
|
|
||||||
type: "bullets",
|
|
||||||
clickable: true,
|
|
||||||
},
|
|
||||||
breakpoints: {
|
|
||||||
768: {
|
|
||||||
slidesPerView: 2,
|
|
||||||
},
|
},
|
||||||
992: {
|
pagination: {
|
||||||
slidesPerView: 3,
|
el: ".testimonial-slider-pagination",
|
||||||
|
type: "bullets",
|
||||||
|
clickable: true,
|
||||||
},
|
},
|
||||||
},
|
breakpoints: {
|
||||||
|
768: {
|
||||||
|
slidesPerView: 2,
|
||||||
|
},
|
||||||
|
992: {
|
||||||
|
slidesPerView: 3,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -71,8 +71,6 @@ const { banner, features }: Homepage = homepage.data;
|
|||||||
src={feature.image}
|
src={feature.image}
|
||||||
height={480}
|
height={480}
|
||||||
width={520}
|
width={520}
|
||||||
fit="contain"
|
|
||||||
background="rgba(0,0,0,0)"
|
|
||||||
alt={feature.title}
|
alt={feature.title}
|
||||||
format="webp"
|
format="webp"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -75,11 +75,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// swiper pagination
|
// swiper pagination
|
||||||
.swiper-pagination-bullet {
|
.testimonial-slider-pagination {
|
||||||
@apply h-2.5 w-2.5 bg-theme-light opacity-100 dark:bg-darkmode-theme-light;
|
.swiper-pagination-bullet {
|
||||||
|
@apply h-2.5 w-2.5 bg-theme-light opacity-100 dark:bg-darkmode-theme-light;
|
||||||
|
|
||||||
&-active {
|
&-active {
|
||||||
@apply h-4 w-4 bg-primary dark:bg-darkmode-primary;
|
@apply h-4 w-4 bg-primary dark:bg-darkmode-primary;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user