{% extends 'base.html.twig' %} {% block title %}Eco Footprint - Design System - Bubul{% endblock %} {% block body %}
{% include '_atoms/icon/icon.html.twig' with { name: 'chevron-left', size: 'sm', color: 'gray' } %}
Organisme /

Eco Footprint

Section empreinte ecologique du dashboard

{# ===== EXPLICATION ===== #}
{% include '_atoms/icon/icon.html.twig' with { name: 'earth', size: 'lg', color: 'white' } %}

Empreinte ecologique

Dashboard

Organisme du dashboard affichant l'impact environnemental de l'utilisation de l'IA. Trois metriques (energie, CO2, eau) avec equivalences concretes, plus un graphique a barres hebdomadaire avec degrades de couleur selon l'intensite.

0

Molecules

1

Atome

3

Metriques

5

Parametres

{# ===== COMPOSITION ===== #}

Composition

Atomes utilises et logique interne

Atomes

  • icon - Icones metriques (bolt, cloud, earth)

Logique metier

  • CO2 = totalWh x 0.590 g (source IEA 2024)
  • Eau = totalWh x 0.00216 L (source Google 2024)
  • Equivalences : recherches Google, km voiture, verres d'eau
  • Barres colorees selon intensite (vert/orange/rouge)
  • Variation hebdomadaire avec fleche directionnelle
{# ===== USAGE ===== #}

Usage

{% verbatim %}{% include '_organisms/eco-footprint/eco-footprint.html.twig' with {
    totalWh: 152.4,
    weeklyData: [
        { day: 'Lun', val: 18.4 },
        { day: 'Mar', val: 31.2 },
        { day: 'Mer', val: 12.7 },
        { day: 'Jeu', val: 44.9 },
        { day: 'Ven', val: 34.7 },
        { day: 'Sam', val: 8.3 },
        { day: 'Dim', val: 2.1 }
    ],
    weekDelta: '-12%',
    period: 'Février 2026'
} %}{% endverbatim %}
{# ===== COMPLET ===== #}

Complet

Avec donnees hebdomadaires et variation

{% include '_organisms/eco-footprint/eco-footprint.html.twig' with { totalWh: 152.4, weeklyData: [ { day: 'Lun', val: 18.4 }, { day: 'Mar', val: 31.2 }, { day: 'Mer', val: 12.7 }, { day: 'Jeu', val: 44.9 }, { day: 'Ven', val: 34.7 }, { day: 'Sam', val: 8.3 }, { day: 'Dim', val: 2.1 } ], weekDelta: '-12%', period: 'Fevrier 2026' } %}
{# ===== SANS DONNEES ===== #}

Sans donnees

Quand totalWh est 0 et weeklyData est vide

{% include '_organisms/eco-footprint/eco-footprint.html.twig' with { totalWh: 0, weeklyData: [] } %}
{# ===== PARAMETRES ===== #}

Parametres

Parametre Type Defaut Description
totalWhfloat0Energie totale consommee en Wh
weeklyDataarray[]Donnees hebdomadaires [{day: 'Lun', val: 18.4}]
weekDeltastringnullVariation vs semaine passee (ex: '-12%', '+8%')
periodstringnullPeriode affichee (ex: 'Fevrier 2026')
classstring''Classes Tailwind additionnelles
{# ===== FICHIER SOURCE ===== #}

Fichier source

templates/_organisms/eco-footprint/eco-footprint.html.twig
{% endblock %}