Make the blog attribute a link (#56)

* Make the blog a link

* actual link text

* Make the CSS style the link
This commit is contained in:
Jens Reidel 2019-05-23 15:54:50 +02:00 committed by imfunny
parent cbd7aeb88d
commit 88b29ab754
2 changed files with 12 additions and 2 deletions

View File

@ -240,6 +240,16 @@ body{
font-family: 'Questrial', sans-serif;
}
#about a {
color:#fff !important;
text-decoration:none;
font-weight:bold;
}
#about a:hover {
text-decoration:underline;
}
#about span {
margin:1vh 0px;
display:block;
@ -434,4 +444,4 @@ body{
::-webkit-scrollbar {width:5px;height:5px;}
::-webkit-scrollbar-track {background:var(--bg-color);}
::-webkit-scrollbar-thumb {background:var(--text-color);}
::-webkit-scrollbar-thumb {background:var(--text-color);}

View File

@ -112,7 +112,7 @@ module.exports.updateHTML = (username, sort, order, includeFork) => {
document.getElementById("about").innerHTML = `
<span style="display:${user.company == null || !user.company ? 'none' : 'block'};"><i class="fas fa-users"></i> &nbsp; ${user.company}</span>
<span style="display:${user.email == null || !user.email ? 'none' : 'block'};"><i class="fas fa-envelope"></i> &nbsp; ${user.email}</span>
<span style="display:${user.blog == null || !user.blog ? 'none' : 'block'};"><i class="fas fa-link"></i> &nbsp; ${user.blog}</span>
<span style="display:${user.blog == null || !user.blog ? 'none' : 'block'};"><i class="fas fa-link"></i> &nbsp; <a href="${user.blog}">${user.blog}</a></span>
<span style="display:${user.location == null || !user.location ? 'none' : 'block'};"><i class="fas fa-map-marker-alt"></i> &nbsp;&nbsp; ${user.location}</span>
<span style="display:${user.hireable == false || !user.hireable ? 'none' : 'block'};"><i class="fas fa-user-tie"></i> &nbsp;&nbsp; Available for hire</span>`;
//add data to config.json