Download analytics.html from ereezy/sopilot-ymca-operations-navigator: direct link, hf CLI and curl.
- Browser
- Download file 12.4 kB
-
https://huggingface.co/spaces/ereezy/sopilot-ymca-operations-navigator/resolve/main/analytics.html
- Command line
-
hf download hf://spaces/ereezy/sopilot-ymca-operations-navigator/analytics.html
-
curl -L -o analytics.html https://huggingface.co/spaces/ereezy/sopilot-ymca-operations-navigator/resolve/main/analytics.html
12.4 kB
| <html lang="en" class="dark"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Analytics - SOPilot</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script> | |
| tailwind.config = { | |
| darkMode: 'class', | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#dc2626', | |
| secondary: '#000000' | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| </head> | |
| <body class="bg-gray-900 text-white min-h-screen"> | |
| <!-- Navigation --> | |
| <nav class="bg-black border-b border-red-600 sticky top-0 z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i data-feather="activity" class="text-red-500 w-8 h-8 mr-2"></i> | |
| <span class="text-xl font-bold text-white">SOPilot</span> | |
| </div> | |
| <div class="hidden md:ml-6 md:flex md:space-x-4"> | |
| <a href="index.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Dashboard</a> | |
| <a href="sops.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">SOPs</a> | |
| <a href="create.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Create</a> | |
| <a href="search.html" class="text-gray-300 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Search</a> | |
| <a href="#" class="bg-red-600 text-white px-3 py-2 rounded-md text-sm font-medium">Analytics</a> | |
| </div> | |
| </div> | |
| <div class="flex items-center"> | |
| <button class="relative inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700"> | |
| <i data-feather="user" class="w-4 h-4 mr-2"></i> | |
| Staff Portal | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Main Content --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <div class="mb-8"> | |
| <h1 class="text-3xl font-bold text-white">SOP Analytics Dashboard</h1> | |
| <p class="text-gray-400 mt-2">Track usage, compliance, and performance metrics across all departments</p> | |
| </div> | |
| <!-- Stats Overview --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Total SOPs</p> | |
| <h3 class="text-2xl font-bold text-white">156</h3> | |
| <p class="text-green-400 text-sm">↑ 12% this month</p> | |
| </div> | |
| <div class="w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center"> | |
| <i data-feather="file-text" class="text-white w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Active Users</p> | |
| <h3 class="text-2xl font-bold text-white">89</h3> | |
| <p class="text-green-400 text-sm">↑ 8% this month</p> | |
| </div> | |
| <div class="w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center"> | |
| <i data-feather="users" class="text-white w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Compliance Rate</p> | |
| <h3 class="text-2xl font-bold text-white">94%</h3> | |
| <p class="text-green-400 text-sm">↑ 3% this month</p> | |
| </div> | |
| <div class="w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center"> | |
| <i data-feather="check-circle" class="text-white w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-800 rounded-xl p-6 border border-gray-700"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-gray-400 text-sm">Avg. Completion Time</p> | |
| <h3 class="text-2xl font-bold text-white">18min</h3> | |
| <p class="text-red-400 text-sm">↓ 5% this month</p> | |
| </div> | |
| <div class="w-12 h-12 bg-red-600 rounded-lg flex items-center justify-center"> | |
| <i data-feather="clock" class="text-white w-6 h-6"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts Section --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-8"> | |
| <!-- SOP Usage by Department --> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <h3 class="text-xl font-semibold text-white mb-4">SOP Usage by Department</h3> | |
| <canvas id="departmentChart" class="w-full h-64"></canvas> | |
| </div> | |
| <!-- Monthly Activity --> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <h3 class="text-xl font-semibold text-white mb-4">Monthly Activity</h3> | |
| <canvas id="monthlyActivityChart" class="w-full h-64"></canvas> | |
| </div> | |
| <!-- Top SOPs --> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <h3 class="text-xl font-semibold text-white mb-4">Most Accessed SOPs</h3> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-gray-300">Pool Chemical Balancing</span> | |
| <span class="text-red-400 font-medium">203 views</span> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-gray-300">Member Check-in Process</span> | |
| <span class="text-red-400 font-medium">187 views</span> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-gray-300">Equipment Sanitization</span> | |
| <span class="text-red-400 font-medium">156 views</span> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-gray-300">Emergency Response Protocol</span> | |
| <span class="text-red-400 font-medium">142 views</span> | |
| </div> | |
| <div class="flex justify-between items-center"> | |
| <span class="text-gray-300">Locker Room Cleaning</span> | |
| <span class="text-red-400 font-medium">128 views</span> | |
| </div> | |
| </div> | |
| <!-- Recent Activity --> | |
| <div class="bg-gray-800 rounded-xl p-6"> | |
| <h3 class="text-xl font-semibold text-white mb-4">Recent Activity</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-center text-sm"> | |
| <div class="w-8 h-8 bg-red-600 rounded-full flex items-center justify-center mr-3"> | |
| <i data-feather="edit-3" class="text-white w-4 h-4"></i> | |
| </div> | |
| <div> | |
| <div class="text-white">SOP Updated: Pool Chemical Balancing</div> | |
| <div class="text-gray-400">2 hours ago</div> | |
| </div> | |
| <div class="flex items-center text-sm"> | |
| <div class="w-8 h-8 bg-red-600 rounded-full flex items-center justify-center mr-3"> | |
| <i data-feather="eye" class="text-white w-4 h-4"></i> | |
| </div> | |
| <div> | |
| <div class="text-white">New SOP Created: Summer Camp Setup</div> | |
| <div class="text-gray-400">5 hours ago</div> | |
| </div> | |
| <div class="flex items-center text-sm"> | |
| <div class="w-8 h-8 bg-red-600 rounded-full flex items-center justify-center mr-3"> | |
| <i data-feather="user" class="text-white w-4 h-4"></i> | |
| </div> | |
| <div> | |
| <div class="text-white">SOP Reviewed: Emergency Evacuation</div> | |
| <div class="text-gray-400">1 day ago</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| feather.replace(); | |
| // Department Usage Chart | |
| const deptCtx = document.getElementById('departmentChart').getContext('2d'); | |
| new Chart(deptCtx, { | |
| type: 'doughnut', | |
| data: { | |
| labels: ['Aquatics', 'Fitness', 'Front Desk', 'Maintenance', 'Child Care'], | |
| datasets: [{ | |
| data: [35, 28, 20, 12, 5], | |
| backgroundColor: [ | |
| '#dc2626', '#ef4444', '#f87171', '#fca5a5', '#fecaca'] | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| position: 'bottom', | |
| labels: { | |
| color: '#fff' | |
| } | |
| } | |
| } | |
| } | |
| }); | |
| // Monthly Activity Chart | |
| const monthlyCtx = document.getElementById('monthlyActivityChart').getContext('2d'); | |
| new Chart(monthlyCtx, { | |
| type: 'line', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], | |
| datasets: [{ | |
| label: 'SOP Views', | |
| data: [120, 145, 168, 189, 203, 187], | |
| borderColor: '#dc2626', | |
| backgroundColor: 'rgba(220, 38, 38, 0.1)', | |
| tension: 0.4, | |
| fill: true | |
| }] | |
| }, | |
| options: { | |
| responsive: true, | |
| plugins: { | |
| legend: { | |
| display: false | |
| } | |
| }, | |
| scales: { | |
| y: { | |
| beginAtZero: true, | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| }, | |
| x: { | |
| grid: { | |
| color: 'rgba(255, 255, 255, 0.1)' | |
| } | |
| } | |
| } | |
| }); | |
| }); | |
| </script> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/footer.js"></script> | |
| </body> | |
| </html> |