evwiki/templates/result/tiles/batterydetails.html.twig
2025-05-30 07:04:14 +02:00

19 lines
1.0 KiB
Twig

<div class="tile battery-details-tile">
<div class="tile-title">
<i class="fas fa-car-battery" style="color: #007acc; margin-right: 8px;"></i>
Batterie Details
</div>
<div class="chemistry-info" style="margin-top: 12px; text-align: center;">
{% set chemistryColor = tile.batteryProperties.cellChemistry.value == 'LFP' ? '#28a745' : (tile.batteryProperties.cellChemistry.value == 'NMC' ? '#007acc' : '#6f42c1') %}
<div style="font-weight: bold; font-size: 24px; color: {{ chemistryColor }}; margin-bottom: 4px;">
{{ tile.batteryProperties.cellChemistry.value }}
</div>
<div style="font-size: 12px; color: #666;">
{% if tile.batteryProperties.cellChemistry.value == 'LFP' %}Lithium-Eisenphosphat
{% elseif tile.batteryProperties.cellChemistry.value == 'NMC' %}Lithium-Nickel-Mangan
{% else %}{{ tile.batteryProperties.cellChemistry.value }}
{% endif %}
</div>
</div>
<small style="color: #666;">Batterietechnologie</small>
</div>