From 6c669bda107d390d9d40e958a1d6c423e0338b20 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Sun, 21 Dec 2025 18:35:53 +0100 Subject: [PATCH 1/2] Add Carousel.astro to fix sidebar carousel --- src/components/Carousel.astro | 13 +++++++++++++ src/components/Sidebar.astro | 11 ++--------- 2 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 src/components/Carousel.astro diff --git a/src/components/Carousel.astro b/src/components/Carousel.astro new file mode 100644 index 0000000..a27256f --- /dev/null +++ b/src/components/Carousel.astro @@ -0,0 +1,13 @@ +--- +import '../scripts/swiper.js'; +--- + + + Item 1 + Item 2 + Item 3 + \ No newline at end of file diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index 9def57f..f08744d 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -2,6 +2,7 @@ const { currentOS } = Astro.props; import 'swiper/css'; import 'swiper/element/bundle'; +import Carousel from '../components/Carousel.astro'; ---