From be92f947cd4653a33bb04a9e6a362a2463d72367 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 27 Jan 2025 17:51:25 +0100 Subject: [PATCH] Update page.tsx --- frontend/src/app/category-view/page.tsx | 52 ++++++++++++++----------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/frontend/src/app/category-view/page.tsx b/frontend/src/app/category-view/page.tsx index 796365e5..1d5a9e91 100644 --- a/frontend/src/app/category-view/page.tsx +++ b/frontend/src/app/category-view/page.tsx @@ -139,15 +139,17 @@ const CategoryView = () => { -

{categories[selectedCategoryIndex].name}

+

+ {categories[selectedCategoryIndex].name} +

@@ -160,11 +162,13 @@ const CategoryView = () => { .map((script) => ( handleScriptClick(script.slug)} > -

{script.name}

+

+ {script.name} +

{script.name { Created at: {script.date_created || "No date available"}

{truncateDescription(script.description || "No description available.")} @@ -190,7 +194,7 @@ const CategoryView = () => { @@ -210,10 +214,12 @@ const CategoryView = () => { handleCategoryClick(index)} - className="cursor-pointer hover:shadow-lg flex flex-col items-center justify-center py-6" + className="cursor-pointer hover:shadow-lg flex flex-col items-center justify-center py-6 transition-shadow duration-300" > -

{category.name}

+

+ {category.name} +

@@ -229,17 +235,19 @@ const CategoryView = () => { category.scripts .slice(logoIndices[category.name] || 0, (logoIndices[category.name] || 0) + MAX_LOGOS) .map((script, i) => ( - {script.name { - e.stopPropagation(); - handleScriptClick(script.slug); - }} - /> +
+ {script.name { + e.stopPropagation(); + handleScriptClick(script.slug); + }} + /> + {formattedBadge(script.type)} +
))}