Skip to content

Add the install banner with the app store badges - #11

Merged
egorikftp merged 2 commits into
mainfrom
app-banner
Nov 14, 2026
Merged

egorikftp merged 2 commits into
mainfrom
app-banner

Conversation

@egorikftp

Copy link
Copy Markdown
Contributor

An install banner above the map linking both stores:

  • the official App Store / Google Play badges (the same artwork the KMP repo's README ships), both links on every platform, opened in a new tab;
  • sits in the page flow — the map shrinks under it instead of being covered, and MapLibre's default trackResize re-fits the canvas when the banner appears or leaves;
  • dismissal is remembered for 7 days in localStorage via useSyncExternalStore (Safari's ITP wipes script-written storage after 7 days anyway, so the TTL matches what the platform honors);
  • the banner renders only after hydration — the prerendered HTML ships without it (the server snapshot says dismissed);
  • adaptive: below 480px it stacks — logo + title + close on the first row, centered badges on the second, subtitle hidden; above that, one row with the title, subtitle and 36px badges; both text lines clamp to two lines maximum.

Verified in the browser: close → the map expands to full height and the banner stays hidden across reloads; an expired 7-day TTL brings it back.

@egorikftp
egorikftp merged commit e8e4a0f into main Nov 14, 2026
1 check passed
@egorikftp
egorikftp deleted the app-banner branch November 14, 2026 19:03
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