import { Link } from 'next-view-transitions'; import { FiExternalLink } from 'react-icons/fi'; import type { RepoSummary } from '@/lib/github'; import { getLanguageColor } from '@/lib/github-lang-colors'; interface RepoCardProps { repo: RepoSummary; animationDelay?: number; } export function RepoCard({ repo, animationDelay = 0 }: RepoCardProps) { const langColor = getLanguageColor(repo.language); return (
  • 0 ? 'repo-card-enter' : ''}`} style={ animationDelay > 0 ? { animationDelay: `${animationDelay}ms` } : undefined } >
    {repo.name} {repo.stargazersCount > 0 && ( ★ {repo.stargazersCount} )}
    {repo.description && (

    {repo.description}

    )}
    {repo.language ?? '其他'} 更新於{' '} {repo.updatedAt ? new Date(repo.updatedAt).toLocaleDateString('zh-TW') : '未知'}
  • ); }