diff --git a/src/components/carousels/secondCarousel.tsx b/src/components/carousels/secondCarousel.tsx index a205807..a664ad8 100644 --- a/src/components/carousels/secondCarousel.tsx +++ b/src/components/carousels/secondCarousel.tsx @@ -1,6 +1,7 @@ 'use client'; import React, { FC, useState, useEffect } from 'react'; import { BsChevronCompactLeft, BsChevronCompactRight } from 'react-icons/bs'; +import { Images } from '~/assets/img'; interface SecondCarouselProps {} @@ -48,26 +49,28 @@ const SecondCarousel: FC = ({}) => { }; }, [currentIndex]); - const containerClass = isMobile ? 'mobile-carousel' : 'desktop-carousel'; + const backgroundImageStyle = isMobile + ? { + backgroundImage: `url(${mobileSlidesList[currentIndex].url})`, + } + : { + backgroundImage: `url(${slidesList[currentIndex].url})`, + }; return (
-
+
-
+
diff --git a/src/components/navBar/navBar.tsx b/src/components/navBar/navBar.tsx index 6a4d618..3922b35 100644 --- a/src/components/navBar/navBar.tsx +++ b/src/components/navBar/navBar.tsx @@ -22,9 +22,9 @@ const NavBar: FC = ({}) => { }; return ( -
+
+ ); };