Download index.html from Specthor/demosight-analytics-dashboard: direct link, hf CLI and curl.
- Browser
- Download file 9.65 kB
-
https://huggingface.co/spaces/Specthor/demosight-analytics-dashboard/resolve/main/index.html
- Command line
-
hf download hf://spaces/Specthor/demosight-analytics-dashboard/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Specthor/demosight-analytics-dashboard/resolve/main/index.html
9.65 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>DemoSight Analytics Dashboard</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <link rel="stylesheet" href="style.css"> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: '#3b82f6', | |
| secondary: '#10b981', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="min-h-screen"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center"> | |
| <h1 class="text-2xl font-bold text-gray-800"> | |
| <i data-feather="pie-chart" class="inline mr-2 text-primary"></i> | |
| DemoSight Analytics | |
| </h1> | |
| <div class="flex items-center space-x-4"> | |
| <button class="p-2 rounded-full bg-gray-100 text-gray-600 hover:bg-gray-200"> | |
| <i data-feather="bell"></i> | |
| </button> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/people/40x40/1" alt="User" class="w-8 h-8 rounded-full"> | |
| <span class="ml-2 text-sm font-medium text-gray-700">Admin</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8"> | |
| <!-- Dashboard Title --> | |
| <div class="mb-8"> | |
| <h2 class="text-xl font-semibold text-gray-800">Demographics Overview</h2> | |
| <p class="text-gray-600">Current population statistics and distribution</p> | |
| </div> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Total Population</p> | |
| <p class="mt-1 text-3xl font-semibold text-gray-900">12,458</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-50 text-primary"> | |
| <i data-feather="users"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Male</p> | |
| <p class="mt-1 text-3xl font-semibold text-gray-900">6,732</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-50 text-primary"> | |
| <i data-feather="user"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Female</p> | |
| <p class="mt-1 text-3xl font-semibold text-gray-900">5,726</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-50 text-primary"> | |
| <i data-feather="user"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Avg. Age</p> | |
| <p class="mt-1 text-3xl font-semibold text-gray-900">34.2</p> | |
| </div> | |
| <div class="p-3 rounded-full bg-blue-50 text-primary"> | |
| <i data-feather="calendar"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts Section --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8"> | |
| <!-- Gender Distribution by Program --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg font-medium text-gray-900">Gender Distribution by Program</h3> | |
| <div class="relative"> | |
| <select class="appearance-none bg-gray-50 border border-gray-300 text-gray-700 py-2 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-primary text-sm"> | |
| <option>All Programs</option> | |
| <option>Program A</option> | |
| <option>Program B</option> | |
| </select> | |
| <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> | |
| <i data-feather="chevron-down" class="w-4"></i> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="h-80"> | |
| <canvas id="genderChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Age Distribution --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Age Distribution</h3> | |
| <div class="h-80"> | |
| <canvas id="ageChart"></canvas> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Population Map --> | |
| <div class="bg-white rounded-lg shadow p-6 mb-8"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Population Density Map</h3> | |
| <div class="h-96 bg-gray-100 rounded-lg flex items-center justify-center"> | |
| <div class="text-center"> | |
| <i data-feather="map" class="w-16 h-16 mx-auto text-gray-400"></i> | |
| <p class="mt-2 text-gray-500">Interactive population density visualization</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Program Comparison --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h3 class="text-lg font-medium text-gray-900 mb-4">Program Comparison</h3> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Program</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Male</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Female</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Avg. Age</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Program A</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">7,842</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4,215</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3,627</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">32.5</td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">Program B</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">4,616</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2,517</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2,099</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">36.8</td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |