Skip to content

Adopt shared chrome from signage-kit 2026.7.2 (standardize footer badge) - #11

Merged
vpetersson merged 1 commit into
masterfrom
feat/adopt-signage-kit-chrome
Jul 13, 2026
Merged

Adopt shared chrome from signage-kit 2026.7.2 (standardize footer badge)#11
vpetersson merged 1 commit into
masterfrom
feat/adopt-signage-kit-chrome

Conversation

@vpetersson

Copy link
Copy Markdown
Contributor

Replaces the "Powered by … screenly.io" footer lockup with the standardized fixed corner Screenly badge and shares the badge + font vendoring with @screenly-labs/signage-kit (2026.7.2).

Changes

  • build.ts prepends the kit's brand.css to main.css (path-agnostic). Not the kit's fonts.css: this app uses relative asset paths (../fonts/, ./images/) for Pages-subpath portability, while fonts.css hard-codes /static/fonts/ — so it keeps its own relative @font-face and shares only the badge rules.
  • index.html: the <footer class="brand"> lockup → the standard <a class="brand"> badge; main.css drops the local .brand* rules.
  • sync-fonts.tssyncFonts(['fraunces','hanken-grotesk'], 'assets/fonts'); src/main.ts imports removeScreenlyBranding from the kit; @fontsource deps dropped; kit repointed to #2026.7.2.

Verification

typecheck + lint + 35 tests clean. Local screenshots (static Pages app) confirm the fixed badge bottom-right and the 7-city board unchanged across 1920×1080 / 1080×1920 / 800×480 / 3840×2160, full + degraded, and removed under a screenly-viewer UA. On merge, Pages deploys to world-clock.srly.io — I'll validate the live instance.

🤖 Generated with Claude Code

Replace the "Powered by … screenly.io" footer lockup with the standardized
fixed corner Screenly badge, and share the badge + font vendoring with the kit:

- build.ts prepends the kit's styles/brand.css to main.css (brand.css is
  path-agnostic — only clamp/position, no url()). NOT the kit's fonts.css: this
  app uses RELATIVE asset paths (../fonts/…, ./images/…) for Pages-subpath
  portability, while fonts.css hard-codes /static/fonts/, so the app keeps its
  own relative @font-face and only shares the badge rules.
- index.html: the <footer class="brand"> lockup (Powered by / logo / screenly.io)
  becomes the standard <a class="brand"> badge. main.css drops the local
  .brand/.brand-by/.brand-logo/.brand-url rules and the .brand entry in the
  position/z-index group and the small-screen @media.
- sync-fonts.ts uses the kit's syncFonts(['fraunces','hanken-grotesk'],'assets/fonts').
- src/main.ts imports removeScreenlyBranding from the kit.
- Drop the @fontsource deps (kit owns them, transitively); repoint kit to #2026.7.2.

Verified: typecheck + lint + 35 tests clean; local screenshots show the fixed
badge bottom-right and the 7-city board unchanged across the resolution matrix,
in full + degraded mode, removed under a screenly-viewer UA.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vpetersson
vpetersson merged commit bce5d04 into master Jul 13, 2026
1 check passed
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