File size: 20,950 Bytes
b9d44a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | <!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - Capinext</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
body { font-family: 'Inter', sans-serif; }
.shadow-soft { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
.step-active { background-color: #1A73E8; color: white; }
.step-completed { background-color: #E8F0FE; }
.copilot-panel {
transition: all 0.3s ease;
transform: translateX(100%);
}
.copilot-panel.open { transform: translateX(0); }
.sidebar { transition: all 0.3s ease; }
@media (max-width: 992px) {
.sidebar { transform: translateX(-100%); }
.sidebar.open { transform: translateX(0); }
}
</style>
</head>
<body class="bg-gray-50 text-[#2C2C2C]">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar md:translate-x-0 bg-white w-64 border-r border-[#EAEAEA] flex-shrink-0 fixed md:relative h-full z-20">
<div class="p-4 border-b border-[#EAEAEA]">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 bg-[#1A73E8] rounded-lg"></div>
<span class="font-semibold">Capinext</span>
</div>
</div>
<nav class="p-4">
<ul class="space-y-2">
<li>
<a href="/app/dashboard" class="flex items-center space-x-3 p-3 rounded-lg bg-[#E8F0FE] text-[#1A73E8]">
<i data-feather="home"></i>
<span>Dashboard</span>
</a>
</li>
<li>
<a href="/app/missions" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<i data-feather="briefcase"></i>
<span>Missions</span>
</a>
</li>
<li class="mt-6 text-xs uppercase text-gray-500 px-3">Processus</li>
<li>
<a href="/app/decision" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">1</div>
<span>Décision</span>
</a>
</li>
<li>
<a href="/app/preparation" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">2</div>
<span>Préparation</span>
</a>
</li>
<li>
<a href="/app/presentation" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">3</div>
<span>Présentation</span>
</a>
</li>
<li>
<a href="/app/promotion" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">4</div>
<span>Promotion</span>
</a>
</li>
<li>
<a href="/app/pourparlers" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">5</div>
<span>Pourparlers</span>
</a>
</li>
<li>
<a href="/app/due-diligence" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">6</div>
<span>Due Diligence</span>
</a>
</li>
<li>
<a href="/app/closing" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<div class="w-5 h-5 flex items-center justify-center text-xs">7</div>
<span>Closing</span>
</a>
</li>
<li class="mt-6 text-xs uppercase text-gray-500 px-3">Support</li>
<li>
<a href="/app/assistance" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-[#F7F9FC]">
<i data-feather="help-circle"></i>
<span>Assistance</span>
</a>
</li>
</ul>
</nav>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Header -->
<header class="bg-white border-b border-[#EAEAEA] p-4 flex items-center justify-between">
<button class="md:hidden" onclick="toggleSidebar()">
<i data-feather="menu"></i>
</button>
<div class="flex items-center space-x-4">
<button class="relative">
<i data-feather="bell"></i>
<span class="absolute -top-1 -right-1 w-2 h-2 bg-[#FFB300] rounded-full"></span>
</button>
<div class="flex items-center space-x-2">
<div class="w-8 h-8 bg-[#E8F0FE] rounded-full flex items-center justify-center">
<i data-feather="user"></i>
</div>
<span class="font-medium">Pierre D.</span>
</div>
</div>
</header>
<!-- Progress Bar -->
<div class="bg-white border-b border-[#EAEAEA] p-4 overflow-x-auto">
<div class="flex space-x-2 min-w-max">
<div class="step-active flex items-center justify-center w-8 h-8 rounded-full text-sm">1</div>
<div class="w-16 h-1 bg-[#EAEAEA] mt-3"></div>
<div class="step-completed flex items-center justify-center w-8 h-8 rounded-full text-sm">2</div>
<div class="w-16 h-1 bg-[#EAEAEA] mt-3"></div>
<div class="step-completed flex items-center justify-center w-8 h-8 rounded-full text-sm">3</div>
<div class="w-16 h-1 bg-[#EAEAEA] mt-3"></div>
<div class="bg-white border border-[#EAEAEA] flex items-center justify-center w-8 h-8 rounded-full text-sm">4</div>
<div class="w-16 h-1 bg-[#EAEAEA] mt-3"></div>
<div class="bg-white border border-[#EAEAEA] flex items-center justify-center w-8 h-8 rounded-full text-sm">5</div>
<div class="w-16 h-1 bg-[#EAEAEA] mt-3"></div>
<div class="bg-white border border-[#EAEAEA] flex items-center justify-center w-8 h-8 rounded-full text-sm">6</div>
<div class="w-16 h-1 bg-[#EAEAEA] mt-3"></div>
<div class="bg-white border border-[#EAEAEA] flex items-center justify-center w-8 h-8 rounded-full text-sm">7</div>
</div>
</div>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6 bg-[#F7F9FC]">
<div class="max-w-5xl mx-auto">
<h1 class="text-2xl font-bold mb-6">Votre tableau de bord</h1>
<div class="grid md:grid-cols-2 gap-6 mb-8">
<div class="bg-white rounded-xl shadow-soft p-6">
<div class="flex justify-between items-start mb-4">
<h2 class="font-semibold">Mission en cours</h2>
<span class="text-xs bg-[#E8F0FE] text-[#1A73E8] px-2 py-1 rounded">Étape 1/7</span>
</div>
<p class="text-lg font-medium mb-2">Cession de Boulangerie Saint-Honoré</p>
<p class="text-sm text-gray-600 mb-4">CA: 250K€ - Secteur: Alimentaire - Créé le 12/05/2023</p>
<a href="/app/decision" class="inline-block bg-[#1A73E8] text-white px-4 py-2 rounded-lg text-sm hover:bg-blue-700 transition">Continuer</a>
</div>
<div class="bg-white rounded-xl shadow-soft p-6">
<h2 class="font-semibold mb-4">Progression globale</h2>
<div class="w-full bg-[#EAEAEA] rounded-full h-2 mb-4">
<div class="bg-[#1A73E8] h-2 rounded-full" style="width: 15%"></div>
</div>
<div class="grid grid-cols-7 gap-1">
<div class="h-1 bg-[#1A73E8] rounded"></div>
<div class="h-1 bg-[#E8F0FE] rounded"></div>
<div class="h-1 bg-[#E8F0FE] rounded"></div>
<div class="h-1 bg-[#EAEAEA] rounded"></div>
<div class="h-1 bg-[#EAEAEA] rounded"></div>
<div class="h-1 bg-[#EAEAEA] rounded"></div>
<div class="h-1 bg-[#EAEAEA] rounded"></div>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-soft p-6 mb-8">
<h2 class="font-semibold mb-4">Actions recommandées</h2>
<div class="space-y-4">
<div class="flex items-start space-x-4 p-3 border border-[#EAEAEA] rounded-lg">
<div class="bg-[#E8F0FE] p-2 rounded-lg">
<i data-feather="check-circle" class="text-[#1A73E8]"></i>
</div>
<div class="flex-1">
<p class="font-medium">Compléter le questionnaire stratégique</p>
<p class="text-sm text-gray-600">20 questions pour valider votre projet de cession</p>
</div>
<a href="/app/decision" class="text-[#1A73E8] text-sm font-medium">Commencer →</a>
</div>
<div class="flex items-start space-x-4 p-3 border border-[#EAEAEA] rounded-lg">
<div class="bg-[#E8F0FE] p-2 rounded-lg">
<i data-feather="upload" class="text-[#1A73E8]"></i>
</div>
<div class="flex-1">
<p class="font-medium">Télécharger vos bilans financiers</p>
<p class="text-sm text-gray-600">Préparez les 3 derniers exercices pour l'étape 2</p>
</div>
<a href="/app/preparation" class="text-[#1A73E8] text-sm font-medium">Préparer →</a>
</div>
</div>
</div>
<div class="bg-white rounded-xl shadow-soft p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="font-semibold">Historique des missions</h2>
<a href="/app/missions" class="text-[#1A73E8] text-sm font-medium">Voir tout →</a>
</div>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="text-left text-sm text-gray-500 border-b border-[#EAEAEA]">
<th class="pb-2">Nom</th>
<th class="pb-2">Secteur</th>
<th class="pb-2">CA</th>
<th class="pb-2">Statut</th>
<th class="pb-2">Progression</th>
</tr>
</thead>
<tbody class="divide-y divide-[#EAEAEA]">
<tr>
<td class="py-3">Boulangerie Saint-Honoré</td>
<td class="py-3">Alimentaire</td>
<td class="py-3">250K€</td>
<td class="py-3"><span class="text-xs bg-[#E8F0FE] text-[#1A73E8] px-2 py-1 rounded">En cours</span></td>
<td class="py-3">
<div class="w-full bg-[#EAEAEA] rounded-full h-2">
<div class="bg-[#1A73E8] h-2 rounded-full" style="width: 15%"></div>
</div>
</td>
</tr>
<tr>
<td class="py-3">Garage Auto 2000</td>
<td class="py-3">Automobile</td>
<td class="py-3">450K€</td>
<td class="py-3"><span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">Terminé</span></td>
<td class="py-3">
<div class="w-full bg-[#EAEAEA] rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 100%"></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
<!-- Copilot Button -->
<button onclick="toggleCopilot()" class="fixed bottom-6 right-6 bg-[#1A73E8] text-white p-4 rounded-full shadow-lg hover:bg-blue-700 transition z-10">
<i data-feather="star"></i>
</button>
<!-- Copilot Panel -->
<div class="copilot-panel fixed top-0 right-0 h-full w-full md:w-[420px] bg-white shadow-lg z-30">
<div class="h-full flex flex-col">
<div class="p-4 border-b border-[#EAEAEA] flex justify-between items-center">
<h3 class="font-semibold">Copilot IA</h3>
<button onclick="toggleCopilot()">
<i data-feather="x"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto p-4">
<div class="space-y-4">
<div class="bg-[#F7F9FC] p-4 rounded-lg">
<p class="font-medium mb-2">Bonjour Pierre, comment puis-je vous aider aujourd'hui ?</p>
<p class="text-sm">Je suis là pour vous guider dans votre projet de cession. Voici quelques actions que je peux vous proposer :</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-3">
<button class="border border-[#EAEAEA] p-3 rounded-lg text-left hover:bg-[#F7F9FC] transition">
<p class="font-medium text-sm">Analyser mes données</p>
<p class="text-xs text-gray-500">Optimisez votre valorisation</p>
</button>
<button class="border border-[#EAEAEA] p-3 rounded-lg text-left hover:bg-[#F7F9FC] transition">
<p class="font-medium text-sm">Générer un teaser</p>
<p class="text-xs text-gray-500">Présentation de votre entreprise</p>
</button>
<button class="border border-[#EAEAEA] p-3 rounded-lg text-left hover:bg-[#F7F9FC] transition">
<p class="font-medium text-sm">Trouver des repreneurs</p>
<p class="text-xs text-gray-500">Profil idéal et matching</p>
</button>
<button class="border border-[#EAEAEA] p-3 rounded-lg text-left hover:bg-[#F7F9FC] transition">
<p class="font-medium text-sm">Vérifier ma checklist</p>
<p class="text-xs text-gray-500">Étapes à ne pas oublier</p>
</button>
</div>
</div>
<div class="mt-6 p-4 bg-[#F7F9FC] rounded-lg">
<h4 class="font-medium text-sm mb-2">Discussion en cours</h4>
<div class="space-y-3">
<div class="flex items-start space-x-2">
<div class="bg-[#E8F0FE] p-2 rounded-full">
<i data-feather="user" class="text-[#1A73E8] w-4 h-4"></i>
</div>
<div class="bg-white p-3 rounded-lg text-sm max-w-[80%]">
<p>Comment puis-je maximiser la valeur de ma boulangerie ?</p>
</div>
</div>
<div class="flex items-start space-x-2">
<div class="bg-[#1A73E8] p-2 rounded-full">
<i data-feather="star" class="text-white w-4 h-4"></i>
</div>
<div class="bg-[#E8F0FE] p-3 rounded-lg text-sm max-w-[80%]">
<p>Pour maximiser la valeur, concentrez-vous sur : 1) La stabilité des résultats, 2) La qualité de votre équipe, 3) La diversification de votre clientèle, 4) La modernisation de votre outil de production.</p>
<p class="mt-2">Voulez-vous que je génère une analyse détaillée ?</p>
</div>
</div>
</div>
</div>
</div>
<div class="p-4 border-t border-[#EAEAEA]">
<div class="relative">
<input type="text" placeholder="Poser une question au Copilot..." class="w-full border border-[#EAEAEA] rounded-lg py-2 pl-4 pr-10 focus:outline-none focus:ring-2 focus:ring-[#1A73E8] focus:border-transparent">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 text-[#1A73E8]">
<i data-feather="send"></i>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
function toggleSidebar() {
document.querySelector('.sidebar').classList.toggle('open');
}
function toggleCopilot() {
document.querySelector('.copilot-panel').classList.toggle('open');
}
// Close sidebar when clicking outside on mobile
document.addEventListener('click', function(event) {
const sidebar = document.querySelector('.sidebar');
const isClickInsideSidebar = sidebar.contains(event.target);
const isClickOnMenuButton = event.target.closest('button') && event.target.closest('button').innerHTML.includes('feather="menu"');
if (!isClickInsideSidebar && !isClickOnMenuButton && window.innerWidth < 992) {
sidebar.classList.remove('open');
}
});
</script>
</body>
</html>
|