mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
added link to GH profile in username block + styling (#59)
This commit is contained in:
parent
cb5bba6ba0
commit
de728e75bd
2 changed files with 5 additions and 3 deletions
|
@ -240,13 +240,15 @@ body{
|
||||||
font-family: 'Questrial', sans-serif;
|
font-family: 'Questrial', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
#about a {
|
#about a,
|
||||||
|
#username a {
|
||||||
color:#fff !important;
|
color:#fff !important;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
#about a:hover {
|
#about a:hover,
|
||||||
|
#username a:hover {
|
||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ module.exports.updateHTML = (username, sort, order, includeFork) => {
|
||||||
icon.setAttribute("type", "image/png");
|
icon.setAttribute("type", "image/png");
|
||||||
document.getElementsByTagName("head")[0].appendChild(icon);
|
document.getElementsByTagName("head")[0].appendChild(icon);
|
||||||
document.getElementById("profile_img").style.background = `url('${user.avatar_url}') center center`
|
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("github_link").href = `https://github.com/${user.login}`;
|
||||||
document.getElementById("userbio").innerHTML = convertToEmoji(user.bio);
|
document.getElementById("userbio").innerHTML = convertToEmoji(user.bio);
|
||||||
document.getElementById("userbio").style.display = user.bio == null || !user.bio ? 'none' : 'block';
|
document.getElementById("userbio").style.display = user.bio == null || !user.bio ? 'none' : 'block';
|
||||||
|
|
Loading…
Reference in a new issue