Skip to content

Commit 00280ff

Browse files
update renderCard
1 parent 7ae6236 commit 00280ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/renderGithubCards.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function renderGithubCard(items, type) {
7373
} else if (type === 'code') {
7474
html += `
7575
<a href="${item.html_url}" target="_blank" rel="noopener noreferrer" class="repo-card rounded-xl p-6 shadow-md block hover:bg-gray-700 transition-colors duration-200">
76-
<img src="${item.avatar_url}" alt="Avatar" class="w-12 h-12 rounded-full object-cover" />
76+
<i class="fa-solid fa-code-branch text-3xl"></i>
7777
<h3 class="text-lg font-semibold text-white truncate">${item.name}</h3>
7878
<p class="text-gray-400 text-sm">Repo: ${item.repository.full_name}</p>
7979
<p class="text-gray-500 text-xs">Path: ${item.path}</p>
@@ -83,7 +83,7 @@ export function renderGithubCard(items, type) {
8383
} else if (type === 'issue') {
8484
html += `
8585
<a href="${item.html_url}" target="_blank" rel="noopener noreferrer" class="repo-card rounded-xl p-6 shadow-md block hover:bg-gray-700 transition-colors duration-200">
86-
<img src="${item.avatar_url}" alt="Avatar" class="w-12 h-12 rounded-full object-cover" />
86+
<i class="fa-solid fa-circle-question text-3xl"></i>
8787
<h3 class="text-lg font-semibold text-white truncate">${item.title}</h3>
8888
<p class="text-gray-400 text-sm">Repo: ${item.repository_url.split('/').slice(-2).join('/')}</p>
8989
<p class="text-gray-500 text-xs">Status: ${item.state}</p>

0 commit comments

Comments
 (0)