Website: add a Contributors block to the community section
Lists the GitHub contributors of ludovic111/horizon (bots left out, the owner first) with avatar, login, commit count and a link to the profile. Built in by build.mjs like the releases (the build still succeeds when GitHub does not answer, and the block stays hidden until the page loads it) and refreshed by the page from the API. Adds a nav and menu entry, lets avatars.githubusercontent.com through img-src, and updates the README, LEGAL.md and the privacy note. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -58,6 +58,7 @@ p { margin: 0; }
|
||||
|
||||
a { color: var(--accent-text); text-decoration: none; transition: color var(--quick) var(--ease); }
|
||||
a:hover { color: var(--text); }
|
||||
[hidden] { display: none !important; }
|
||||
/* Links inside running text are underlined, so they don't rely on colour alone. */
|
||||
p a:not(.button):not(.link-arrow) { text-decoration: underline; text-decoration-color: rgba(164, 138, 230, 0.45); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
||||
p a:not(.button):not(.link-arrow):hover { text-decoration-color: currentColor; }
|
||||
@@ -561,6 +562,23 @@ code {
|
||||
.card:hover .card-arrow { transform: translateX(6px); color: var(--accent-text); }
|
||||
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
|
||||
|
||||
.contributors { margin-top: clamp(64px, 8vw, 112px); }
|
||||
.contributors-title { font: 400 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -0.015em; color: var(--text); }
|
||||
.contributors-text { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 46ch; }
|
||||
.contributors-list {
|
||||
display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 32px;
|
||||
list-style: none; margin-top: clamp(24px, 3vw, 36px); padding: 0;
|
||||
}
|
||||
.contributors-list li { border-top: 1px solid var(--border); }
|
||||
.contributor {
|
||||
display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
|
||||
min-height: 44px; padding: 20px 0; color: var(--text);
|
||||
}
|
||||
.contributor-avatar { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 50%; background: var(--raised); border: 1px solid var(--border); object-fit: cover; }
|
||||
.contributor-name { align-self: end; font-size: 16px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; transition: color var(--quick) var(--ease); }
|
||||
.contributor-count { align-self: start; font: 12px/1.7 var(--mono); color: var(--faint); }
|
||||
.contributor:hover .contributor-name { color: var(--accent-text); }
|
||||
|
||||
/* --- Footer ------------------------------------------------------------------------- */
|
||||
|
||||
.footer { margin-top: clamp(112px, 14vw, 200px); border-top: 1px solid var(--border); padding-top: clamp(64px, 8vw, 104px); overflow: hidden; }
|
||||
|
||||
Reference in New Issue
Block a user