Update page.tsx

This commit is contained in:
CanbiZ 2025-01-27 17:44:49 +01:00 committed by GitHub
parent 4de8c1c358
commit c3a21069d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,13 +15,13 @@ const MAX_LOGOS = 5; // Max logos to display at once
const formattedBadge = (type: string) => { const formattedBadge = (type: string) => {
switch (type) { switch (type) {
case "vm": case "vm":
return <Badge className="text-blue-500/75 border-blue-500/75">VM</Badge>; return <Badge className="text-blue-500/75 border-blue-500/75 badge">VM</Badge>;
case "ct": case "ct":
return ( return (
<Badge className="text-yellow-500/75 border-yellow-500/75">LXC</Badge> <Badge className="text-yellow-500/75 border-yellow-500/75 badge">LXC</Badge>
); );
case "misc": case "misc":
return <Badge className="text-green-500/75 border-green-500/75">MISC</Badge>; return <Badge className="text-green-500/75 border-green-500/75 badge">MISC</Badge>;
} }
return null; return null;
}; };
@ -173,6 +173,11 @@ const CategoryView = () => {
> >
{truncateDescription(script.description || "No description available.")} {truncateDescription(script.description || "No description available.")}
</p> </p>
<img
src={script.logo || defaultLogo}
alt={script.name || "Script logo"}
className="h-16 w-16 object-contain mx-auto mt-4"
/>
{renderResources(script)} {renderResources(script)}
</CardContent> </CardContent>
</Card> </Card>