templates/partials/_pwa_install_banner.html.twig line 1

Open in your IDE?
  1. {#
  2.  # Custom install prompt. Chrome fires 'beforeinstallprompt' when the site
  3.  # meets its installability criteria; js/pwa.js captures it, prevents the
  4.  # default mini-infobar, and drives this banner + the drawer link in
  5.  # nav.html.twig instead — so install timing/UI is ours, not the browser's.
  6.  # Hidden by default; unhidden by JS only once the browser actually offers
  7.  # the prompt. No-op on browsers that never fire the event (iOS Safari).
  8.  #}
  9. <div id="fk-install-banner" class="fk-install-banner" hidden>
  10.     <div class="fk-install-banner-icon">F</div>
  11.     <div class="fk-install-banner-body">
  12.         <p class="fk-install-banner-title">{{ 'Zainstaluj Fibkit'|trans }}</p>
  13.         <p class="fk-install-banner-text">{{ 'Szybszy dostęp z ekranu głównego, bez otwierania przeglądarki.'|trans }}</p>
  14.         <div class="fk-install-banner-actions">
  15.             <button type="button" id="fk-install-accept" class="btn btn-sm fk-install-btn-accept">{{ 'Zainstaluj'|trans }}</button>
  16.             <button type="button" id="fk-install-dismiss" class="btn btn-sm btn-outline-secondary">{{ 'Nie teraz'|trans }}</button>
  17.         </div>
  18.     </div>
  19. </div>