Jiseoup/showmycodePublic
EN|KO
  • 코드
  • 커밋
  • 풀 리퀘스트
← 목록으로

feat: display repository topics on home page

JiseoupJiseoup · 2026년 3월 31일a71858f

변경된 파일2개+15 -0

변경된 파일

+15 -0 · 2개

@@ -53,6 +53,20 @@ export function RepoCard({
</p>
)}
+ {/* 토픽 태그 */}
+ {repo.topics.length > 0 && (
+ <div className="flex items-center gap-1.5 mt-2 flex-wrap">
+ {repo.topics.map((topic) => (
+ <span
+ key={topic}
+ className="text-xs bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full px-2.5 py-0.5"
+ >
+ {topic}
+ </span>
+ ))}
+ </div>
+ )}
+
{/* 메타 정보 */}
<div className="flex items-center gap-4 mt-3 text-xs text-muted-foreground flex-wrap">
{langColor && repo.language && (
@@ -57,6 +57,7 @@ export type GhRepo = {
stargazers_count: number;
language: string | null;
updated_at: string;
+ topics: string[];
};
export type GhTreeItem = {