Skip to content

Commit 80f924f

Browse files
committed
#79-Added the Icons for the Language buttons
1 parent 89fd217 commit 80f924f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/LanguageButton.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import Link from 'next/link';
22
import Button from './Button';
33

44
function LanguageButton({ language }: { language: string }) {
5+
if (language == "HTML") {
6+
language="HTML5"
7+
}
8+
const url = `https://cdn.simpleicons.org/${language.toLowerCase()}/default`;
59
return (
610
<Link href={`/repos/${language.toLowerCase()}`}>
7-
<Button>{language}</Button>
11+
<Button>{language} <img className='ml-1 h-5 w-5' src={url} /></Button>
812
</Link>
913
);
1014
}

0 commit comments

Comments
 (0)