From 6c79d14a11c8dba20778c0559230a406cd147cc7 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 3 Jul 2024 08:34:16 +0700
Subject: <iman> update category management

---
 src/lib/product/components/CategorySection.jsx | 22 +++++++++++++---------
 1 file changed, 13 insertions(+), 9 deletions(-)

(limited to 'src/lib/product/components/CategorySection.jsx')

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>
     )
 }
-- 
cgit v1.2.3

