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:
14
config/packages/pwa.yaml
Normal file
14
config/packages/pwa.yaml
Normal 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
|
||||
@@ -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') }}
|
||||
|
||||
Reference in New Issue
Block a user