Skip to content

fix(web): always-visible wordmark in navbar#123

Merged
themightychris merged 2 commits into
mainfrom
fix/mobile-navbar-home-link
Jun 1, 2026
Merged

fix(web): always-visible wordmark in navbar#123
themightychris merged 2 commits into
mainfrom
fix/mobile-navbar-home-link

Conversation

@themightychris
Copy link
Copy Markdown
Member

Summary

On mobile the navbar's left side was empty — no logo, no wordmark, no visible home link.

Root cause: `AppHeader` rendered `<img src="/img/logo.png">` followed by a "Code for Philly" wordmark with `hidden md:inline`. The image asset has never existed in the repo (no `apps/web/public/img/` directory anywhere), so the `` rendered as an invisible broken-image on every viewport. On desktop nobody noticed because the wordmark text covered it; on mobile (where the wordmark is hidden) the home link had zero visible content despite still being there in the DOM.

Fix: drop the broken `` and unhide the wordmark at all breakpoints. The home link is now always visible, always labeled, always tappable.

The actual logo asset is a future TODO worth filing as an issue separately — this PR fixes the functional regression without waiting on the design work.

Test plan

  • `npm run -w apps/web type-check` clean
  • `npm run lint` clean
  • `npm run -w apps/web test -- tests/AppHeader.test.tsx` — 5/5
  • Smoke-test the navbar in mobile + desktop viewports after deploy

🤖 Generated with Claude Code

themightychris and others added 2 commits May 31, 2026 22:12
The header used <img src="/img/logo.png"> followed by a "Code for Philly"
wordmark gated with `hidden md:inline`. The image asset has never
existed in the repo, so it rendered as an invisible broken-image on
every viewport. Desktop nobody noticed because the wordmark text
filled the spot; mobile (where hidden md:inline hides the wordmark)
showed an empty home link with no tappable visual.

Drop the broken <img> and unhide the wordmark at all breakpoints.
The home link is now always visible, always labeled, always tappable.
The actual logo asset is a future TODO; the wordmark covers the
functional need.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds three brand assets sourced from the project's design files:

  apps/web/public/img/logo-horizontal.png  — icon + wordmark lockup (navbar)
  apps/web/public/img/logo.png             — standalone icon
  apps/web/public/favicon.png              — favicon

AppHeader now renders the horizontal lockup in place of the bare
"Code for Philly" text wordmark. Image is set as h-8 w-auto so it
scales naturally; aria-label stays on the Link for screen readers.
index.html picks up the favicon via <link rel="icon">.

Test updated to assert the home link's accessible label + alt text
since the wordmark is now part of the image instead of separate text.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@themightychris themightychris merged commit 0d0f747 into main Jun 1, 2026
1 of 2 checks passed
@themightychris themightychris deleted the fix/mobile-navbar-home-link branch June 1, 2026 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant