[PR #2274] [CLOSED] Website: Sculk partner banner on Home and the hosting docs #4167

Closed
opened 2026-11-03 04:15:10 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2274
Author: @ludovic111
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: feat/sculk-banner


📝 Commits (1)

  • e19905c website: Sculk partner banner on Home and the hosting docs

📊 Changes

5 files changed (+20 additions, -2 deletions)

View changed files

📝 website/build.mjs (+6 -0)
➕ website/public/media/sculk-banner.webp (+0 -0)
📝 website/src/docs.html (+1 -0)
📝 website/src/index.html (+2 -0)
📝 website/src/style.css (+11 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What

A sponsor banner Ludovic asked for: Sculk (server hosting, promo code HORIZON15) on playhorizon.dev.

  • Home: between the launcher section (which ends on hosting a server from the Servers page) and Releases, centred, max 880 px.
  • Docs, Host a server (/docs/hosting): under the lede and the page's table of contents.
  • A plain link: <a href="https://my.sculkhosting.com/ref/horizon" target="_blank" rel="sponsored noopener">, with a muted mono Partner label above it so players see it is an ad. Alt text names Sculk and the code HORIZON15.
  • The image is served from website/public/media/sculk-banner.webp: 1600×588 WebP, 70 KB, made from Sculk's 2000×734 PNG (1.4 MB, not committed). No script, no tracking pixel, nothing remote; the CSP needs no change.
  • Scales with its column (width: 100%; height: auto), so it fits on phones. Hover lifts it 2 px and brightens it a little; reduced motion keeps only the brightness.

The launcher's banner is a separate PR, so this one can ship with the website split.

How tested

  • node build.mjs and npm test (node --test src/ scripts/): pass. The banner is in dist/index.html and dist/docs/hosting.html only.
  • Looked at it in headless Chromium: Home and the hosting docs in dark and light at 1300 px, and both pages in a 360 px frame (no overflow).
  • tools/check_public_tree.py passes (the image is Sculk's ad, not a Mojang file).

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at d48e56778, 1 s)

Check Result
Scope ✅ 5 files, +20 −2
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ➖ no Python change
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label skip-release

Needs Ludovic

Nothing. Label skip-release: website only, nothing in the game or the launcher changes.

🤖 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/2274 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/sculk-banner` --- ### 📝 Commits (1) - [`e19905c`](https://github.com/horizon-rust/horizon/commit/e19905c991d12a47ec033e27e135869d88e1ce60) website: Sculk partner banner on Home and the hosting docs ### 📊 Changes **5 files changed** (+20 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `website/build.mjs` (+6 -0) ➕ `website/public/media/sculk-banner.webp` (+0 -0) 📝 `website/src/docs.html` (+1 -0) 📝 `website/src/index.html` (+2 -0) 📝 `website/src/style.css` (+11 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What A sponsor banner Ludovic asked for: Sculk (server hosting, promo code HORIZON15) on playhorizon.dev. - **Home:** between the launcher section (which ends on hosting a server from the Servers page) and Releases, centred, max 880 px. - **Docs, Host a server (`/docs/hosting`):** under the lede and the page's table of contents. - A plain link: `<a href="https://my.sculkhosting.com/ref/horizon" target="_blank" rel="sponsored noopener">`, with a muted mono **Partner** label above it so players see it is an ad. Alt text names Sculk and the code HORIZON15. - The image is served from `website/public/media/sculk-banner.webp`: 1600×588 WebP, 70 KB, made from Sculk's 2000×734 PNG (1.4 MB, not committed). No script, no tracking pixel, nothing remote; the CSP needs no change. - Scales with its column (`width: 100%; height: auto`), so it fits on phones. Hover lifts it 2 px and brightens it a little; reduced motion keeps only the brightness. The launcher's banner is a separate PR, so this one can ship with the website split. ## How tested - `node build.mjs` and `npm test` (`node --test src/ scripts/`): pass. The banner is in `dist/index.html` and `dist/docs/hosting.html` only. - Looked at it in headless Chromium: Home and the hosting docs in dark and light at 1300 px, and both pages in a 360 px frame (no overflow). - `tools/check_public_tree.py` passes (the image is Sculk's ad, not a Mojang file). **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at d48e56778, 1 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +20 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ➖ no Python change | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | `skip-release` | ## Needs Ludovic Nothing. Label `skip-release`: website only, nothing in the game or the launcher changes. 🤖 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-03 04:15:10 +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#4167
No description provided.