chronos-log-analyzer-pro / analytics.html
kvazarbit's picture
(index):64 cdn.tailwindcss.com should not be used in production. To use Tailwind CSS in production, install it as a PostCSS plugin or use the Tailwind CLI: https://tailwindcss.com/docs/installation
39149dc verified
Raw History Blame Contribute Delete
3.5 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Analytics - Chronos Log Visualizer Pro</title>
<link rel="stylesheet" href="style.css">
<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>
</head>
<body class="bg-gray-900 text-white min-h-screen">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-8">
<h1 class="text-4xl font-bold mb-8 text-center">Advanced Analytics</h1>
<div class="bg-gray-800 rounded-lg p-8 mb-8">
<h2 class="text-2xl font-bold mb-6">Upload Log File for Analytics</h2>
<div class="max-w-2xl mx-auto">
<div class="border-2 border-dashed border-cyan-400 rounded-lg p-8 text-center hover:border-cyan-300 transition-colors cursor-pointer" id="analyticsDropZone">
<i data-feather="upload-cloud" class="w-16 h-16 mx-auto mb-4 text-cyan-400"></i>
<p class="text-lg mb-4">Drag & drop your Chronos log file here</p>
<p class="text-gray-400 mb-6">or</p>
<input type="file" id="analyticsFileInput" accept=".log,.txt" class="hidden">
<button onclick="document.getElementById('analyticsFileInput').click()" class="bg-cyan-600 hover:bg-cyan-500 text-white px-6 py-3 rounded-lg font-semibold transition-colors">
Choose File
</button>
</div>
</div>
</div>
<div id="analyticsContent" class="hidden">
<!-- Advanced charts and analytics will be displayed here -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-xl font-semibold mb-4">Performance Metrics</h3>
<canvas id="performanceChart" height="300"></canvas>
</div>
<div class="bg-gray-800 rounded-lg p-6">
<h3 class="text-xl font-semibold mb-4">Risk Analysis</h3>
<canvas id="riskChart" height="300"></canvas>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script>
feather.replace();
// Basic file handling for analytics page
document.getElementById('analyticsFileInput').addEventListener('change', function(e) {
const file = e.target.files[0];
if (file) {
processAnalyticsFile(file);
}
});
document.getElementById('analyticsDropZone').addEventListener('click', function() {
document.getElementById('analyticsFileInput').click();
});
function processAnalyticsFile(file) {
const reader = new FileReader();
reader.onload = function(e) {
document.getElementById('analyticsContent').classList.remove('hidden');
// Here you would process the file and display analytics
console.log('Analytics file loaded:', file.name);
};
reader.readAsText(file);
}
</script>
</body>
</html>