diagprofil / index.html
cweigel's picture
Add 2 files
12cd650 verified
Raw History Blame Contribute Delete
22.3 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>XPERT RSE - Diagnostic RSE</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;
}
.sector-card {
transition: all 0.2s;
}
.sector-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sector-card.selected {
border-color: #3b82f6;
background-color: #eff6ff;
}
.progress-bar {
height: 6px;
background-color: #e5e7eb;
}
.progress-fill {
height: 100%;
background-color: #3b82f6;
transition: width 0.3s ease;
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar w-64 bg-blue-800 text-white flex flex-col">
<div class="p-4 flex items-center space-x-3 border-b border-blue-700">
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center">
<i class="fas fa-leaf text-blue-800 text-xl"></i>
</div>
<h1 class="text-xl font-bold">XPERT RSE</h1>
</div>
<div class="flex-1 overflow-y-auto py-4">
<nav>
<div class="px-4 mb-6">
<div class="text-xs uppercase font-semibold text-blue-300 mb-2">Étapes du diagnostic</div>
<ul class="space-y-1">
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md bg-blue-900">
<i class="fas fa-building mr-3 text-blue-300"></i>
Informations entreprise
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md bg-blue-700 font-medium">
<i class="fas fa-user-tie mr-3"></i>
Profil
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md text-blue-200 hover:bg-blue-700">
<i class="fas fa-book-open mr-3"></i>
Préambule
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md text-blue-200 hover:bg-blue-700">
<i class="fas fa-chart-line mr-3"></i>
Diagnostic de maturité
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md text-blue-200 hover:bg-blue-700">
<i class="fas fa-search mr-3"></i>
Diagnostic entreprise
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md text-blue-200 hover:bg-blue-700">
<i class="fas fa-print mr-3"></i>
Impression diagnostic
</a>
</li>
</ul>
</div>
<div class="px-4 mb-6">
<div class="text-xs uppercase font-semibold text-blue-300 mb-2">Outils</div>
<ul class="space-y-1">
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md text-blue-200 hover:bg-blue-700">
<i class="fas fa-cog mr-3"></i>
Paramètres
</a>
</li>
<li>
<a href="#" class="flex items-center px-3 py-2 text-sm rounded-md text-blue-200 hover:bg-blue-700">
<i class="fas fa-question-circle mr-3"></i>
Aide
</a>
</li>
</ul>
</div>
</nav>
</div>
<div class="p-4 border-t border-blue-700">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center mr-2">
<i class="fas fa-user text-sm"></i>
</div>
<div>
<div class="text-sm font-medium">Conseiller RSE</div>
<div class="text-xs text-blue-300">connecté</div>
</div>
</div>
</div>
</div>
<!-- Main content -->
<div class="flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white shadow-sm">
<div class="px-6 py-4 flex items-center justify-between">
<div>
<h2 class="text-xl font-semibold text-gray-800">Profil de l'entreprise</h2>
<p class="text-sm text-gray-500">Sélectionnez le secteur d'activité de votre client</p>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Rechercher..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
</div>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i class="fas fa-bell"></i>
</button>
</div>
</div>
<div class="px-6 pb-4">
<div class="max-w-3xl">
<div class="flex justify-between text-sm text-gray-600 mb-1">
<span>Progression</span>
<span>20%</span>
</div>
<div class="progress-bar rounded-full">
<div class="progress-fill rounded-full" style="width: 20%"></div>
</div>
</div>
</div>
</header>
<!-- Content -->
<main class="p-6">
<div class="max-w-4xl mx-auto">
<div class="bg-white rounded-xl shadow-sm overflow-hidden mb-6">
<div class="p-6 border-b">
<h3 class="text-lg font-semibold text-gray-800">Sélection du secteur d'activité</h3>
<p class="text-gray-600 mt-1">Cette information nous permettra d'adapter le diagnostic RSE aux spécificités de votre secteur.</p>
</div>
<div class="p-6">
<div class="relative mb-4">
<i class="fas fa-search absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" id="sector-search" placeholder="Rechercher un secteur..." class="pl-10 w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500" onkeyup="filterSectors()">
</div>
<div id="sectors-container" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<!-- Secteur BTP -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'BTP')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-orange-100 flex items-center justify-center mr-3">
<i class="fas fa-hard-hat text-orange-500"></i>
</div>
<h4 class="font-medium">BTP</h4>
</div>
<p class="text-sm text-gray-600">Construction, travaux publics, bâtiment</p>
</div>
<!-- Secteur Coiffure -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Coiffure')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-3">
<i class="fas fa-cut text-purple-500"></i>
</div>
<h4 class="font-medium">Coiffure</h4>
</div>
<p class="text-sm text-gray-600">Salons de coiffure, instituts de beauté</p>
</div>
<!-- Secteur Restauration -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Restauration')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-3">
<i class="fas fa-utensils text-red-500"></i>
</div>
<h4 class="font-medium">Restauration</h4>
</div>
<p class="text-sm text-gray-600">Restaurants, cafés, traiteurs</p>
</div>
<!-- Secteur Santé -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Santé')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3">
<i class="fas fa-heartbeat text-blue-500"></i>
</div>
<h4 class="font-medium">Santé</h4>
</div>
<p class="text-sm text-gray-600">Hôpitaux, cliniques, professions médicales</p>
</div>
<!-- Secteur Commerce -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Commerce')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-3">
<i class="fas fa-shopping-cart text-green-500"></i>
</div>
<h4 class="font-medium">Commerce</h4>
</div>
<p class="text-sm text-gray-600">Commerce de détail, grande distribution</p>
</div>
<!-- Secteur Industrie -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Industrie')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-3">
<i class="fas fa-industry text-yellow-500"></i>
</div>
<h4 class="font-medium">Industrie</h4>
</div>
<p class="text-sm text-gray-600">Production industrielle, manufacturière</p>
</div>
<!-- Secteur Services -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Services')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i class="fas fa-concierge-bell text-indigo-500"></i>
</div>
<h4 class="font-medium">Services</h4>
</div>
<p class="text-sm text-gray-600">Services aux entreprises et particuliers</p>
</div>
<!-- Secteur Agriculture -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Agriculture')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-lime-100 flex items-center justify-center mr-3">
<i class="fas fa-tractor text-lime-500"></i>
</div>
<h4 class="font-medium">Agriculture</h4>
</div>
<p class="text-sm text-gray-600">Exploitations agricoles, élevage</p>
</div>
<!-- Secteur Transport -->
<div class="sector-card border rounded-lg p-4 cursor-pointer" onclick="selectSector(this, 'Transport')">
<div class="flex items-center mb-2">
<div class="w-10 h-10 rounded-full bg-cyan-100 flex items-center justify-center mr-3">
<i class="fas fa-truck text-cyan-500"></i>
</div>
<h4 class="font-medium">Transport</h4>
</div>
<p class="text-sm text-gray-600">Transport de marchandises et de personnes</p>
</div>
</div>
<!-- Secteur personnalisé -->
<div class="mt-6 pt-6 border-t">
<h4 class="font-medium text-gray-800 mb-3">Secteur non listé ?</h4>
<div class="flex">
<input type="text" id="custom-sector" placeholder="Précisez votre secteur d'activité" class="flex-1 px-4 py-2 border rounded-l-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<button onclick="addCustomSector()" class="bg-blue-600 text-white px-4 py-2 rounded-r-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
Ajouter
</button>
</div>
</div>
</div>
<div class="bg-gray-50 px-6 py-4 flex justify-between">
<button class="px-4 py-2 border rounded-lg text-gray-700 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
<i class="fas fa-arrow-left mr-2"></i> Retour
</button>
<button id="continue-btn" class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
Continuer <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
<div class="bg-blue-50 rounded-lg p-4 flex items-start">
<div class="text-blue-500 mr-3 mt-1">
<i class="fas fa-info-circle"></i>
</div>
<div>
<h4 class="font-medium text-blue-800">Conseil d'expert</h4>
<p class="text-blue-600 text-sm mt-1">La sélection du secteur d'activité est cruciale car elle permet d'adapter les questions du diagnostic RSE aux enjeux spécifiques de votre métier. Par exemple, les questions environnementales seront différentes pour un salon de coiffure et pour une entreprise du BTP.</p>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
let selectedSector = null;
function selectSector(element, sector) {
// Remove selected class from all cards
document.querySelectorAll('.sector-card').forEach(card => {
card.classList.remove('selected', 'border-blue-500');
});
// Add selected class to clicked card
element.classList.add('selected', 'border-blue-500');
selectedSector = sector;
// Enable continue button
document.getElementById('continue-btn').disabled = false;
// Update custom sector field if needed
document.getElementById('custom-sector').value = '';
}
function filterSectors() {
const input = document.getElementById('sector-search');
const filter = input.value.toUpperCase();
const container = document.getElementById('sectors-container');
const cards = container.getElementsByClassName('sector-card');
for (let i = 0; i < cards.length; i++) {
const title = cards[i].querySelector('h4').textContent;
const description = cards[i].querySelector('p').textContent;
if (title.toUpperCase().indexOf(filter) > -1 || description.toUpperCase().indexOf(filter) > -1) {
cards[i].style.display = "";
} else {
cards[i].style.display = "none";
}
}
}
function addCustomSector() {
const customSector = document.getElementById('custom-sector').value.trim();
if (customSector) {
selectedSector = customSector;
// Remove selected class from all cards
document.querySelectorAll('.sector-card').forEach(card => {
card.classList.remove('selected', 'border-blue-500');
});
// Enable continue button
document.getElementById('continue-btn').disabled = false;
// Show confirmation
alert(`Secteur "${customSector}" enregistré. Vous pouvez maintenant continuer.`);
}
}
// Example of continuing to next step
document.getElementById('continue-btn').addEventListener('click', function() {
alert(`Secteur "${selectedSector}" sélectionné. Redirection vers l'étape suivante...`);
// Here you would typically redirect or load the next step
});
</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/diagprofil" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>