Add PWA bundle config and pwa() Twig function in base template

- Create pwa.yaml with manifest: name, icons (favicon.png), theme color
- Add {{ pwa() }} before stylesheets in base.html.twig head

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 18:54:11 +01:00
parent 689883b434
commit a794a10844
2 changed files with 15 additions and 0 deletions

14
config/packages/pwa.yaml Normal file
View File

@@ -0,0 +1,14 @@
pwa:
manifest:
name: E-Ticket
short_name: E-Ticket
description: Plateforme de billetterie associative
start_url: /
display: standalone
background_color: '#fbfbfb'
theme_color: '#fabf04'
icons:
- src: /favicon.png
sizes: 2048x2048
type: image/png
purpose: any maskable

View File

@@ -76,6 +76,7 @@
<meta property="og:image" content="https://ticket.e-cosplay.fr/logo.png">
{% endblock %}
{% endblock %}
{{ pwa() }}
{% block stylesheets %}{% endblock %}
{% block javascripts %}
{{ vite_asset('app.js') }}