- Loading star history... -
+{t('loading')}
- GitHub Star History + {t('title')}
- Star growth trend over time + {t('description')}
- Note: Displaying sample data. Star history API temporarily unavailable. + {t('fallbackNote')}
)} diff --git a/src/components/product/LinkCard.tsx b/src/components/product/LinkCard.tsx index 96b6457..95cb9f5 100644 --- a/src/components/product/LinkCard.tsx +++ b/src/components/product/LinkCard.tsx @@ -6,7 +6,7 @@ */ interface LinkCardProps { - href: string + href?: string | null title: string description: string layout?: 'horizontal' | 'vertical' @@ -17,6 +17,30 @@ interface LinkCardProps { */ export function LinkCard({ href, title, description, layout = 'horizontal' }: LinkCardProps) { const isHorizontal = layout === 'horizontal' + const hasHref = href && href.trim().length > 0 + + if (!hasHref) { + return ( +{title}
+{description}
+{title}
+{description}
+ > + )} +- {title} -
--
- {links.map(
- ({ key, url, label }) =>
- url && (
-
- - - → {label} - - - ) - )} -