This commit is contained in:
Frank
2026-01-02 20:27:56 +01:00
parent 534175efb3
commit 0d6628e7c9
45 changed files with 12279 additions and 2911 deletions

View File

@@ -4,24 +4,17 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ 'site.name'|trans }}{% endblock %}</title>
{% block stylesheets %}{% endblock %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
<body>
<header>
<nav>
{% set pathinfo = app.request.pathinfo %}
{% set is_nl = pathinfo starts with '/nl' %}
<a href="{{ is_nl ? '/nl' : '/' }}">{{ 'nav.home'|trans }}</a> |
<a href="{{ is_nl ? '/nl/game' : '/game' }}">{{ 'nav.game'|trans }}</a>
<span style="margin-left:1rem">
{# Language switcher: URL prefix strategy. Our routes have localized prefixes: en (no prefix), nl (/nl). #}
{% set pathinfo = app.request.pathinfo %}
{% set is_nl = pathinfo starts with '/nl' %}
{% set en_url = is_nl ? pathinfo|slice(3) : pathinfo %}
{% set nl_url = is_nl ? pathinfo : '/nl' ~ pathinfo %}
<a href="{{ en_url ?: '/' }}">EN</a> /
<a href="{{ nl_url }}">NL</a>
</span>
<a href="/">{{ 'nav.home'|trans }}</a> |
<a href="/game">{{ 'nav.game'|trans }}</a>
</nav>
</header>
<main>
@@ -30,6 +23,8 @@
<footer>
<small>&copy; {{ "now"|date("Y") }} {{ 'site.name'|trans }}</small>
</footer>
{% block javascripts %}{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
</body>
</html>