diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-12 18:33:30 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-12 18:33:30 +0700 |
| commit | ff27a8752df545554fcee1beb8acbb24011a040b (patch) | |
| tree | 694f6a929242760d281f873c6f65e126c0725196 | |
| parent | deaa4c5417bfb8b41d00b523e63e1b9b24a6ff76 (diff) | |
<MIqdad> mobile watermark
| -rw-r--r-- | src-migrate/modules/product-detail/components/ProductDetail.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index 388d2248..48270dee 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -152,6 +152,15 @@ const ProductDetail = ({ product }: Props) => { /> </div> )} + {isMobile && !hasPrice && ( + <div className='fixed inset-0 z-[50] flex items-center justify-center pointer-events-none select-none'> + <img + src='/images/produk_tidak_tersedia.svg' + alt='Produk tidak tersedia' + className='w-[100%] opacity-[75%] -translate-x-[2%]' + /> + </div> + )} <div className='md:flex md:flex-wrap'> <div className='w-full mb-4 md:mb-0 px-4 md:px-0'> |
