diff --git a/frontend/src/app/category-view/page.tsx b/frontend/src/app/category-view/page.tsx index fc490308..2d2e198b 100644 --- a/frontend/src/app/category-view/page.tsx +++ b/frontend/src/app/category-view/page.tsx @@ -78,26 +78,28 @@ const CategoryView = () => { onClick={() => handleScriptClick(script.slug)} > -
+
+

{script.name}

+

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

+
+
{script.name} -
-

{script.name}

-

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

-

- {truncateDescription(script.description || "No description available.")} -

-
-
- CPU: {script.install_methods[0]?.resources.cpu || "N/A"}vCPU |{" "} - RAM: {script.install_methods[0]?.resources.ram || "N/A"}MB |{" "} - HDD: {script.install_methods[0]?.resources.hdd || "N/A"}GB +
+

+ {truncateDescription(script.description || "No description available.")} +

+
+ CPU: {script.install_methods[0]?.resources.cpu || "N/A"}vCPU |{" "} + RAM: {script.install_methods[0]?.resources.ram || "N/A"}MB |{" "} + HDD: {script.install_methods[0]?.resources.hdd || "N/A"}GB +
@@ -120,6 +122,7 @@ const CategoryView = () => { className="cursor-pointer hover:shadow-lg flex flex-col items-center justify-center" > +

{category.name}

{category.scripts && getRandomScripts(category.scripts).map((script, index) => ( @@ -131,7 +134,6 @@ const CategoryView = () => { /> ))}
-

{category.name}

{(category as any).description || "No description available."}