-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4484cd2
commit 9db6ef0
Showing
6 changed files
with
197 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,163 @@ | ||
import React from "react"; | ||
// Import Swiper React components | ||
import { Swiper, SwiperSlide } from "swiper/react"; | ||
|
||
import "swiper/css"; | ||
import "swiper/css/effect-fade"; | ||
import "swiper/css/navigation"; | ||
import "swiper/css/pagination"; | ||
|
||
// import required modules | ||
import { Autoplay, EffectFade, Pagination } from "swiper/modules"; | ||
import { FaArrowRight } from "react-icons/fa"; | ||
import { Carousel } from "react-responsive-carousel"; | ||
import "react-responsive-carousel/lib/styles/carousel.min.css"; | ||
import { Link } from "react-router-dom"; | ||
|
||
export const Banner = () => { | ||
return ( | ||
<Swiper | ||
pagination={{ | ||
dynamicBullets: true, | ||
}} | ||
modules={[Pagination, Autoplay, EffectFade]} | ||
className="mySwiper h-96 w-auto mt-5 container mx-auto rounded-md" | ||
loop={true} | ||
effect={"fade"} | ||
autoplay={{ | ||
delay: 2000, | ||
disableOnInteraction: false, | ||
}} | ||
> | ||
<SwiperSlide> | ||
<img | ||
className="w-full h-full object-cover" | ||
src="https://icms-image.slatic.net/images/ims-web/adf3364e-f1a8-4dc8-9140-6fedf54bdb65.jpg" | ||
alt="" | ||
/> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<img | ||
className="w-full h-full object-cover" | ||
src="https://icms-image.slatic.net/images/ims-web/08cb6ccd-b909-4c15-9421-c25b26e73644.jpg" | ||
alt="" | ||
/> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<img | ||
className="w-full h-full object-cover" | ||
src="https://icms-image.slatic.net/images/ims-web/7de73341-dee6-4793-a51d-367929293352.jpg" | ||
alt="" | ||
/> | ||
</SwiperSlide> | ||
</Swiper> | ||
<div className="container mx-auto mt-1 sm:mt-5"> | ||
<div className="md:flex md:gap-5"> | ||
<div className="bg-gray-100 p-3 rounded-xl hidden lg:block w-full min-w-[280px] h-80"> | ||
<ul className="space-y-1"> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Women's & Girls' Fashion</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Health & Beauty</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Watches, Bags, Jewellery</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Men's & Boys' Fashion</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Mother & Baby</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Electronics Devices</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>TV & Home Appliances</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Electronic Accessories</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Groceries</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Home & Lifestyle</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Sports & Outdoors</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
<li className="text-gray-600 text-sm hover:text-orange-600 hover:bg-red-100/40 px-2 rounded-md group duration-300 ease-out"> | ||
<Link to="/" className="flex justify-between items-center"> | ||
<span>Automotive & Motorbike</span> | ||
<span className="hidden group-hover:block"> | ||
<FaArrowRight /> | ||
</span> | ||
</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
{/* carousel */} | ||
<Carousel | ||
autoPlay | ||
infiniteLoop | ||
showThumbs={false} | ||
showStatus={false} | ||
interval={4000} | ||
> | ||
<div> | ||
<img | ||
loading="lazy" | ||
className="w-full object-fill rounded-xl h-32 sm:h-52 md:h-80" | ||
src="https://icms-image.slatic.net/images/ims-web/22aa0f64-5ce4-4163-b139-8e13bac1fd4a.jpg" | ||
alt="" | ||
/> | ||
</div> | ||
<div> | ||
<img | ||
loading="lazy" | ||
className="w-full object-fill rounded-xl h-32 sm:h-52 md:h-80" | ||
src="https://icms-image.slatic.net/images/ims-web/ba823c57-436b-4b77-8f58-dc5205af1e80.jpg" | ||
alt="" | ||
/> | ||
</div> | ||
<div> | ||
<img | ||
loading="lazy" | ||
className="w-full object-fill rounded-xl h-32 sm:h-52 md:h-80" | ||
src="https://icms-image.slatic.net/images/ims-web/befb2d4d-9ee3-4da2-bbbf-1befc1670150.jpg" | ||
alt="" | ||
/> | ||
</div> | ||
<div> | ||
<img | ||
loading="lazy" | ||
className="w-full object-fill rounded-xl h-32 sm:h-52 md:h-80" | ||
src="https://icms-image.slatic.net/images/ims-web/08cb6ccd-b909-4c15-9421-c25b26e73644.jpg" | ||
alt="" | ||
/> | ||
</div> | ||
<div> | ||
<img | ||
loading="lazy" | ||
className="w-full object-fill rounded-xl h-32 sm:h-52 md:h-80" | ||
src="https://icms-image.slatic.net/images/ims-web/7de73341-dee6-4793-a51d-367929293352.jpg" | ||
alt="" | ||
/> | ||
</div> | ||
</Carousel> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters