Spaces:
Running
Running
Download index.html from cweigel/diagclient: direct link, hf CLI and curl.
- Browser
- Download file 39.5 kB
-
https://huggingface.co/spaces/cweigel/diagclient/resolve/main/index.html
- Command line
-
hf download hf://spaces/cweigel/diagclient/index.html
-
curl -L -o index.html https://huggingface.co/spaces/cweigel/diagclient/resolve/main/index.html
39.5 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>XPERT RSE - Diagnostic de l'entreprise</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .sidebar { | |
| transition: all 0.3s; | |
| } | |
| .sidebar-collapsed { | |
| width: 70px; | |
| } | |
| .sidebar-expanded { | |
| width: 250px; | |
| } | |
| .main-content { | |
| transition: all 0.3s; | |
| } | |
| .content-expanded { | |
| margin-left: 250px; | |
| } | |
| .content-collapsed { | |
| margin-left: 70px; | |
| } | |
| .nav-item-collapsed .nav-text { | |
| display: none; | |
| } | |
| .nav-item-expanded .nav-text { | |
| display: inline; | |
| } | |
| .progress-ring__circle { | |
| transition: stroke-dashoffset 0.35s; | |
| transform: rotate(-90deg); | |
| transform-origin: 50% 50%; | |
| } | |
| .esg-section { | |
| transition: all 0.3s; | |
| } | |
| .esg-section.collapsed .questions-container { | |
| display: none; | |
| } | |
| .esg-section.collapsed .section-header::after { | |
| content: '+'; | |
| } | |
| .esg-section.expanded .section-header::after { | |
| content: '-'; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar --> | |
| <div class="sidebar sidebar-expanded bg-blue-800 text-white flex flex-col"> | |
| <div class="p-4 flex items-center justify-between border-b border-blue-700"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-leaf text-2xl text-green-400 mr-3"></i> | |
| <span class="text-xl font-bold">XPERT RSE</span> | |
| </div> | |
| <button id="toggleSidebar" class="text-white focus:outline-none"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <div class="flex-1 overflow-y-auto py-4"> | |
| <nav> | |
| <ul> | |
| <li class="px-4 py-2 hover:bg-blue-700"> | |
| <a href="#" class="flex items-center text-blue-200"> | |
| <i class="fas fa-building mr-3"></i> | |
| <span class="nav-text">Informations entreprise</span> | |
| </a> | |
| </li> | |
| <li class="px-4 py-2 hover:bg-blue-700"> | |
| <a href="#" class="flex items-center text-blue-200"> | |
| <i class="fas fa-user mr-3"></i> | |
| <span class="nav-text">Profil</span> | |
| </a> | |
| </li> | |
| <li class="px-4 py-2 hover:bg-blue-700"> | |
| <a href="#" class="flex items-center text-blue-200"> | |
| <i class="fas fa-book-open mr-3"></i> | |
| <span class="nav-text">Préambule</span> | |
| </a> | |
| </li> | |
| <li class="px-4 py-2 hover:bg-blue-700"> | |
| <a href="#" class="flex items-center text-blue-200"> | |
| <i class="fas fa-chart-line mr-3"></i> | |
| <span class="nav-text">Diagnostic maturité</span> | |
| </a> | |
| </li> | |
| <li class="px-4 py-2 bg-blue-900"> | |
| <a href="#" class="flex items-center text-white"> | |
| <i class="fas fa-clipboard-check mr-3"></i> | |
| <span class="nav-text">Diagnostic entreprise</span> | |
| </a> | |
| </li> | |
| <li class="px-4 py-2 hover:bg-blue-700"> | |
| <a href="#" class="flex items-center text-blue-200"> | |
| <i class="fas fa-print mr-3"></i> | |
| <span class="nav-text">Impression diagnostic</span> | |
| </a> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| <div class="p-4 border-t border-blue-700"> | |
| <div class="flex items-center"> | |
| <img src="https://via.placeholder.com/40" alt="User" class="rounded-full mr-3"> | |
| <div> | |
| <div class="font-medium">Conseiller RSE</div> | |
| <div class="text-xs text-blue-300">Connecté</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content content-expanded flex-1 overflow-auto"> | |
| <header class="bg-white shadow-sm p-4"> | |
| <div class="flex justify-between items-center"> | |
| <h1 class="text-2xl font-bold text-gray-800">Diagnostic de l'entreprise</h1> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <select class="block appearance-none bg-white border border-gray-300 text-gray-700 py-2 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-blue-500"> | |
| <option>Secteur: BTP</option> | |
| <option>Industrie</option> | |
| <option>Services</option> | |
| <option>Commerce</option> | |
| </select> | |
| <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> | |
| <i class="fas fa-chevron-down"></i> | |
| </div> | |
| </div> | |
| <button class="bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center"> | |
| <i class="fas fa-save mr-2"></i> | |
| <span>Sauvegarder</span> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <main class="p-6"> | |
| <!-- ESG Scores Overview --> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8"> | |
| <!-- Environmental Score --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="text-lg font-semibold text-gray-800">Environnemental</h3> | |
| <p class="text-sm text-gray-500">Score global</p> | |
| </div> | |
| <div class="relative w-16 h-16"> | |
| <svg class="w-full h-full" viewBox="0 0 36 36"> | |
| <path class="text-gray-200" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/> | |
| <path class="text-green-500 progress-ring__circle" stroke-dasharray="75, 100" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/> | |
| <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">75%</text> | |
| </svg> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-600 mb-1"> | |
| <span>Changement climatique</span> | |
| <span>65%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-400 h-2 rounded-full" style="width: 65%"></div> | |
| </div> | |
| </div> | |
| <div class="mt-2"> | |
| <div class="flex justify-between text-sm text-gray-600 mb-1"> | |
| <span>Biodiversité</span> | |
| <span>80%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-400 h-2 rounded-full" style="width: 80%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Social Score --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="text-lg font-semibold text-gray-800">Social</h3> | |
| <p class="text-sm text-gray-500">Score global</p> | |
| </div> | |
| <div class="relative w-16 h-16"> | |
| <svg class="w-full h-full" viewBox="0 0 36 36"> | |
| <path class="text-gray-200" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/> | |
| <path class="text-yellow-500 progress-ring__circle" stroke-dasharray="60, 100" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/> | |
| <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">60%</text> | |
| </svg> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-600 mb-1"> | |
| <span>Conditions de travail</span> | |
| <span>55%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-400 h-2 rounded-full" style="width: 55%"></div> | |
| </div> | |
| </div> | |
| <div class="mt-2"> | |
| <div class="flex justify-between text-sm text-gray-600 mb-1"> | |
| <span>Santé & Sécurité</span> | |
| <span>70%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-400 h-2 rounded-full" style="width: 70%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Governance Score --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="text-lg font-semibold text-gray-800">Gouvernance</h3> | |
| <p class="text-sm text-gray-500">Score global</p> | |
| </div> | |
| <div class="relative w-16 h-16"> | |
| <svg class="w-full h-full" viewBox="0 0 36 36"> | |
| <path class="text-gray-200" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/> | |
| <path class="text-red-500 progress-ring__circle" stroke-dasharray="45, 100" d="M18 2.0845 | |
| a 15.9155 15.9155 0 0 1 0 31.831 | |
| a 15.9155 15.9155 0 0 1 0 -31.831" fill="none" stroke="currentColor" stroke-width="3"/> | |
| <text x="18" y="20.5" class="text-sm font-bold fill-current text-gray-800" text-anchor="middle" dy=".3em">45%</text> | |
| </svg> | |
| </div> | |
| </div> | |
| <div class="mt-4"> | |
| <div class="flex justify-between text-sm text-gray-600 mb-1"> | |
| <span>Éthique des affaires</span> | |
| <span>40%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-400 h-2 rounded-full" style="width: 40%"></div> | |
| </div> | |
| </div> | |
| <div class="mt-2"> | |
| <div class="flex justify-between text-sm text-gray-600 mb-1"> | |
| <span>Transparence</span> | |
| <span>50%</span> | |
| </div> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-400 h-2 rounded-full" style="width: 50%"></div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- ESG Sections --> | |
| <div class="space-y-6"> | |
| <!-- Environmental Section --> | |
| <div class="esg-section expanded bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="section-header bg-green-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center"> | |
| <h2 class="text-xl font-bold"> | |
| <i class="fas fa-leaf mr-2"></i> | |
| Environnemental | |
| </h2> | |
| <span class="font-bold"></span> | |
| </div> | |
| <div class="questions-container p-6"> | |
| <!-- Pillar: Changement climatique --> | |
| <div class="mb-8"> | |
| <div class="flex justify-between items-center mb-4 border-b pb-2"> | |
| <h3 class="text-lg font-semibold text-gray-800"> | |
| <i class="fas fa-cloud-sun mr-2 text-blue-500"></i> | |
| Changement climatique | |
| </h3> | |
| <div class="flex items-center"> | |
| <span class="text-sm font-medium text-gray-500 mr-2">Score:</span> | |
| <span class="text-lg font-bold text-blue-600">65%</span> | |
| </div> | |
| </div> | |
| <!-- Theme: Adaptation aux changements climatiques --> | |
| <div class="ml-6 mb-6"> | |
| <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center"> | |
| <i class="fas fa-umbrella mr-2 text-blue-400"></i> | |
| Adaptation aux changements climatiques | |
| </h4> | |
| <!-- Question 1 --> | |
| <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <p class="font-medium text-gray-800"> | |
| 1. L'entreprise a-t-elle réalisé une évaluation des risques climatiques pour ses activités dans le secteur du BTP? | |
| </p> | |
| <div class="flex space-x-2"> | |
| <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button> | |
| <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button> | |
| <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button> | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea> | |
| </div> | |
| <div class="mt-3 flex items-center"> | |
| <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label> | |
| <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>%</option> | |
| <option>tonnes</option> | |
| <option>€</option> | |
| <option>kWh</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Question 2 --> | |
| <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <p class="font-medium text-gray-800"> | |
| 2. Des mesures d'adaptation aux événements climatiques extrêmes sont-elles intégrées dans les chantiers? | |
| </p> | |
| <div class="flex space-x-2"> | |
| <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button> | |
| <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button> | |
| <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button> | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea> | |
| </div> | |
| <div class="mt-3 flex items-center"> | |
| <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label> | |
| <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>%</option> | |
| <option>tonnes</option> | |
| <option>€</option> | |
| <option>kWh</option> | |
| </select> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Theme: Atténuation du changement climatique --> | |
| <div class="ml-6 mb-6"> | |
| <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center"> | |
| <i class="fas fa-wind mr-2 text-blue-400"></i> | |
| Atténuation du changement climatique | |
| </h4> | |
| <!-- Question 1 --> | |
| <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <p class="font-medium text-gray-800"> | |
| 1. L'entreprise mesure-t-elle ses émissions de gaz à effet de serre (scope 1, 2 et 3)? | |
| </p> | |
| <div class="flex space-x-2"> | |
| <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button> | |
| <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button> | |
| <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button> | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea> | |
| </div> | |
| <div class="mt-3 flex items-center"> | |
| <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label> | |
| <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>tonnes CO2e</option> | |
| <option>%</option> | |
| <option>€</option> | |
| <option>kWh</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Question 2 --> | |
| <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <p class="font-medium text-gray-800"> | |
| 2. Existe-t-il un plan de réduction des émissions de GES avec des objectifs chiffrés? | |
| </p> | |
| <div class="flex space-x-2"> | |
| <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button> | |
| <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button> | |
| <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button> | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea> | |
| </div> | |
| <div class="mt-3 flex items-center"> | |
| <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label> | |
| <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>% réduction</option> | |
| <option>tonnes CO2e</option> | |
| <option>€</option> | |
| <option>kWh</option> | |
| </select> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Theme: Energie --> | |
| <div class="ml-6 mb-6"> | |
| <h4 class="text-md font-medium text-gray-700 mb-3 flex items-center"> | |
| <i class="fas fa-bolt mr-2 text-blue-400"></i> | |
| Energie | |
| </h4> | |
| <!-- Question 1 --> | |
| <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <p class="font-medium text-gray-800"> | |
| 1. L'entreprise utilise-t-elle des énergies renouvelables sur ses chantiers (groupes électrogènes solaires, etc.)? | |
| </p> | |
| <div class="flex space-x-2"> | |
| <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button> | |
| <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button> | |
| <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button> | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea> | |
| </div> | |
| <div class="mt-3 flex items-center"> | |
| <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label> | |
| <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>%</option> | |
| <option>kWh</option> | |
| <option>€</option> | |
| <option>tonnes</option> | |
| </select> | |
| </div> | |
| </div> | |
| <!-- Question 2 --> | |
| <div class="ml-6 mb-6 p-4 bg-gray-50 rounded-lg"> | |
| <div class="flex justify-between items-start mb-3"> | |
| <p class="font-medium text-gray-800"> | |
| 2. Des mesures d'efficacité énergétique sont-elles mises en place (isolation des bâtiments, matériel performant, etc.)? | |
| </p> | |
| <div class="flex space-x-2"> | |
| <button class="answer-btn bg-green-100 text-green-800 px-3 py-1 rounded" data-value="yes">Oui</button> | |
| <button class="answer-btn bg-red-100 text-red-800 px-3 py-1 rounded" data-value="no">Non</button> | |
| <button class="answer-btn bg-gray-100 text-gray-800 px-3 py-1 rounded" data-value="na">N/A</button> | |
| </div> | |
| </div> | |
| <div class="mt-3"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Commentaires:</label> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" rows="2"></textarea> | |
| </div> | |
| <div class="mt-3 flex items-center"> | |
| <label class="block text-sm font-medium text-gray-700 mr-2">Indicateur quantitatif:</label> | |
| <input type="number" class="w-20 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <select class="ml-2 px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>% économie</option> | |
| <option>kWh</option> | |
| <option>€</option> | |
| <option>tonnes</option> | |
| </select> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Social Section --> | |
| <div class="esg-section collapsed bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="section-header bg-yellow-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center"> | |
| <h2 class="text-xl font-bold"> | |
| <i class="fas fa-users mr-2"></i> | |
| Social | |
| </h2> | |
| <span class="font-bold">+</span> | |
| </div> | |
| <div class="questions-container p-6 hidden"> | |
| <!-- Contenu des questions sociales --> | |
| <p class="text-gray-500">Section sociale - Questions à venir</p> | |
| </div> | |
| </div> | |
| <!-- Governance Section --> | |
| <div class="esg-section collapsed bg-white rounded-lg shadow overflow-hidden"> | |
| <div class="section-header bg-red-600 text-white px-6 py-4 cursor-pointer flex justify-between items-center"> | |
| <h2 class="text-xl font-bold"> | |
| <i class="fas fa-landmark mr-2"></i> | |
| Gouvernance | |
| </h2> | |
| <span class="font-bold">+</span> | |
| </div> | |
| <div class="questions-container p-6 hidden"> | |
| <!-- Contenu des questions de gouvernance --> | |
| <p class="text-gray-500">Section gouvernance - Questions à venir</p> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Toggle sidebar | |
| document.getElementById('toggleSidebar').addEventListener('click', function() { | |
| const sidebar = document.querySelector('.sidebar'); | |
| const mainContent = document.querySelector('.main-content'); | |
| if (sidebar.classList.contains('sidebar-expanded')) { | |
| sidebar.classList.remove('sidebar-expanded'); | |
| sidebar.classList.add('sidebar-collapsed'); | |
| mainContent.classList.remove('content-expanded'); | |
| mainContent.classList.add('content-collapsed'); | |
| // Update nav items | |
| document.querySelectorAll('nav li').forEach(item => { | |
| item.classList.add('nav-item-collapsed'); | |
| item.classList.remove('nav-item-expanded'); | |
| }); | |
| } else { | |
| sidebar.classList.remove('sidebar-collapsed'); | |
| sidebar.classList.add('sidebar-expanded'); | |
| mainContent.classList.remove('content-collapsed'); | |
| mainContent.classList.add('content-expanded'); | |
| // Update nav items | |
| document.querySelectorAll('nav li').forEach(item => { | |
| item.classList.remove('nav-item-collapsed'); | |
| item.classList.add('nav-item-expanded'); | |
| }); | |
| } | |
| }); | |
| // Toggle ESG sections | |
| document.querySelectorAll('.section-header').forEach(header => { | |
| header.addEventListener('click', function() { | |
| const section = this.parentElement; | |
| if (section.classList.contains('collapsed')) { | |
| section.classList.remove('collapsed'); | |
| section.classList.add('expanded'); | |
| section.querySelector('.questions-container').style.display = 'block'; | |
| } else { | |
| section.classList.remove('expanded'); | |
| section.classList.add('collapsed'); | |
| section.querySelector('.questions-container').style.display = 'none'; | |
| } | |
| }); | |
| }); | |
| // Handle answer buttons | |
| document.querySelectorAll('.answer-btn').forEach(btn => { | |
| btn.addEventListener('click', function() { | |
| // Remove active class from all buttons in this group | |
| this.parentElement.querySelectorAll('.answer-btn').forEach(b => { | |
| b.classList.remove('bg-blue-500', 'text-white'); | |
| b.classList.add('bg-gray-100', 'text-gray-800'); | |
| }); | |
| // Add active class to clicked button | |
| const value = this.getAttribute('data-value'); | |
| if (value === 'yes') { | |
| this.classList.remove('bg-green-100', 'text-green-800'); | |
| this.classList.add('bg-green-500', 'text-white'); | |
| } else if (value === 'no') { | |
| this.classList.remove('bg-red-100', 'text-red-800'); | |
| this.classList.add('bg-red-500', 'text-white'); | |
| } else { | |
| this.classList.remove('bg-gray-100', 'text-gray-800'); | |
| this.classList.add('bg-gray-500', 'text-white'); | |
| } | |
| // Update score (simplified example) | |
| // In a real app, you would calculate this based on all answers | |
| const scoreElement = this.closest('.esg-section').querySelector('.progress-ring__circle'); | |
| const currentScore = parseInt(scoreElement.getAttribute('stroke-dasharray').split(',')[0]); | |
| let newScore = currentScore; | |
| if (value === 'yes') newScore = Math.min(currentScore + 5, 100); | |
| else if (value === 'no') newScore = Math.max(currentScore - 5, 0); | |
| scoreElement.setAttribute('stroke-dasharray', `${newScore}, 100`); | |
| scoreElement.parentElement.querySelector('text').textContent = `${newScore}%`; | |
| }); | |
| }); | |
| // Initialize sections | |
| document.querySelectorAll('.esg-section').forEach(section => { | |
| if (section.classList.contains('expanded')) { | |
| section.querySelector('.questions-container').style.display = 'block'; | |
| } else { | |
| section.querySelector('.questions-container').style.display = 'none'; | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=cweigel/diagclient" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |