diff --git a/src/components/banner/Banner.css b/src/components/banner/Banner.css index 0734e35..3503914 100644 --- a/src/components/banner/Banner.css +++ b/src/components/banner/Banner.css @@ -6,126 +6,68 @@ } .spotlight-overlay { - background: radial-gradient( - circle at 130% center, - rgba(10, 10, 10, 0) 50%, - rgba(10, 10, 10, 0.5) 60%, - rgba(10, 10, 10, 1) 80%, - rgba(10, 10, 10, 1) 100% - ), - linear-gradient( - to top, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to left, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to bottom, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ); + background: linear-gradient( + 90deg, + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 35%, + rgba(10, 10, 10, 0) 65% + ), + linear-gradient( + to top, + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 20%, + rgba(10, 10, 10, 0) 50% + ); pointer-events: none; } @media only screen and (max-width: 1300px) { .spotlight-overlay { - background: radial-gradient( - circle at 130% center, - rgba(10, 10, 10, 0) 50%, - rgba(10, 10, 10, 0.5) 60%, - rgba(10, 10, 10, 1) 80%, - rgba(10, 10, 10, 1) 100% + background: linear-gradient( + 90deg, + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 35%, + rgba(10, 10, 10, 0) 65% ), linear-gradient( to top, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to left, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to bottom, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 50%, - rgba(10, 10, 10, 0) 100% + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 20%, + rgba(10, 10, 10, 0) 50% ); } } @media only screen and (max-width: 1200px) { .spotlight-overlay { - background: radial-gradient( - circle at 100% center, - rgba(10, 10, 10, 0) 50%, - rgba(10, 10, 10, 0.5) 60%, - rgba(10, 10, 10, 1) 95%, - rgba(10, 10, 10, 1) 100% + background: linear-gradient( + 90deg, + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 35%, + rgba(10, 10, 10, 0) 65% ), linear-gradient( to top, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to left, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to bottom, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 70%, - rgba(10, 10, 10, 0) 100% + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 20%, + rgba(10, 10, 10, 0) 50% ); } } @media only screen and (max-width: 900px) { .spotlight-overlay { - background: radial-gradient( - circle at 60% center, - rgba(10, 10, 10, 0) 50%, - rgba(10, 10, 10, 0.5) 85%, - rgba(10, 10, 10, 1) 95%, - rgba(10, 10, 10, 1) 100% + background: linear-gradient( + 90deg, + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 35%, + rgba(10, 10, 10, 0) 65% ), linear-gradient( to top, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 70%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to left, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 20%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to bottom, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 70%, - rgba(10, 10, 10, 0) 100% - ), - linear-gradient( - to right, - rgba(10, 10, 10, 1) 0%, - rgba(10, 10, 10, 0) 15%, - rgba(10, 10, 10, 0) 100% + #0a0a0a 0%, + rgba(10, 10, 10, 0.7) 20%, + rgba(10, 10, 10, 0) 50% ); } } \ No newline at end of file diff --git a/src/components/banner/Banner.jsx b/src/components/banner/Banner.jsx index ad6cd78..86182e3 100644 --- a/src/components/banner/Banner.jsx +++ b/src/components/banner/Banner.jsx @@ -13,16 +13,16 @@ import "./Banner.css"; function Banner({ item, index }) { const { language } = useLanguage(); return ( -
+
{item.title} -
+
-
-

+

+

#{index + 1} Spotlight

diff --git a/src/components/spotlight/Spotlight.css b/src/components/spotlight/Spotlight.css index f012a8f..ceacc84 100644 --- a/src/components/spotlight/Spotlight.css +++ b/src/components/spotlight/Spotlight.css @@ -13,11 +13,9 @@ } .button-prev, .button-next { - width: 32px; - height: 32px; - background-color: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - backdrop-filter: blur(8px); + width: 36px; + height: 36px; + background-color: #1a1a1a; border-radius: 6px; cursor: pointer; display: flex; @@ -28,17 +26,15 @@ .button-prev:hover, .button-next:hover { - background-color: rgba(255, 255, 255, 0.1); - border-color: rgba(255, 255, 255, 0.2); - transform: translateY(-1px); + background-color: #2a2a2a; } .button-prev::after, .button-next::after { content: ''; - width: 7px; - height: 7px; - border: 1.5px solid rgba(255, 255, 255, 0.8); + width: 9px; + height: 9px; + border: 2px solid #ffffff; border-left: 0; border-bottom: 0; } @@ -79,7 +75,7 @@ } .swiper-pagination { - bottom: 15px !important; + bottom: 20px !important; } .swiper-pagination-bullet { @@ -93,12 +89,12 @@ @media only screen and (max-width: 575px) { .swiper-horizontal > .swiper-pagination-bullets { - bottom: 10px !important; + bottom: 20px !important; left: 50% !important; transform: translateX(-50%) !important; width: auto !important; display: flex !important; - gap: 6px; + gap: 4px; align-items: center; justify-content: center; flex-direction: row !important; @@ -106,7 +102,15 @@ } .button-prev, .button-next { - width: 28px; - height: 28px; + width: 32px; + height: 32px; + } + .swiper-pagination-bullet { + width: 6px !important; + height: 6px !important; + } + .swiper-pagination-bullet-active { + width: 16px !important; + border-radius: 8px !important; } } \ No newline at end of file diff --git a/src/components/spotlight/Spotlight.jsx b/src/components/spotlight/Spotlight.jsx index 20ed620..a38e4e0 100644 --- a/src/components/spotlight/Spotlight.jsx +++ b/src/components/spotlight/Spotlight.jsx @@ -11,10 +11,6 @@ const Spotlight = ({ spotlights }) => { return ( <>
-
-
-
-
{spotlights && spotlights.length > 0 ? ( <> { disableOnInteraction: false, }} modules={[Navigation, Autoplay, Pagination]} - className="h-[450px] max-[1390px]:h-full" + className="h-[450px] max-[1390px]:h-full rounded-2xl overflow-hidden relative" style={{ "--swiper-pagination-bullet-inactive-color": "rgba(255, 255, 255, 0.5)", "--swiper-pagination-bullet-inactive-opacity": "1", }} > +
+
+
+
{spotlights.map((item, index) => (