diff --git a/src/components/ToolCard.astro b/src/components/ToolCard.astro index 81d5351..5da266b 100644 --- a/src/components/ToolCard.astro +++ b/src/components/ToolCard.astro @@ -21,8 +21,10 @@ export interface Props { const { tool } = Astro.props; -// Check if this is a method vs software + +// Check types const isMethod = tool.type === 'method'; +const isConcept = tool.type === 'concept'; // Check if tool has a valid project URL (means we're hosting it) const hasValidProjectUrl = tool.projectUrl !== undefined && @@ -34,7 +36,8 @@ const hasValidProjectUrl = tool.projectUrl !== undefined && const hasKnowledgebase = tool.knowledgebase === true; // Determine card styling based on type and hosting status -const cardClass = isMethod ? 'card card-method tool-card' : +const cardClass = isConcept ? 'card card-concept tool-card' : + isMethod ? 'card card-method tool-card' : hasValidProjectUrl ? 'card card-hosted tool-card' : (tool.license !== 'Proprietary' ? 'card card-oss tool-card' : 'card tool-card'); --- @@ -99,9 +102,14 @@ const cardClass = isMethod ? 'card card-method tool-card' : ))} - +