diff --git a/src/assets/gemma-c-stpjHJGqZyw-unsplash.jpg b/src/assets/gemma-c-stpjHJGqZyw-unsplash.jpg new file mode 100644 index 0000000..c07a28a Binary files /dev/null and b/src/assets/gemma-c-stpjHJGqZyw-unsplash.jpg differ diff --git a/src/assets/photo-1506617420156-8e4536971650.jpg b/src/assets/photo-1506617420156-8e4536971650.jpg new file mode 100644 index 0000000..cbd3948 Binary files /dev/null and b/src/assets/photo-1506617420156-8e4536971650.jpg differ diff --git a/src/assets/pngtree-supermarket-aisle-with-empty-shopping-cart-at-grocery-store-retail-business-image_15646095.jpg b/src/assets/pngtree-supermarket-aisle-with-empty-shopping-cart-at-grocery-store-retail-business-image_15646095.jpg new file mode 100644 index 0000000..a12feb3 Binary files /dev/null and b/src/assets/pngtree-supermarket-aisle-with-empty-shopping-cart-at-grocery-store-retail-business-image_15646095.jpg differ diff --git a/src/widgets/welcome/ui/index.tsx b/src/widgets/welcome/ui/index.tsx index 6e02c81..aaebefc 100644 --- a/src/widgets/welcome/ui/index.tsx +++ b/src/widgets/welcome/ui/index.tsx @@ -1,30 +1,75 @@ 'use client'; -import Banner from '@/assets/banner.webp'; +import Banner from '@/assets/gemma-c-stpjHJGqZyw-unsplash.jpg'; +import Banner_Two from '@/assets/photo-1506617420156-8e4536971650.jpg'; +import Banner_Three from '@/assets/pngtree-supermarket-aisle-with-empty-shopping-cart-at-grocery-store-retail-business-image_15646095.jpg'; import { AspectRatio } from '@/shared/ui/aspect-ratio'; +import { Button } from '@/shared/ui/button'; +import { + Carousel, + CarouselContent, + CarouselItem, + type CarouselApi, +} from '@/shared/ui/carousel'; import useCategoryActive from '@/widgets/navbar/lib/openCategory'; +import { ChevronLeft, ChevronRight } from 'lucide-react'; import Image from 'next/image'; +import { useState } from 'react'; import 'swiper/css'; import { Swiper, SwiperSlide } from 'swiper/react'; import { categoryList } from '../lib/data'; +const banner = [Banner, Banner_Two, Banner_Three]; + const Welcome = () => { const { setActive, setOpenToolbar } = useCategoryActive(); + const [api, setApi] = useState(); + + const scrollPrev = () => { + api?.scrollPrev(); + }; + + const scrollNext = () => { + api?.scrollNext(); + }; return (
- {/* Banner */} - -
- Banner -
-
+ + + {banner.map((e, index) => ( + + +
+ Banner +
+
+ + +
+ ))} +
+
{/* Category Slider */}