diff --git a/src/components/ToolCard.astro b/src/components/ToolCard.astro index e121f7c..2afa249 100644 --- a/src/components/ToolCard.astro +++ b/src/components/ToolCard.astro @@ -12,28 +12,27 @@ export interface Props { projectUrl?: string; license: string; tags: string[]; - isHosted: boolean; statusUrl?: string; }; } const { tool } = Astro.props; -// Determine card styling -const cardClass = tool.isHosted ? 'card card-hosted' : (tool.license !== 'Proprietary' ? 'card card-oss' : 'card'); - -// Check if tool has a valid project URL for hosted services +// Check if tool has a valid project URL (means we're hosting it) const hasValidProjectUrl = tool.projectUrl !== undefined && tool.projectUrl !== null && tool.projectUrl !== "" && tool.projectUrl.trim() !== ""; + +// Determine card styling based on hosting status (derived from projectUrl) +const cardClass = hasValidProjectUrl ? 'card card-hosted' : (tool.license !== 'Proprietary' ? 'card card-oss' : 'card'); ---
+ {tool.description} +
+- {tool.description} -
-{service.description}
- + Access Service →