Keep the space in the front-page headline on phones
index.html had new<br>office, and home.css hides the <br> at narrow widths, so phones read "Open your newoffice suite." Reviewed by Fable 5.1 on #72; merged without green hub CI (runner 429s) on Paul's instruction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from fix/r1-phone-headline into main.
2 files changed,
+17
−1
internal/home/page_test.go+16 −0internal/home/static/site/index.html+1 −1
CI failed — run details
CI log
amadan: .amadan/timeout: this job's budget is 15m0s (this runner allows up to 30m0s) === vet === CGO_ENABLED=0 go vet ./... go: downloading amadan.net/carlos/platform.git/launchctx v0.0.0-20260911135504-fb577f96f7d1 go: downloading amadan.net/oficina/estilo.git v0.0.0-20260911182719-0bcb9287988d internal/home/credits.go:8:2: amadan.net/oficina/estilo.git@v0.0.0-20260911182719-0bcb9287988d: invalid version: git fetch -f --end-of-options origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/paulca/.local/state/amadan/runner/repos/oficina__home/cache/go-mod/cache/vcs/bf4984e7a537af013cffcd0a654026b503a4e1566cddf740e3c37d2f6ae937e4: exit status 128: fatal: unable to access 'https://amadan.net/oficina/estilo/': The requested URL returned error: 429 internal/home/app.go:25:2: amadan.net/oficina/estilo.git@v0.0.0-20260911182719-0bcb9287988d: invalid version: git fetch -f --end-of-options origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /home/paulca/.local/state/amadan/runner/repos/oficina__home/cache/go-mod/cache/vcs/bf4984e7a537af013cffcd0a654026b503a4e1566cddf740e3c37d2f6ae937e4: exit status 128: fatal: unable to access 'https://amadan.net/oficina/estilo/': The requested URL returned error: 429 internal/operator/command_linux.go:10:2: amadan.net/carlos/platform.git/launchctx@v0.0.0-20260911135504-fb577f96f7d1: invalid version: git ls-remote -q --end-of-options origin in /home/paulca/.local/state/amadan/runner/repos/oficina__home/cache/go-mod/cache/vcs/55cd75de7b117f7c5cd43edfd800f8d47521af42d6b939d46f385b6d34c14c9a: exit status 128: error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429 fatal: expected flush after ref listing internal/operator/command_linux.go:11:2: amadan.net/carlos/platform.git/launchctx@v0.0.0-20260911135504-fb577f96f7d1: invalid version: git ls-remote -q --end-of-options origin in /home/paulca/.local/state/amadan/runner/repos/oficina__home/cache/go-mod/cache/vcs/55cd75de7b117f7c5cd43edfd800f8d47521af42d6b939d46f385b6d34c14c9a: exit status 128: error: RPC failed; HTTP 429 curl 22 The requested URL returned error: 429 fatal: expected flush after ref listing make: *** [Makefile:69: test-vet] Error 1 amadan: step vet failed: exit status 2 amadan: job failed at step vet — its output is above, not at the tail of this log
diff --git a/internal/home/page_test.go b/internal/home/page_test.go| new file mode 100644 |
| index 0000000..f2d9cc3 |
| --- /dev/null |
| +++ b/internal/home/page_test.go |
| @@ -0,0 +1,16 @@ |
| +package home |
| + |
| +import ( |
| + "regexp" |
| + "testing" |
| +) |
| + |
| +// TestFrontPageLineBreaksKeepTheirSpace: home.css hides the hero's <br> on |
| +// narrow screens, so a <br> glued to words on both sides runs them together |
| +// there — "Open your newoffice suite." on every phone (polish audit, round |
| +// 1). Every <br> on the front page needs whitespace on at least one side. |
| +func TestFrontPageLineBreaksKeepTheirSpace(t *testing.T) { |
| + if glued := regexp.MustCompile(`\S<br\s*/?>\S`).FindAll(indexPage, -1); len(glued) > 0 { |
| + t.Fatalf("front page has <br> with no whitespace beside it: %q", glued) |
| + } |
| +} |
diff --git a/internal/home/static/site/index.html b/internal/home/static/site/index.html| index eb32f05..abce94e 100644 |
| --- a/internal/home/static/site/index.html |
| +++ b/internal/home/static/site/index.html |
| @@ -32,7 +32,7 @@ |
| <!-- ───────── Hero: the lobby directory ───────── --> |
| <section class="band band-ink hero"> |
| <div class="shell"> |
| - <h1 class="hero-h">Open your new<br>office suite.</h1> |
| + <h1 class="hero-h">Open your new<br> office suite.</h1> |
| <p class="hero-lead">Oficina is fast, modern and light enough to forget it’s running. |
| Six apps that share one account, in the browser or as real native apps — |
| with your team’s work sealed inside your team’s own instance.</p> |