[PR #57] [MERGED] Website: add a Contributors block to the community section #2305

Closed
opened 2026-11-02 15:54:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/57
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: website/contributors


📝 Commits (1)

  • 2b7c722 Website: add a Contributors block to the community section

📊 Changes

8 files changed (+116 additions, -13 deletions)

View changed files

📝 website/Caddyfile (+1 -1)
📝 website/LEGAL.md (+7 -0)
📝 website/README.md (+8 -4)
📝 website/build.mjs (+21 -5)
➕ website/src/contributors.js (+39 -0)
📝 website/src/index.html (+8 -1)
📝 website/src/main.js (+14 -2)
📝 website/src/style.css (+18 -0)

📄 Description

Adds a Contributors block under the Discord/Sponsor/Source cards on playhorizon.dev.

  • Data: GET /repos/ludovic111/horizon/contributors, bots (type Bot or login ending in [bot]) excluded, owner first. Today: ludovic111 (1,125 commits) and Online5277 (7).
  • Each entry: avatar (avatars.githubusercontent.com, s=96, lazy, width/height set), login, commit count, linked to the GitHub profile. Everything is escaped.
  • Built in by build.mjs like the releases; if GitHub doesn't answer the build still succeeds (checked offline) and the block and its nav/menu entries stay hidden until the page loads the list. The page refreshes it from the API (10-minute session cache) and falls back to the baked list.
  • Shared markup/filtering in src/contributors.js, used by build and page.
  • "Contributors" added to the nav and the phone menu (scroll-spy ignores hidden sections).
  • Caddyfile: img-src now allows https://avatars.githubusercontent.com (connect-src already had api.github.com).
  • README (What comes from where), LEGAL.md and the footer privacy note updated.

Checked: build, serve.mjs, no console errors or failed requests, no horizontal overflow, scripts/shots.mjs clean at 360/768/1440.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/57 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `website/contributors` --- ### 📝 Commits (1) - [`2b7c722`](https://github.com/horizon-rust/horizon/commit/2b7c72255c968efc23d28a5b0b14fb58025076df) Website: add a Contributors block to the community section ### 📊 Changes **8 files changed** (+116 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `website/Caddyfile` (+1 -1) 📝 `website/LEGAL.md` (+7 -0) 📝 `website/README.md` (+8 -4) 📝 `website/build.mjs` (+21 -5) ➕ `website/src/contributors.js` (+39 -0) 📝 `website/src/index.html` (+8 -1) 📝 `website/src/main.js` (+14 -2) 📝 `website/src/style.css` (+18 -0) </details> ### 📄 Description Adds a **Contributors** block under the Discord/Sponsor/Source cards on playhorizon.dev. - Data: `GET /repos/ludovic111/horizon/contributors`, bots (type `Bot` or login ending in `[bot]`) excluded, owner first. Today: ludovic111 (1,125 commits) and Online5277 (7). - Each entry: avatar (`avatars.githubusercontent.com`, `s=96`, lazy, width/height set), login, commit count, linked to the GitHub profile. Everything is escaped. - Built in by `build.mjs` like the releases; if GitHub doesn't answer the build still succeeds (checked offline) and the block and its nav/menu entries stay hidden until the page loads the list. The page refreshes it from the API (10-minute session cache) and falls back to the baked list. - Shared markup/filtering in `src/contributors.js`, used by build and page. - "Contributors" added to the nav and the phone menu (scroll-spy ignores hidden sections). - Caddyfile: `img-src` now allows `https://avatars.githubusercontent.com` (`connect-src` already had `api.github.com`). - README (What comes from where), LEGAL.md and the footer privacy note updated. Checked: build, `serve.mjs`, no console errors or failed requests, no horizontal overflow, `scripts/shots.mjs` clean at 360/768/1440. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:54:47 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2305
No description provided.