From d774f0345f5bb8776b3550caa13787f857f2c2ae Mon Sep 17 00:00:00 2001 From: Salam-vsem Date: Tue, 20 May 2025 16:58:44 +0300 Subject: [PATCH] fix slider --- src/assets/icons/ArrowIcon.tsx | 24 +++++++++++ src/components/Footer.astro | 24 ++++------- src/components/Reviews.tsx | 1 + src/components/swiper/FractionPagination.tsx | 41 +++++++++++++++++++ src/components/swiper/MediaSwiper.tsx | 22 +++++----- src/components/swiper/MediaSwiperWithNav.tsx | 21 ---------- src/components/swiper/NavButtons.tsx | 30 -------------- src/components/swiper/SimpleSwiper.tsx | 42 ++++++++++++-------- src/components/swiper/hooks.ts | 16 -------- src/components/swiper/simple-swiper.css | 12 ++++++ src/components/swiper/utils.ts | 37 +++++++++++++++++ 11 files changed, 158 insertions(+), 112 deletions(-) create mode 100644 src/assets/icons/ArrowIcon.tsx create mode 100644 src/components/swiper/FractionPagination.tsx delete mode 100644 src/components/swiper/MediaSwiperWithNav.tsx delete mode 100644 src/components/swiper/NavButtons.tsx delete mode 100644 src/components/swiper/hooks.ts create mode 100644 src/components/swiper/utils.ts diff --git a/src/assets/icons/ArrowIcon.tsx b/src/assets/icons/ArrowIcon.tsx new file mode 100644 index 0000000..a375f87 --- /dev/null +++ b/src/assets/icons/ArrowIcon.tsx @@ -0,0 +1,24 @@ +import { forwardRef } from 'react' + +import type { IconProps } from './types' + +export const ArrowIcon = forwardRef(function ArrowIcon(props, ref) { + return ( + + + + ) +}) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 58d3665..d418ea7 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -15,23 +15,13 @@ const t = useTranslations(lang) ---