From 55062e42bdd3367c8aa7d177c44381589e648844 Mon Sep 17 00:00:00 2001 From: Tejas Panchal Date: Sun, 27 Jul 2025 17:51:44 +0530 Subject: [PATCH] carousal responsive --- src/components/banner/Banner.jsx | 33 ++++++++++++++++++++++---- src/components/spotlight/Spotlight.css | 3 ++- src/components/spotlight/Spotlight.jsx | 2 +- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/src/components/banner/Banner.jsx b/src/components/banner/Banner.jsx index c9e26e7..ad6cd78 100644 --- a/src/components/banner/Banner.jsx +++ b/src/components/banner/Banner.jsx @@ -20,13 +20,35 @@ function Banner({ item, index }) { className="absolute right-0 object-cover h-full w-[80%] bg-auto max-[1200px]:w-full max-[1200px]:bottom-0" />
-
+ +

#{index + 1} Spotlight

-

+

{language === "EN" ? item.title : item.japanese_title}

+ + {/* Mobile Buttons */} +
+ + + Watch Now + + + Details + +
+
{item.tvInfo && ( <> @@ -105,10 +127,11 @@ function Banner({ item, index }) { {item.description}

-
+ {/* Desktop Buttons */} +
Details diff --git a/src/components/spotlight/Spotlight.css b/src/components/spotlight/Spotlight.css index 639a04d..f012a8f 100644 --- a/src/components/spotlight/Spotlight.css +++ b/src/components/spotlight/Spotlight.css @@ -106,6 +106,7 @@ } .button-prev, .button-next { - display: none; + width: 28px; + height: 28px; } } \ No newline at end of file diff --git a/src/components/spotlight/Spotlight.jsx b/src/components/spotlight/Spotlight.jsx index 54e5a1a..20ed620 100644 --- a/src/components/spotlight/Spotlight.jsx +++ b/src/components/spotlight/Spotlight.jsx @@ -11,7 +11,7 @@ const Spotlight = ({ spotlights }) => { return ( <>
-
+