diff --git a/components/landing-page/content-category.tsx b/components/landing-page/content-category.tsx index 6277b169..2212cff2 100644 --- a/components/landing-page/content-category.tsx +++ b/components/landing-page/content-category.tsx @@ -72,7 +72,7 @@ const ContentCategory = (props: { group?: string; type: string }) => { )}
- {(seeAllValue ? categories : categories?.slice(0, 8))?.map((category: any) => ( + {(seeAllValue ? categories : categories?.slice(0, 4))?.map((category: any) => (
router.push(`${prefixPath}all/filter?category=${category?.id}`)} className="cursor-pointer relative group rounded-md overflow-hidden shadow-md hover:shadow-lg block"> {/* Gambar */} @@ -98,7 +98,7 @@ const ContentCategory = (props: { group?: string; type: string }) => {
{/* Tombol See More / See Less */} - {categories?.length > 8 && ( + {categories?.length > 4 && (
{" "} + {" "} */} + {/* Tombol See More / See Less */} + {content?.length > 3 && ( +
+ +
+ )}
@@ -175,9 +190,9 @@ const ScrollableContent = () => {
- {content + {/* {seeAllValue ? content : content ?.filter((item: any) => item.isPublishOnPolda === true) - .slice(0, 4) + .slice(0, 3) .map((item: any, index: number) => (
@@ -212,15 +227,75 @@ const ScrollableContent = () => {

{htmlToString(item.description)}

- ))} - + */} + {(seeAllValueSatker ? content : content?.slice(0, 3))?.map((item: any, index: number) => ( +
+
+ + {item?.title} +
+ + + + + + +
+ +
+ {/* */} +
+

{item.categoryName}

+

{item.title}

+

{htmlToString(item.description)}

+
+
+ ))} + {/* Tombol See More / See Less */} + {content?.length > 3 && ( +
+ +
+ )}