diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-07 15:22:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-07 15:22:39 +0700 |
| commit | 86a715473aca30e277c1857bbcb6e6e9283e13f4 (patch) | |
| tree | 8f89f550b16380078ac460ef80f954ed503c9237 /src/core/components/elements/Navbar/NavbarDesktop.jsx | |
| parent | 3b785b0bce7cf27a377716c8dca300a996daff0c (diff) | |
<iman> update all promo
Diffstat (limited to 'src/core/components/elements/Navbar/NavbarDesktop.jsx')
| -rw-r--r-- | src/core/components/elements/Navbar/NavbarDesktop.jsx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/core/components/elements/Navbar/NavbarDesktop.jsx b/src/core/components/elements/Navbar/NavbarDesktop.jsx index 78e7f54a..cc5ea611 100644 --- a/src/core/components/elements/Navbar/NavbarDesktop.jsx +++ b/src/core/components/elements/Navbar/NavbarDesktop.jsx @@ -255,6 +255,16 @@ const NavbarDesktop = () => { rel="noreferrer" > <p className="absolute inset-0 flex justify-center items-center group-hover:scale-105 group-hover:text-red-500 transition-transform duration-200 z-10">Semua Promo</p> + {showPopup && ( + <Image + src='/images/penawaran-terbatas.jpg' + alt='penawaran terbatas' + width={1440} + height={160} + quality={100} + className={`fixed ${isTop ? 'top-[155px]' : 'top-[80px]'} rounded-3xl left-[645px] w-40 h-12 p-2 z-50 transition-all duration-300 animate-pulse`} + /> + )} </Link> {/* {showPopup && router.pathname === '/' && ( <div className={`fixed ${isTop ? 'top-[170px]' : 'top-[90px]'} rounded-3xl left-[700px] w-fit object-center bg-green-50 text-xs font-medium text-green-700 ring-1 ring-inset ring-green-600/20 text-center p-2 z-50 transition-all duration-300`}> @@ -263,15 +273,6 @@ const NavbarDesktop = () => { </p> </div> )} */} - {showPopup && router.pathname === '/' && ( - <Image - src='/images/penawaran-terbatas.svg' - alt='penawaran terbatas' - width={144} - height={3} - className={`fixed ${isTop ? 'top-[-275px]' : 'top-[-345px]'} rounded-3xl left-[680px] w-48 h-full p-2 z-50 transition-all duration-300`} - /> - )} <Link |
