Skip to content

Commit

Permalink
add link for name to point to github url
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Feb 23, 2013
1 parent 9e5bf29 commit 8f871ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coffee/ghresume.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $.getJSON(api_url+username,
# avatar size: 170
avatar_url = "https://secure.gravatar.com/avatar/" + res.gravatar_id + "?size=170"
$("#avatar").attr("src", avatar_url)
$("#name").html(res.name)
$("#name").html("<a href=\"https://github.com/"+username+"\">"+res.name+"</a>")
if res.location
$("ul#user-info").append("
<li>
Expand Down
5 changes: 4 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ hr {
margin: 3% auto;
}
.container#user h1#name {
font-size: 200%;
font-size: 170%;
margin-bottom: 35px;
}
.container#user h1#name a {
font-size: 170%;
}
.container#user h1#name span {
font-size: 60%;
color: #999999;
Expand Down
2 changes: 1 addition & 1 deletion js/ghresume.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
document.title = res.login + "'s Resume";
avatar_url = "https://secure.gravatar.com/avatar/" + res.gravatar_id + "?size=170";
$("#avatar").attr("src", avatar_url);
$("#name").html(res.name);
$("#name").html("<a href=\"https://github.com/" + username + "\">" + res.name + "</a>");
if (res.location) {
$("ul#user-info").append(" <li> <i class=\"icon-map-marker icon-white\"></i> " + res.location + " </li> ");
}
Expand Down
5 changes: 4 additions & 1 deletion less/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// font size
@font-normal-size: 16px;
@line-height-normal: @font-normal-size + 5px;
@h1-size: 200%;
@h1-size: 170%;
@h2-size: 152%;
@h3-size: 130%;

Expand Down Expand Up @@ -121,6 +121,9 @@ hr{
h1#name{
font-size: @h1-size;
margin-bottom: 35px;
a{
font-size: @h1-size;
}
span{
font-size: 60%;
color: @light-gray;
Expand Down

0 comments on commit 8f871ee

Please sign in to comment.