summaryrefslogtreecommitdiff
path: root/src/lib/product/components/CategorySection.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-03 08:34:16 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-03 08:34:16 +0700
commit6c79d14a11c8dba20778c0559230a406cd147cc7 (patch)
tree8f502876be081f4de3d420804d95e8a3cb67ada8 /src/lib/product/components/CategorySection.jsx
parent6b173eaf8a95432316822b1d41b084875adfbd83 (diff)
<iman> update category management
Diffstat (limited to 'src/lib/product/components/CategorySection.jsx')
-rw-r--r--src/lib/product/components/CategorySection.jsx22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/product/components/CategorySection.jsx b/src/lib/product/components/CategorySection.jsx
index 7c347fe8..c250efeb 100644
--- a/src/lib/product/components/CategorySection.jsx
+++ b/src/lib/product/components/CategorySection.jsx
@@ -1,20 +1,24 @@
import Image from "next/image"
+import Link from '@/core/components/elements/Link/Link'
+import { createSlug } from '@/core/utils/slug'
const CategorySection = ({ categories }) => {
return (
- <section className="items-center bg-danger-100">
- <div className="grid grid-cols-4 gap-2 w-full h-full col-span-2">
+ <section>
+ <div className="group/item grid grid-cols-5 gap-y-2 w-full h-full col-span-2 ">
{categories.map((category) => (
- <div class="max-w-sm w-fit gap-4 lg:max-w-full lg:flex bg-white px-4 py-2 border-2 border-gray_r-8 rounded-lg">
- <div className="flex items-center justify-center">
- <Image src='https://erp.indoteknik.com/api/image/product.template/image_256/544371?ratio=square' width={80} height={80} alt={category?.name} />
- </div>
- <div class="flex flex-col justify-center leading-normal">
- <h2 class="text-gray-900 font-bold text-sm">{category?.name}</h2>
+ <div className="KartuInti h-24 w-26 max-w-sm lg:max-w-full flex flex-col border-[1px] border-gray-200 relative group">
+ <div className='KartuB absolute h-48 w-60 inset-0 flex items-center justify-center '>
+ <div className="group/edit flex items-center justify-center h-48 w-60 flex-row group-hover/item:visible">
+ <div className=' h-36'>
+ <Image className="group-hover:scale-110 duration-300" src='https://erp.indoteknik.com/api/image/product.template/image_256/544371?ratio=square' width={36} height={26} alt={category?.name} />
+ </div>
+ <h2 className="text-gray-700 content-center text-wrap h-12 border-t-[1px] w-60 px-1 border-gray-200 font-normal text-sm text-center">{category?.name}</h2>
+ </div>
</div>
</div>
))}
- </div>
+ </div>
</section>
)
}