Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 6da48d8

Browse files
committed
Made the text in contributors.md white so it matches the theme better.
The links are now underlined when hovered to show that there are links. Fixed a HTML error that has been in contributors.md (</p> without <p>)
1 parent fb2257d commit 6da48d8

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

docs/contributors.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
1+
<style>
2+
a.contributorlink:hover {
3+
text-decoration-style: solid;
4+
text-decoration-line: underline;
5+
text-decoration-color: white;
6+
}
7+
</style>
8+
19
<script type="text/javascript">
210
fetch('https://api.github.com/repos/codeoverflow-org/nodecg-io/contributors').then(response => {
311
response.json().then(data => {
412
let idx = 1
513
data.forEach(entry => {
614
const div = document.createElement('div')
7-
div.style = `grid-column: 1; grid-row: ${idx}; display: inline-block `
15+
div.style = `grid-column: 1; grid-row: ${idx}; display: inline-block; padding-bottom: 10px`
816
if ('avatar_url' in entry) {
917
div.innerHTML = `
1018
<img src="${entry.avatar_url}" width="64" height="64" style="float: left; margin-top: 0">
1119
<div style="float:left; margin-top: 0">
12-
<span style="font-size: 16pt; font-weight: bold; margin-left: 1em;"><a href="${entry.html_url}" style="color: black;">${entry.login}</a></span><br>
13-
<span style="font-size: 12pt; margin-left: 1em;"><a href="https://github.com/codeoverflow-org/nodecg-io/commits?author=${entry.login}" style="color: black;">${entry.contributions} contributions</a></p>
20+
<span style="font-size: 16pt; font-weight: bold; margin-left: 1em; color: white;">
21+
<a style="color: white;" class="contributorlink" href="${entry.html_url}">${entry.login}</a>
22+
</span><br>
23+
<span style="font-size: 12pt; margin-left: 1em; color: white;">
24+
<a style="color: white;" class="contributorlink" href="https://github.com/codeoverflow-org/nodecg-io/commits?author=${entry.login}">${entry.contributions} contributions</a>
25+
</span>
1426
</div>
1527
`
1628
} else {
1729
div.innerHTML = `
18-
<span style="font-size: 16pt; font-weight: bold; margin-left: 1em;">${entry.login}</span><br>
19-
<span style="font-size: 12pt; margin-left: 1em;">${entry.contributions} contributions</p>
30+
<span style="font-size: 16pt; font-weight: bold; margin-left: 1em; color: white;">${entry.login}</span><br>
31+
<span style="font-size: 12pt; margin-left: 1em; color: white;">${entry.contributions} contributions</span>
2032
`
2133
}
2234
document.getElementById('contributorview').appendChild(div)

0 commit comments

Comments
 (0)