From 503d935fc6db152225f86e77478255891df9646c Mon Sep 17 00:00:00 2001 From: Tejas Panchal Date: Sun, 27 Jul 2025 12:54:12 +0530 Subject: [PATCH] Fixed Carousal 2 --- src/components/banner/Banner.css | 18 ++++++++---------- src/components/banner/Banner.jsx | 6 +++--- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/banner/Banner.css b/src/components/banner/Banner.css index f507cc8..0734e35 100644 --- a/src/components/banner/Banner.css +++ b/src/components/banner/Banner.css @@ -1,15 +1,11 @@ .spotlight { overflow: hidden; + position: relative; + width: 100%; + height: 100%; } .spotlight-overlay { - width: 100.1%; - height: 100.1%; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom:0; background: radial-gradient( circle at 130% center, rgba(10, 10, 10, 0) 50%, @@ -30,14 +26,14 @@ rgba(10, 10, 10, 0) 100% ), linear-gradient( - to bottom,m + to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0) 20%, rgba(10, 10, 10, 0) 100% ); - - z-index: 1; + pointer-events: none; } + @media only screen and (max-width: 1300px) { .spotlight-overlay { background: radial-gradient( @@ -67,6 +63,7 @@ ); } } + @media only screen and (max-width: 1200px) { .spotlight-overlay { background: radial-gradient( @@ -96,6 +93,7 @@ ); } } + @media only screen and (max-width: 900px) { .spotlight-overlay { background: radial-gradient( diff --git a/src/components/banner/Banner.jsx b/src/components/banner/Banner.jsx index b174130..c9e26e7 100644 --- a/src/components/banner/Banner.jsx +++ b/src/components/banner/Banner.jsx @@ -19,8 +19,8 @@ function Banner({ item, index }) { alt={item.title} className="absolute right-0 object-cover h-full w-[80%] bg-auto max-[1200px]:w-full max-[1200px]:bottom-0" /> -
-
+
+

#{index + 1} Spotlight

@@ -105,7 +105,7 @@ function Banner({ item, index }) { {item.description}

-
+