Skip to content

Commit

Permalink
Merge pull request #352 from amin-xiv/add-contributions-link
Browse files Browse the repository at this point in the history
Added links to the contributions of the contributor.
  • Loading branch information
multiverseweb authored Nov 18, 2024
2 parents 1630490 + f2a9665 commit 0d10c78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion website/scripts/contributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function renderContributors(contributors) {
<img src="${contributor.avatar_url}" alt="${contributor.login}">
<h3>${contributor.login}</h3>
<p>${contributor.type}</p>
<div class="contributions">${contributor.contributions} contributions</div>
<a href="https://github.com/multiverseweb/dataverse/commits?author=${contributor.login}" target="_blank"><div class="contributions">${contributor.contributions} contributions</div></a>
<div class="footer">
<a href="${contributor.html_url}" target="_blank" rel="noopener noreferrer">
${getIcon('external-link')}
Expand Down
9 changes: 9 additions & 0 deletions website/styles/contributor.css
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ body {
margin-bottom: 1rem;
}

.contributor-card a {
color: #1e1e1e;
transition: color 0.15s ease-in;
}

.contributor-card a:hover {
color: #000000;
}

.contributor-card .contributions {
background-color: #dddddd;
padding: 0.5rem 1rem;
Expand Down

0 comments on commit 0d10c78

Please sign in to comment.