added link to GH profile in username block + styling (#59)

This commit is contained in:
Benjamin Liden 2019-05-26 06:01:48 -04:00 committed by imfunny
parent cb5bba6ba0
commit de728e75bd
2 changed files with 5 additions and 3 deletions

View File

@ -240,13 +240,15 @@ body{
font-family: 'Questrial', sans-serif;
}
#about a {
#about a,
#username a {
color:#fff !important;
text-decoration:none;
font-weight:bold;
}
#about a:hover {
#about a:hover,
#username a:hover {
text-decoration:underline;
}

View File

@ -106,7 +106,7 @@ module.exports.updateHTML = (username, sort, order, includeFork) => {
icon.setAttribute("type", "image/png");
document.getElementsByTagName("head")[0].appendChild(icon);
document.getElementById("profile_img").style.background = `url('${user.avatar_url}') center center`
document.getElementById("username").innerHTML = `<span style="display:${user.name == null || !user.name ? 'none' : 'block'};">${user.name}</span>@${user.login}`;
document.getElementById("username").innerHTML = `<span style="display:${user.name == null || !user.name ? 'none' : 'block'};">${user.name}</span><a href="${user.html_url}">@${user.login}</a>`;
//document.getElementById("github_link").href = `https://github.com/${user.login}`;
document.getElementById("userbio").innerHTML = convertToEmoji(user.bio);
document.getElementById("userbio").style.display = user.bio == null || !user.bio ? 'none' : 'block';