diff options
| author | tri.susilo <tri.susilo@altama.co.id> | 2024-05-08 14:47:11 +0700 |
|---|---|---|
| committer | tri.susilo <tri.susilo@altama.co.id> | 2024-05-08 14:47:11 +0700 |
| commit | 6b173eaf8a95432316822b1d41b084875adfbd83 (patch) | |
| tree | a979594bb1986c230f24566d2c79d8b6669ef3a9 /src/lib/product/components/CategorySection.jsx | |
| parent | d169ea22f8823f1bd9a94614ae2529677e0688ab (diff) | |
[agnes] - Feature category management
Diffstat (limited to 'src/lib/product/components/CategorySection.jsx')
| -rw-r--r-- | src/lib/product/components/CategorySection.jsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/product/components/CategorySection.jsx b/src/lib/product/components/CategorySection.jsx new file mode 100644 index 00000000..7c347fe8 --- /dev/null +++ b/src/lib/product/components/CategorySection.jsx @@ -0,0 +1,22 @@ +import Image from "next/image" + +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"> + {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> + </div> + ))} + </div> + </section> + ) +} + +export default CategorySection
\ No newline at end of file |
