feat(templates): Optimise le logo avec une transformation Cloudflare

Utilise une URL de transformation Cloudflare pour optimiser le logo.
This commit is contained in:
Serreau Jovann
2025-11-21 22:07:41 +01:00
parent 2f813b50f7
commit 24137d5318

View File

@@ -131,9 +131,13 @@
<nav class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
{# LOGO / NOM DU SITE #}
<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="{{ asset('assets/images/logo.jpg') | imagine_filter('logo') }}"
<img class="h-8 w-auto" width="57px" height="32px" src="{{ cloudflare_transform ~ original_url }}"
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>