feat(template/base): Utilise imagine filter pour le logo et supprime Cloudflare

This commit is contained in:
Serreau Jovann
2025-11-21 22:08:56 +01:00
parent 24137d5318
commit 17531770e7

View File

@@ -134,10 +134,8 @@
<div class="flex-shrink-0 flex items-center">
{% set original_url = app.request.schemeAndHttpHost~asset('assets/images/logo.jpg') %}
{% set cloudflare_transform = 'https://e-cosplay.fr/cdn-cgi/image/width=400' %}
<a href="{{ path('app_home') }}" class="flex items-center space-x-2 text-xl font-bold text-gray-900">
<img class="h-8 w-auto" width="57px" height="32px" src="{{ cloudflare_transform ~ original_url }}"
<img class="h-8 w-auto" width="57px" height="32px" src="{{ asset('assets/images/logo.jpg') | imagine_filter('logo') }}"
alt="E-Cosplay Logo">
{# Le texte du nom du site peut rester en noir pour la lisibilité #}
<span class="text-gray-900">E-Cosplay</span>