cbom-builder-front / analytics.html
haramb3-2's picture
Upload 5 files
7f5ee74 verified
Raw
History Blame Contribute Delete
28.6 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Analytics Dashboard - 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>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></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-critical {
background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
border-left: 4px solid #DC2626;
}
.risk-high {
background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
border-left: 4px solid #F59E0B;
}
.risk-medium {
background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
border-left: 4px solid #3B82F6;
}
.risk-low {
background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
border-left: 4px solid #16A34A;
}
.chart-container {
position: relative;
height: 300px;
margin-bottom: 1rem;
}
.progress-bar {
transition: width 0.3s ease;
}
.metric-card {
transition: all 0.3s ease;
}
.metric-card:hover {
transform: scale(1.02);
}
</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 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 bg-gray-800 text-yellow-400">
<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">Analytics 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 analytics..."
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="download" class="w-4 h-4 inline mr-2"></i>
Export Report
</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">Overview</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Quantum Risk</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Asset Analysis</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Dependencies</button>
<button class="px-6 py-4 font-medium text-gray-500 hover:text-gray-700">Trends</button>
</div>
</div>
<!-- Analytics Overview -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<!-- Total Risk Score -->
<div class="bg-white rounded-xl shadow-sm p-6 metric-card">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Overall Risk Score</p>
<p class="text-3xl font-bold mt-1 text-red-600">7.2/10</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>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Risk Level</span>
<span>72%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full progress-bar" style="width: 72%"></div>
</div>
</div>
</div>
<!-- Quantum Vulnerable Assets -->
<div class="bg-white rounded-xl shadow-sm p-6 metric-card">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Quantum Vulnerable</p>
<p class="text-3xl font-bold mt-1 text-yellow-600">342</p>
</div>
<div class="p-3 rounded-lg bg-yellow-50 text-yellow-600">
<i data-feather="zap" class="w-6 h-6"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Of 1,284 total assets</span>
<span>27%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-yellow-500 h-2 rounded-full progress-bar" style="width: 27%"></div>
</div>
</div>
</div>
<!-- Migration Priority -->
<div class="bg-white rounded-xl shadow-sm p-6 metric-card">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Migration Priority</p>
<p class="text-3xl font-bold mt-1 text-blue-600">156</p>
</div>
<div class="p-3 rounded-lg bg-blue-50 text-blue-600">
<i data-feather="trending-up" class="w-6 h-6"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Critical/High priority</span>
<span>46%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-blue-500 h-2 rounded-full progress-bar" style="width: 46%"></div>
</div>
</div>
</div>
<!-- Compliance Status -->
<div class="bg-white rounded-xl shadow-sm p-6 metric-card">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Compliance Score</p>
<p class="text-3xl font-bold mt-1 text-green-600">8.4/10</p>
</div>
<div class="p-3 rounded-lg bg-green-50 text-green-600">
<i data-feather="check-circle" class="w-6 h-6"></i>
</div>
</div>
<div class="mt-4">
<div class="flex justify-between text-xs text-gray-500 mb-1">
<span>Standards met</span>
<span>84%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full progress-bar" style="width: 84%"></div>
</div>
</div>
</div>
</div>
<!-- Main Analytics Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Column - Charts -->
<div class="lg:col-span-2 space-y-6">
<!-- Risk Distribution Chart -->
<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">Risk Distribution by Asset Type</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 text-sm bg-gray-100 rounded-lg hover:bg-gray-200">
<i data-feather="download" class="w-4 h-4"></i>
</button>
<button class="px-3 py-1 text-sm bg-gray-100 rounded-lg hover:bg-gray-200">
<i data-feather="maximize" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="chart-container">
<canvas id="riskChart"></canvas>
</div>
</div>
<!-- Quantum Timeline Chart -->
<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">Quantum Threat Timeline</h3>
<div class="flex space-x-2">
<select class="px-3 py-1 text-sm border border-gray-300 rounded-lg">
<option>5 Year Horizon</option>
<option>10 Year Horizon</option>
<option>20 Year Horizon</option>
</select>
</div>
</div>
<div class="chart-container">
<canvas id="quantumTimelineChart"></canvas>
</div>
</div>
<!-- Asset Performance Trends -->
<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">Asset Discovery Trends</h3>
<div class="flex space-x-2">
<button
class="px-3 py-1 text-sm bg-yellow-400 text-gray-900 rounded-lg hover:bg-yellow-500">
Last 30 days
</button>
<button class="px-3 py-1 text-sm border border-gray-300 rounded-lg hover:bg-gray-50">
Last 90 days
</button>
</div>
</div>
<div class="chart-container">
<canvas id="trendsChart"></canvas>
</div>
</div>
</div>
<!-- Right Column - Analytics Cards -->
<div class="space-y-6">
<!-- Critical Findings -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h3 class="font-semibold text-lg mb-4">Critical Findings</h3>
<div class="space-y-3">
<div class="p-4 rounded-lg risk-critical">
<div class="flex items-start space-x-3">
<i data-feather="alert-circle" class="w-5 h-5 text-red-600 mt-0.5"></i>
<div>
<p class="font-medium text-red-800">SHA-1 Still in Use</p>
<p class="text-sm text-red-600">Found in 23 certificates</p>
<p class="text-xs text-red-500 mt-1">Immediate replacement required</p>
</div>
</div>
</div>
<div class="p-4 rounded-lg risk-high">
<div class="flex items-start space-x-3">
<i data-feather="clock" class="w-5 h-5 text-yellow-600 mt-0.5"></i>
<div>
<p class="font-medium text-yellow-800">RSA-1024 Keys</p>
<p class="text-sm text-yellow-600">87 keys need upgrade</p>
<p class="text-xs text-yellow-500 mt-1">Upgrade by Q2 2025</p>
</div>
</div>
</div>
<div class="p-4 rounded-lg risk-medium">
<div class="flex items-start space-x-3">
<i data-feather="info" class="w-5 h-5 text-blue-600 mt-0.5"></i>
<div>
<p class="font-medium text-blue-800">TLS 1.2 Usage</p>
<p class="text-sm text-blue-600">134 implementations found</p>
<p class="text-xs text-blue-500 mt-1">Plan TLS 1.3 migration</p>
</div>
</div>
</div>
</div>
</div>
<!-- CBOM Health Score -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h3 class="font-semibold text-lg mb-4">CBOM Health Score</h3>
<div class="text-center mb-4">
<div class="relative inline-flex items-center justify-center w-32 h-32">
<svg class="w-32 h-32 transform -rotate-90">
<circle cx="64" cy="64" r="56" stroke="#e5e7eb" stroke-width="8" fill="none">
</circle>
<circle cx="64" cy="64" r="56" stroke="#f59e0b" stroke-width="8" fill="none"
stroke-dasharray="351.86" stroke-dashoffset="105.56" stroke-linecap="round">
</circle>
</svg>
<div class="absolute text-center">
<span class="text-2xl font-bold text-gray-800">7.2</span>
<span class="text-sm text-gray-500 block">/ 10</span>
</div>
</div>
</div>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span class="text-sm text-gray-600">Asset Coverage</span>
<span class="text-sm font-medium">92%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-sm text-gray-600">Risk Assessment</span>
<span class="text-sm font-medium">78%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-sm text-gray-600">Compliance</span>
<span class="text-sm font-medium">84%</span>
</div>
<div class="flex justify-between items-center">
<span class="text-sm text-gray-600">Dependencies</span>
<span class="text-sm font-medium">67%</span>
</div>
</div>
</div>
<!-- Integration Status -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h3 class="font-semibold text-lg mb-4">Data Sources</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-green-100 text-green-600">
<i data-feather="cpu" class="w-4 h-4"></i>
</div>
<div>
<span class="font-medium text-sm">Venafi</span>
<p class="text-xs text-gray-500">247 certificates</p>
</div>
</div>
<div class="w-3 h-3 bg-green-500 rounded-full"></div>
</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-4 h-4"></i>
</div>
<div>
<span class="font-medium text-sm">Tanium</span>
<p class="text-xs text-gray-500">1,842 assets</p>
</div>
</div>
<div class="w-3 h-3 bg-green-500 rounded-full"></div>
</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-4 h-4"></i>
</div>
<div>
<span class="font-medium text-sm">SandboxAQ</span>
<p class="text-xs text-gray-500">Risk analysis</p>
</div>
</div>
<div class="w-3 h-3 bg-red-500 rounded-full"></div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white rounded-xl shadow-sm p-6">
<h3 class="font-semibold text-lg mb-4">Quick Actions</h3>
<div class="space-y-2">
<button
class="w-full flex items-center space-x-3 p-3 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-2 rounded-lg bg-red-100 text-red-600">
<i data-feather="zap" class="w-4 h-4"></i>
</div>
<span class="text-sm font-medium">Run Quantum Assessment</span>
</button>
<button
class="w-full flex items-center space-x-3 p-3 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-2 rounded-lg bg-blue-100 text-blue-600">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</div>
<span class="text-sm font-medium">Refresh Asset Data</span>
</button>
<button
class="w-full flex items-center space-x-3 p-3 border border-gray-200 rounded-lg hover:border-yellow-400 hover:bg-yellow-50 transition-colors">
<div class="p-2 rounded-lg bg-green-100 text-green-600">
<i data-feather="file-text" class="w-4 h-4"></i>
</div>
<span class="text-sm font-medium">Generate Report</span>
</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');
});
});
// Chart configurations
const chartConfig = {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
position: 'bottom',
}
}
};
// Risk Distribution Chart
const riskCtx = document.getElementById('riskChart').getContext('2d');
new Chart(riskCtx, {
type: 'doughnut',
data: {
labels: ['Critical', 'High', 'Medium', 'Low'],
datasets: [{
data: [154, 342, 437, 351],
backgroundColor: ['#DC2626', '#F59E0B', '#3B82F6', '#16A34A'],
borderWidth: 0
}]
},
options: chartConfig
});
// Quantum Timeline Chart
const quantumCtx = document.getElementById('quantumTimelineChart').getContext('2d');
new Chart(quantumCtx, {
type: 'line',
data: {
labels: ['2025', '2027', '2029', '2031', '2033', '2035'],
datasets: [{
label: 'Quantum Threat Level',
data: [2.1, 3.4, 5.2, 6.8, 8.1, 9.3],
borderColor: '#F59E0B',
backgroundColor: 'rgba(245, 158, 11, 0.1)',
fill: true,
tension: 0.4
}, {
label: 'Migration Progress',
data: [0, 15, 35, 58, 75, 92],
borderColor: '#16A34A',
backgroundColor: 'rgba(22, 163, 74, 0.1)',
fill: true,
tension: 0.4
}]
},
options: {
...chartConfig,
scales: {
y: {
beginAtZero: true,
max: 100
}
}
}
});
// Trends Chart
const trendsCtx = document.getElementById('trendsChart').getContext('2d');
new Chart(trendsCtx, {
type: 'bar',
data: {
labels: ['Week 1', 'Week 2', 'Week 3', 'Week 4'],
datasets: [{
label: 'New Assets',
data: [42, 38, 56, 31],
backgroundColor: '#3B82F6'
}, {
label: 'Risk Assessments',
data: [28, 45, 33, 52],
backgroundColor: '#F59E0B'
}, {
label: 'Migrations',
data: [15, 23, 28, 19],
backgroundColor: '#16A34A'
}]
},
options: chartConfig
});
// Animate progress bars on load
document.addEventListener('DOMContentLoaded', function () {
const progressBars = document.querySelectorAll('.progress-bar');
progressBars.forEach(bar => {
const width = bar.style.width;
bar.style.width = '0%';
setTimeout(() => {
bar.style.width = width;
}, 500);
});
});
</script>
</body>
</html>