cbom-builder-front / assets.html
haramb3-2's picture
Upload 5 files
7f5ee74 verified
Raw
History Blame Contribute Delete
34 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Assets Management - 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);
}
.tab-active {
border-bottom: 3px solid #F59E0B;
color: #111827;
}
.risk-high {
border-left: 4px solid #EF4444;
}
.risk-medium {
border-left: 4px solid #F59E0B;
}
.risk-low {
border-left: 4px solid #10B981;
}
.table-container {
max-height: 600px;
overflow-y: auto;
}
.table-container::-webkit-scrollbar {
width: 6px;
}
.table-container::-webkit-scrollbar-track {
background: #f1f1f1;
}
.table-container::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}
.table-container::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
</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="index.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="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 bg-gray-800 text-yellow-400">
<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">Guillem Pétriz</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">Assets Management</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 assets..."
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="px-4 py-2 bg-yellow-400 text-gray-900 rounded-lg font-medium hover:bg-yellow-500 transition-colors">
<i data-feather="plus" class="w-4 h-4 inline mr-2"></i>
Add Asset
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6 bg-gray-50">
<!-- Tabs Navigation -->
<div class="bg-white rounded-xl shadow-sm mb-6">
<div class="flex border-b border-gray-200 overflow-x-auto">
<button class="px-6 py-4 font-medium tab-active">Asset List</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Algorithms</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Protocols</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Certificates</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Crypto Materials</button>
</div>
</div>
<!-- Filters and Controls -->
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
<div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-4">
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Risk Level</label>
<select
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-400">
<option value="">All Levels</option>
<option value="high">High Risk</option>
<option value="medium">Medium Risk</option>
<option value="low">Low Risk</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Quantum Vulnerable</label>
<select
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-400">
<option value="">All</option>
<option value="true">Vulnerable</option>
<option value="false">Secure</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">Asset Type</label>
<select
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-400">
<option value="">All Types</option>
<option value="algorithm">Algorithm</option>
<option value="protocol">Protocol</option>
<option value="certificate">Certificate</option>
<option value="crypto-material">Crypto Material</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-2">CBOM</label>
<select
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-400">
<option value="">All CBOMs</option>
<option value="enterprise">Enterprise Web App</option>
<option value="payment">Payment Gateway</option>
<option value="legacy">Legacy System</option>
</select>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<button
class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition-colors">
<i data-feather="filter" class="w-4 h-4 inline mr-2"></i>
Apply Filters
</button>
<button
class="px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 transition-colors">
<i data-feather="refresh-cw" class="w-4 h-4 inline mr-2"></i>
Reset
</button>
</div>
<div class="flex items-center space-x-2">
<button class="p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="download" class="w-5 h-5"></i>
</button>
<button class="p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="settings" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
<!-- Statistics Dashboard -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-6">
<div class="bg-white rounded-xl shadow-sm p-4 text-center">
<div
class="w-12 h-12 bg-blue-100 text-blue-600 rounded-full flex items-center justify-center mx-auto mb-3">
<i data-feather="lock" class="w-6 h-6"></i>
</div>
<p class="text-2xl font-bold text-gray-800">1,284</p>
<p class="text-sm text-gray-600">Total Assets</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-4 text-center">
<div
class="w-12 h-12 bg-red-100 text-red-600 rounded-full flex items-center justify-center mx-auto mb-3">
<i data-feather="alert-triangle" class="w-6 h-6"></i>
</div>
<p class="text-2xl font-bold text-gray-800">154</p>
<p class="text-sm text-gray-600">High Risk</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-4 text-center">
<div
class="w-12 h-12 bg-yellow-100 text-yellow-600 rounded-full flex items-center justify-center mx-auto mb-3">
<i data-feather="alert-circle" class="w-6 h-6"></i>
</div>
<p class="text-2xl font-bold text-gray-800">437</p>
<p class="text-sm text-gray-600">Medium Risk</p>
</div>
<div class="bg-white rounded-xl shadow-sm p-4 text-center">
<div
class="w-12 h-12 bg-green-100 text-green-600 rounded-full flex items-center justify-center mx-auto mb-3">
<i data-feather="shield" class="w-6 h-6"></i>
</div>
<p class="text-2xl font-bold text-gray-800">693</p>
<p class="text-sm text-gray-600">Quantum Secure</p>
</div>
</div>
<!-- Asset Table -->
<div class="bg-white rounded-xl shadow-sm overflow-hidden">
<div class="p-6 border-b border-gray-200">
<div class="flex items-center justify-between">
<h3 class="font-semibold text-lg">Assets</h3>
<div class="flex items-center space-x-2">
<span class="text-sm text-gray-500">1-10 of 1,284 assets</span>
<button class="p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="chevron-left" class="w-4 h-4"></i>
</button>
<button class="p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg">
<i data-feather="chevron-right" class="w-4 h-4"></i>
</button>
</div>
</div>
</div>
<div class="table-container">
<table class="w-full">
<thead class="bg-gray-50">
<tr>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
<input type="checkbox"
class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Name</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Type</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Version</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Risk Level</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Quantum</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
CBOM</th>
<th
class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="hover:bg-gray-50 risk-high">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox"
class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div
class="w-8 h-8 bg-red-100 text-red-600 rounded-full flex items-center justify-center mr-3">
<i data-feather="alert-triangle" class="w-4 h-4"></i>
</div>
<div>
<div class="font-medium text-gray-900">SHA-1</div>
<div class="text-sm text-gray-500">Hash algorithm</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Algorithm</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">1.0</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">High</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">Vulnerable</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Legacy System</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="hover:bg-gray-50 risk-medium">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox"
class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div
class="w-8 h-8 bg-yellow-100 text-yellow-600 rounded-full flex items-center justify-center mr-3">
<i data-feather="alert-circle" class="w-4 h-4"></i>
</div>
<div>
<div class="font-medium text-gray-900">TLS 1.2</div>
<div class="text-sm text-gray-500">Security protocol</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full">Protocol</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">1.2</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-800 rounded-full">Medium</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Secure</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Enterprise Web App
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="hover:bg-gray-50 risk-low">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox"
class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div
class="w-8 h-8 bg-green-100 text-green-600 rounded-full flex items-center justify-center mr-3">
<i data-feather="shield" class="w-4 h-4"></i>
</div>
<div>
<div class="font-medium text-gray-900">AES-256</div>
<div class="text-sm text-gray-500">Encryption algorithm</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Algorithm</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2.0</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Low</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Secure</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Payment Gateway</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<!-- Additional rows would follow the same pattern -->
<tr class="hover:bg-gray-50 risk-high">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox"
class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div
class="w-8 h-8 bg-red-100 text-red-600 rounded-full flex items-center justify-center mr-3">
<i data-feather="alert-triangle" class="w-4 h-4"></i>
</div>
<div>
<div class="font-medium text-gray-900">RSA-1024</div>
<div class="text-sm text-gray-500">Asymmetric key</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-gray-100 text-gray-800 rounded-full">Crypto
Material</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">1.0</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">High</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">Vulnerable</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Legacy System</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
<tr class="hover:bg-gray-50 risk-low">
<td class="px-6 py-4 whitespace-nowrap">
<input type="checkbox"
class="rounded border-gray-300 text-yellow-400 focus:ring-yellow-400">
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div
class="w-8 h-8 bg-green-100 text-green-600 rounded-full flex items-center justify-center mr-3">
<i data-feather="shield" class="w-4 h-4"></i>
</div>
<div>
<div class="font-medium text-gray-900">ECC-256</div>
<div class="text-sm text-gray-500">Elliptic curve</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-gray-100 text-gray-800 rounded-full">Crypto
Material</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2.1</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Low</span>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span
class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Secure</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Enterprise Web App</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<div class="flex space-x-2">
<button class="text-blue-600 hover:text-blue-900">
<i data-feather="edit" class="w-4 h-4"></i>
</button>
<button class="text-red-600 hover:text-red-900">
<i data-feather="trash-2" class="w-4 h-4"></i>
</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="px-6 py-4 border-t border-gray-200 bg-gray-50">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<button
class="px-4 py-2 bg-red-100 text-red-700 rounded-lg text-sm hover:bg-red-200 transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete Selected
</button>
<button
class="px-4 py-2 bg-yellow-400 text-gray-900 rounded-lg text-sm hover:bg-yellow-500 transition-colors">
<i data-feather="edit" class="w-4 h-4 inline mr-2"></i>
Edit Selected
</button>
</div>
<div class="flex items-center space-x-4">
<button
class="px-4 py-2 border border-gray-300 rounded-lg text-sm hover:bg-gray-50 transition-colors">
<i data-feather="download" class="w-4 h-4 inline mr-2"></i>
Export to CSV
</button>
<button
class="px-4 py-2 border border-gray-300 rounded-lg text-sm hover:bg-gray-50 transition-colors">
<i data-feather="download" class="w-4 h-4 inline mr-2"></i>
Export to JSON
</button>
</div>
</div>
</div>
</div>
</main>
</div>
<script>
AOS.init();
feather.replace();
// Tab switching functionality
document.querySelectorAll('.flex button').forEach(button => {
button.addEventListener('click', function () {
document.querySelectorAll('.flex button').forEach(btn => {
btn.classList.remove('tab-active');
btn.classList.add('text-gray-500', 'hover:text-gray-700');
});
this.classList.add('tab-active');
this.classList.remove('text-gray-500', 'hover:text-gray-700');
});
});
// Select all checkbox functionality
const selectAll = document.querySelector('thead input[type="checkbox"]');
const rowCheckboxes = document.querySelectorAll('tbody input[type="checkbox"]');
selectAll.addEventListener('change', function () {
rowCheckboxes.forEach(checkbox => {
checkbox.checked = this.checked;
});
});
</script>
</body>
</html>