Spaces:
Running
Running
File size: 32,102 Bytes
e241f1f 1c7e610 e241f1f 1c7e610 e241f1f | 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 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EY Quantum Safe</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: #f9fafb;
}
.sidebar {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.risk-high {
border-left: 4px solid #EF4444;
}
.risk-medium {
border-left: 4px solid #F59E0B;
}
.risk-low {
border-left: 4px solid #10B981;
}
</style>
</head>
<body class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-gray-900 text-white w-64 flex-shrink-0 flex flex-col">
<div class="p-4 border-b border-gray-700">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-yellow-400 flex items-center justify-center">
<i data-feather="shield" class="text-gray-900"></i>
</div>
<h1 class="text-xl font-bold">EY Quantum Safe</h1>
</div>
</div>
<nav class="flex-1 overflow-y-auto p-4 space-y-1">
<a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-gray-800 text-yellow-400">
<i data-feather="layout" class="w-5 h-5"></i>
<span>Dashboard</span>
</a>
<a href="cboms.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800 text-gray-300 hover:text-white">
<i data-feather="file-text" class="w-5 h-5"></i>
<span>CBOMs</span>
</a>
<a href="assets.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800 text-gray-300 hover:text-white">
<i data-feather="lock" class="w-5 h-5"></i>
<span>Assets</span>
</a>
<a href="integrations.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800 text-gray-300 hover:text-white">
<i data-feather="link" class="w-5 h-5"></i>
<span>Integrations</span>
</a>
<a href="analytics.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-gray-800 text-gray-300 hover:text-white">
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
<span>Analytics</span>
</a>
</nav>
<div class="p-4 border-t border-gray-700">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
<i data-feather="user" class="text-gray-300"></i>
</div>
<div>
<p class="text-sm font-medium">Josep Mateu</p>
<p class="text-xs text-gray-400">Administrator</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top Navigation -->
<header class="bg-white border-b border-gray-200 flex items-center justify-between p-4">
<div class="flex items-center space-x-4">
<button class="md:hidden text-gray-500">
<i data-feather="menu"></i>
</button>
<h2 class="text-xl font-semibold text-gray-800">Dashboard</h2>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="search"
class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Search..."
class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
</div>
<button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200">
<i data-feather="bell"></i>
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<!-- Quick Stats -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Active CBOMs</p>
<p class="text-3xl font-bold mt-1">24</p>
</div>
<div class="p-3 rounded-lg bg-yellow-50 text-yellow-600">
<i data-feather="file-text" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-3"><span class="text-green-500">+3</span> from last week</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Total Assets</p>
<p class="text-3xl font-bold mt-1">1,284</p>
</div>
<div class="p-3 rounded-lg bg-blue-50 text-blue-600">
<i data-feather="lock" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-3"><span class="text-green-500">+12%</span> from last week</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Risk Assessments</p>
<p class="text-3xl font-bold mt-1">18</p>
</div>
<div class="p-3 rounded-lg bg-red-50 text-red-600">
<i data-feather="alert-triangle" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-3"><span class="text-red-500">-2</span> from last week</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-6 card-hover transition-all duration-300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Integrations</p>
<p class="text-3xl font-bold mt-1">3/4</p>
</div>
<div class="p-3 rounded-lg bg-green-50 text-green-600">
<i data-feather="link" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-500 mt-3">1 integration needs attention</p>
</div>
</div>
<!-- Main Content Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-6">
<!-- Quick Actions -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Quick Actions</h3>
<button class="text-sm text-yellow-600 hover:text-yellow-700">View All</button>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<button
class="flex items-center space-x-3 p-4 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-3 rounded-lg bg-yellow-100 text-yellow-600">
<i data-feather="plus" class="w-5 h-5"></i>
</div>
<span class="font-medium">New CBOM</span>
</button>
<button
class="flex items-center space-x-3 p-4 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-3 rounded-lg bg-blue-100 text-blue-600">
<i data-feather="download" class="w-5 h-5"></i>
</div>
<span class="font-medium">Import CBOM</span>
</button>
<button
class="flex items-center space-x-3 p-4 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-3 rounded-lg bg-red-100 text-red-600">
<i data-feather="alert-triangle" class="w-5 h-5"></i>
</div>
<span class="font-medium">Risk Assessment</span>
</button>
<button
class="flex items-center space-x-3 p-4 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-3 rounded-lg bg-green-100 text-green-600">
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
</div>
<span class="font-medium">Generate Report</span>
</button>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-xl shadow-sm p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg">Recent Activity</h3>
<button class="text-sm text-yellow-600 hover:text-yellow-700">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-yellow-100 text-yellow-600 mt-1">
<i data-feather="file-plus" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">New CBOM created</p>
<p class="text-sm text-gray-500">"Enterprise Web App" CBOM was created by Josep Mateu
</p>
<p class="text-xs text-gray-400 mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-blue-100 text-blue-600 mt-1">
<i data-feather="download" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">CBOM imported</p>
<p class="text-sm text-gray-500">"Payment Gateway" CBOM was imported from Venafi</p>
<p class="text-xs text-gray-400 mt-1">5 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-red-100 text-red-600 mt-1">
<i data-feather="alert-triangle" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Risk assessment completed</p>
<p class="text-sm text-gray-500">High risk found in "Legacy System" CBOM</p>
<p class="text-xs text-gray-400 mt-1">1 day ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-green-100 text-green-600 mt-1">
<i data-feather="check-circle" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium">Integration connected</p>
<p class="text-sm text-gray-500">Tanium integration was successfully connected</p>
<p class="text-xs text-gray-400 mt-1">2 days ago</p>
</div>
</div>
</div>
</div>
</div>
<!-- Right Column -->
<div class="space-y-6">
<!-- Integration Status -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h3 class="font-semibold text-lg mb-4">Integration Status</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 border border-gray-200 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-purple-100 text-purple-600">
<i data-feather="cpu" class="w-5 h-5"></i>
</div>
<span class="font-medium">Venafi</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Connected</span>
</div>
<div class="flex items-center justify-between p-3 border border-gray-200 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-blue-100 text-blue-600">
<i data-feather="server" class="w-5 h-5"></i>
</div>
<span class="font-medium">Tanium</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">Connected</span>
</div>
<div class="flex items-center justify-between p-3 border border-gray-200 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-yellow-100 text-yellow-600">
<i data-feather="shield" class="w-5 h-5"></i>
</div>
<span class="font-medium">SandboxAQ</span>
</div>
<span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">Disconnected</span>
</div>
<div class="flex items-center justify-between p-3 border border-gray-200 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-gray-100 text-gray-600">
<i data-feather="cloud" class="w-5 h-5"></i>
</div>
<span class="font-medium">AWS KMS</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">Pending</span>
</div>
</div>
</div>
<!-- Risk Distribution -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h3 class="font-semibold text-lg mb-4">Risk Distribution</h3>
<div class="h-48 flex items-center justify-center">
<!-- Placeholder for chart -->
<div
class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400">
<i data-feather="pie-chart" class="w-12 h-12"></i>
</div>
</div>
<div class="mt-4 space-y-2">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<span class="text-sm">High Risk</span>
</div>
<span class="text-sm font-medium">12%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<span class="text-sm">Medium Risk</span>
</div>
<span class="text-sm font-medium">34%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-green-500"></div>
<span class="text-sm">Low Risk</span>
</div>
<span class="text-sm font-medium">54%</span>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<!-- Floating Modals -->
<div id="newCbomModal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-50">
<div class="bg-white rounded-xl shadow-lg w-full max-w-md">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold">Create New CBOM</h3>
<button onclick="closeModal('newCbomModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">CBOM Name</label>
<input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
<textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400" rows="3"></textarea>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Template</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400">
<option>Web Application</option>
<option>Mobile Application</option>
<option>Microservices</option>
<option>Legacy System</option>
</select>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('newCbomModal')" class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
Cancel
</button>
<button class="px-4 py-2 bg-yellow-400 text-gray-900 rounded-lg hover:bg-yellow-500">
Create CBOM
</button>
</div>
</div>
</div>
</div>
<div id="importCbomModal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-50">
<div class="bg-white rounded-xl shadow-lg w-full max-w-md">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold">Import CBOM</h3>
<button onclick="closeModal('importCbomModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div class="border-2 border-dashed border-gray-300 rounded-lg p-8 text-center">
<i data-feather="upload" class="w-12 h-12 mx-auto text-gray-400 mb-3"></i>
<p class="text-sm text-gray-500 mb-2">Drag and drop your CBOM file here</p>
<p class="text-xs text-gray-400 mb-4">Supports .json, .xml, .cbom formats</p>
<button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200">
Select File
</button>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="overwrite" class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
<label for="overwrite" class="text-sm text-gray-700">Overwrite existing CBOM with same name</label>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('importCbomModal')" class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
Cancel
</button>
<button class="px-4 py-2 bg-yellow-400 text-gray-900 rounded-lg hover:bg-yellow-500">
Import CBOM
</button>
</div>
</div>
</div>
</div>
<div id="riskAssessmentModal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-50">
<div class="bg-white rounded-xl shadow-lg w-full max-w-md">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold">Run Risk Assessment</h3>
<button onclick="closeModal('riskAssessmentModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Select CBOM</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400">
<option>Enterprise Web App</option>
<option>Payment Gateway</option>
<option>Legacy System</option>
<option>Mobile Banking</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Assessment Type</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400">
<option>Quantum Risk Only</option>
<option>Full Cryptographic Assessment</option>
<option>Compliance Check</option>
</select>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="includeDependencies" class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400" checked>
<label for="includeDependencies" class="text-sm text-gray-700">Include dependencies in assessment</label>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('riskAssessmentModal')" class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
Cancel
</button>
<button class="px-4 py-2 bg-yellow-400 text-gray-900 rounded-lg hover:bg-yellow-500">
Run Assessment
</button>
</div>
</div>
</div>
</div>
<div id="generateReportModal" class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-50">
<div class="bg-white rounded-xl shadow-lg w-full max-w-md">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold">Generate Report</h3>
<button onclick="closeModal('generateReportModal')" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Report Type</label>
<select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-yellow-400">
<option>Quantum Risk Assessment</option>
<option>Compliance Report</option>
<option>Executive Summary</option>
<option>Technical Details</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Format</label>
<div class="grid grid-cols-3 gap-2">
<button class="p-2 border border-gray-300 rounded-lg hover:bg-gray-50">
<i data-feather="file-text" class="w-5 h-5 mx-auto text-gray-600"></i>
<span class="text-xs block mt-1">PDF</span>
</button>
<button class="p-2 border border-gray-300 rounded-lg hover:bg-gray-50">
<i data-feather="file-text" class="w-5 h-5 mx-auto text-gray-600"></i>
<span class="text-xs block mt-1">DOCX</span>
</button>
<button class="p-2 border border-gray-300 rounded-lg hover:bg-gray-50">
<i data-feather="file-text" class="w-5 h-5 mx-auto text-gray-600"></i>
<span class="text-xs block mt-1">CSV</span>
</button>
</div>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="includeCharts" class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400" checked>
<label for="includeCharts" class="text-sm text-gray-700">Include charts and graphs</label>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('generateReportModal')" class="px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-50">
Cancel
</button>
<button class="px-4 py-2 bg-yellow-400 text-gray-900 rounded-lg hover:bg-yellow-500">
Generate Report
</button>
</div>
</div>
</div>
</div>
<script>
AOS.init();
feather.replace();
// Modal functions
function openModal(modalId) {
document.getElementById(modalId).classList.remove('hidden');
}
function closeModal(modalId) {
document.getElementById(modalId).classList.add('hidden');
}
// Connect quick action buttons to modals
document.addEventListener('DOMContentLoaded', function() {
// New CBOM
document.querySelector('button:has(span:contains("New CBOM"))').addEventListener('click', function() {
openModal('newCbomModal');
});
// Import CBOM
document.querySelector('button:has(span:contains("Import CBOM"))').addEventListener('click', function() {
openModal('importCbomModal');
});
// Risk Assessment
document.querySelector('button:has(span:contains("Risk Assessment"))').addEventListener('click', function() {
openModal('riskAssessmentModal');
});
// Generate Report
document.querySelector('button:has(span:contains("Generate Report"))').addEventListener('click', function() {
openModal('generateReportModal');
});
});
// Simple animation for cards on load
document.addEventListener('DOMContentLoaded', function () {
const cards = document.querySelectorAll('.card-hover');
cards.forEach((card, index) => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
card.style.transition = 'all 0.5s ease ' + (index * 0.1) + 's';
setTimeout(() => {
card.style.opacity = '1';
card.style.transform = 'translateY(0)';
}, 100);
});
});
</script>
</body>
</html> |