Skip to content

Commit c3a2106

Browse files
authored
Update page.tsx
1 parent 4de8c1c commit c3a2106

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

frontend/src/app/category-view/page.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const MAX_LOGOS = 5; // Max logos to display at once
1515
const formattedBadge = (type: string) => {
1616
switch (type) {
1717
case "vm":
18-
return <Badge className="text-blue-500/75 border-blue-500/75">VM</Badge>;
18+
return <Badge className="text-blue-500/75 border-blue-500/75 badge">VM</Badge>;
1919
case "ct":
2020
return (
21-
<Badge className="text-yellow-500/75 border-yellow-500/75">LXC</Badge>
21+
<Badge className="text-yellow-500/75 border-yellow-500/75 badge">LXC</Badge>
2222
);
2323
case "misc":
24-
return <Badge className="text-green-500/75 border-green-500/75">MISC</Badge>;
24+
return <Badge className="text-green-500/75 border-green-500/75 badge">MISC</Badge>;
2525
}
2626
return null;
2727
};
@@ -173,6 +173,11 @@ const CategoryView = () => {
173173
>
174174
{truncateDescription(script.description || "No description available.")}
175175
</p>
176+
<img
177+
src={script.logo || defaultLogo}
178+
alt={script.name || "Script logo"}
179+
className="h-16 w-16 object-contain mx-auto mt-4"
180+
/>
176181
{renderResources(script)}
177182
</CardContent>
178183
</Card>

0 commit comments

Comments
 (0)