Detail and List card update

This commit is contained in:
2025-11-27 15:56:21 +03:00
parent 602065a71c
commit 5222cceb81
7 changed files with 308 additions and 26 deletions

View File

@@ -6,8 +6,8 @@ import gitlabLogo from "../assets/gitlab.png";
export function RepoIcon({ repoUrl }: { repoUrl: string }) {
const lower = repoUrl.toLowerCase();
if (lower.includes("github.com")) return <FontAwesomeIcon icon={faGithub} className="h-5 w-5 text-foreground" />;
if (lower.includes("gitlab")) return <img src={gitlabLogo} alt="GitLab" className="h-5 w-5 object-contain" />;
if (lower.includes("gitea")) return <img src={giteaLogo} alt="Gitea" className="h-5 w-5 object-contain" />;
return <FontAwesomeIcon icon={faCodeBranch} className="h-5 w-5 text-foreground" />;
if (lower.includes("github.com")) return <FontAwesomeIcon icon={faGithub} className="h-6 w-6 text-foreground" />;
if (lower.includes("gitlab")) return <img src={gitlabLogo} alt="GitLab" className="h-6 w-6 object-contain" />;
if (lower.includes("gitea")) return <img src={giteaLogo} alt="Gitea" className="h-6 w-6 object-contain" />;
return <FontAwesomeIcon icon={faCodeBranch} className="h-6 w-6 text-foreground" />;
}