Jiseoup/showmycodePublic
EN|KO
  • Code
  • Commits
  • Pull Requests
← Back to list

Merge pull request #2 from Jiseoup/feat/repo-topics

feat: display repository topics on home page

JiseoupJISUB LIM · Mar 31, 20269c90615

Files changed2+15 -0

Changed files

+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 = {