Add 2 files
Browse files- README.md +7 -5
- index.html +622 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: humm
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: blue
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,622 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>User Analytics Dashboard</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
10 |
+
<style>
|
11 |
+
.custom-scrollbar::-webkit-scrollbar {
|
12 |
+
width: 6px;
|
13 |
+
height: 6px;
|
14 |
+
}
|
15 |
+
.custom-scrollbar::-webkit-scrollbar-track {
|
16 |
+
background: #f1f1f1;
|
17 |
+
border-radius: 10px;
|
18 |
+
}
|
19 |
+
.custom-scrollbar::-webkit-scrollbar-thumb {
|
20 |
+
background: #888;
|
21 |
+
border-radius: 10px;
|
22 |
+
}
|
23 |
+
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
|
24 |
+
background: #555;
|
25 |
+
}
|
26 |
+
.animate-pulse {
|
27 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
28 |
+
}
|
29 |
+
@keyframes pulse {
|
30 |
+
0%, 100% { opacity: 1; }
|
31 |
+
50% { opacity: 0.5; }
|
32 |
+
}
|
33 |
+
</style>
|
34 |
+
</head>
|
35 |
+
<body class="bg-gray-50">
|
36 |
+
<div class="flex h-screen overflow-hidden">
|
37 |
+
<!-- Sidebar -->
|
38 |
+
<div class="hidden md:flex md:flex-shrink-0">
|
39 |
+
<div class="flex flex-col w-64 bg-indigo-700 text-white">
|
40 |
+
<div class="flex items-center justify-center h-16 px-4 border-b border-indigo-600">
|
41 |
+
<h1 class="text-xl font-bold">AnalyticsPro</h1>
|
42 |
+
</div>
|
43 |
+
<div class="flex flex-col flex-grow px-4 py-4 overflow-y-auto">
|
44 |
+
<nav class="flex-1 space-y-2">
|
45 |
+
<a href="#" class="flex items-center px-4 py-2 text-sm font-medium rounded-md bg-indigo-800 text-white">
|
46 |
+
<i class="fas fa-chart-pie mr-3"></i>
|
47 |
+
Dashboard
|
48 |
+
</a>
|
49 |
+
<a href="#" class="flex items-center px-4 py-2 text-sm font-medium rounded-md text-indigo-200 hover:bg-indigo-600 hover:text-white">
|
50 |
+
<i class="fas fa-users mr-3"></i>
|
51 |
+
Users
|
52 |
+
</a>
|
53 |
+
<a href="#" class="flex items-center px-4 py-2 text-sm font-medium rounded-md text-indigo-200 hover:bg-indigo-600 hover:text-white">
|
54 |
+
<i class="fas fa-cog mr-3"></i>
|
55 |
+
Settings
|
56 |
+
</a>
|
57 |
+
<a href="#" class="flex items-center px-4 py-2 text-sm font-medium rounded-md text-indigo-200 hover:bg-indigo-600 hover:text-white">
|
58 |
+
<i class="fas fa-bell mr-3"></i>
|
59 |
+
Notifications
|
60 |
+
</a>
|
61 |
+
<a href="#" class="flex items-center px-4 py-2 text-sm font-medium rounded-md text-indigo-200 hover:bg-indigo-600 hover:text-white">
|
62 |
+
<i class="fas fa-file-alt mr-3"></i>
|
63 |
+
Reports
|
64 |
+
</a>
|
65 |
+
</nav>
|
66 |
+
</div>
|
67 |
+
<div class="p-4 border-t border-indigo-600">
|
68 |
+
<div class="flex items-center">
|
69 |
+
<img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile">
|
70 |
+
<div class="ml-3">
|
71 |
+
<p class="text-sm font-medium text-white">Sarah Johnson</p>
|
72 |
+
<p class="text-xs font-medium text-indigo-200">Admin</p>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<!-- Main content -->
|
80 |
+
<div class="flex flex-col flex-1 overflow-hidden">
|
81 |
+
<!-- Top navigation -->
|
82 |
+
<div class="flex items-center justify-between h-16 px-6 bg-white border-b border-gray-200">
|
83 |
+
<div class="flex items-center">
|
84 |
+
<button class="md:hidden text-gray-500 focus:outline-none">
|
85 |
+
<i class="fas fa-bars"></i>
|
86 |
+
</button>
|
87 |
+
<h2 class="ml-4 text-lg font-semibold text-gray-800">User Analytics Dashboard</h2>
|
88 |
+
</div>
|
89 |
+
<div class="flex items-center space-x-4">
|
90 |
+
<button class="p-1 text-gray-500 rounded-full hover:bg-gray-100 focus:outline-none">
|
91 |
+
<i class="fas fa-search"></i>
|
92 |
+
</button>
|
93 |
+
<button class="p-1 text-gray-500 rounded-full hover:bg-gray-100 focus:outline-none">
|
94 |
+
<i class="fas fa-bell"></i>
|
95 |
+
</button>
|
96 |
+
<div class="relative">
|
97 |
+
<button class="flex items-center text-gray-500 focus:outline-none" id="user-menu">
|
98 |
+
<span class="sr-only">Open user menu</span>
|
99 |
+
<img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile">
|
100 |
+
</button>
|
101 |
+
<div class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10" id="user-dropdown">
|
102 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Profile</a>
|
103 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
|
104 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
<!-- Main content area -->
|
111 |
+
<div class="flex-1 overflow-auto p-6 custom-scrollbar">
|
112 |
+
<!-- User filter and search -->
|
113 |
+
<div class="bg-white rounded-lg shadow-sm p-4 mb-6">
|
114 |
+
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
|
115 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4 md:mb-0">User Analytics</h3>
|
116 |
+
<div class="flex flex-col md:flex-row space-y-3 md:space-y-0 md:space-x-3">
|
117 |
+
<div class="relative">
|
118 |
+
<select class="block appearance-none w-full bg-gray-100 border border-gray-200 text-gray-700 py-2 px-4 pr-8 rounded-md leading-tight focus:outline-none focus:bg-white focus:border-indigo-500">
|
119 |
+
<option>All Users</option>
|
120 |
+
<option>Active Users</option>
|
121 |
+
<option>Inactive Users</option>
|
122 |
+
<option>New Users</option>
|
123 |
+
</select>
|
124 |
+
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
|
125 |
+
<i class="fas fa-chevron-down"></i>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
<div class="relative">
|
129 |
+
<input type="text" placeholder="Search users..." class="block w-full bg-gray-100 border border-gray-200 text-gray-700 py-2 px-4 pr-8 rounded-md leading-tight focus:outline-none focus:bg-white focus:border-indigo-500">
|
130 |
+
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700">
|
131 |
+
<i class="fas fa-search"></i>
|
132 |
+
</div>
|
133 |
+
</div>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
|
138 |
+
<!-- User stats cards -->
|
139 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
|
140 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
141 |
+
<div class="flex items-center justify-between">
|
142 |
+
<div>
|
143 |
+
<p class="text-sm font-medium text-gray-600">Total Users</p>
|
144 |
+
<p class="text-2xl font-bold text-gray-800">1,248</p>
|
145 |
+
<p class="text-xs font-medium text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i>12.5% from last month</p>
|
146 |
+
</div>
|
147 |
+
<div class="bg-indigo-100 p-3 rounded-full">
|
148 |
+
<i class="fas fa-users text-indigo-600 text-xl"></i>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
</div>
|
152 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
153 |
+
<div class="flex items-center justify-between">
|
154 |
+
<div>
|
155 |
+
<p class="text-sm font-medium text-gray-600">Active Users</p>
|
156 |
+
<p class="text-2xl font-bold text-gray-800">856</p>
|
157 |
+
<p class="text-xs font-medium text-green-500 mt-1"><i class="fas fa-arrow-up mr-1"></i>8.3% from last month</p>
|
158 |
+
</div>
|
159 |
+
<div class="bg-green-100 p-3 rounded-full">
|
160 |
+
<i class="fas fa-check-circle text-green-600 text-xl"></i>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
165 |
+
<div class="flex items-center justify-between">
|
166 |
+
<div>
|
167 |
+
<p class="text-sm font-medium text-gray-600">Avg. Session</p>
|
168 |
+
<p class="text-2xl font-bold text-gray-800">4.2 min</p>
|
169 |
+
<p class="text-xs font-medium text-red-500 mt-1"><i class="fas fa-arrow-down mr-1"></i>1.2% from last month</p>
|
170 |
+
</div>
|
171 |
+
<div class="bg-blue-100 p-3 rounded-full">
|
172 |
+
<i class="fas fa-clock text-blue-600 text-xl"></i>
|
173 |
+
</div>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
177 |
+
<div class="flex items-center justify-between">
|
178 |
+
<div>
|
179 |
+
<p class="text-sm font-medium text-gray-600">Bounce Rate</p>
|
180 |
+
<p class="text-2xl font-bold text-gray-800">32.7%</p>
|
181 |
+
<p class="text-xs font-medium text-green-500 mt-1"><i class="fas fa-arrow-down mr-1"></i>5.1% from last month</p>
|
182 |
+
</div>
|
183 |
+
<div class="bg-purple-100 p-3 rounded-full">
|
184 |
+
<i class="fas fa-chart-line text-purple-600 text-xl"></i>
|
185 |
+
</div>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<!-- Charts and user table -->
|
191 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
|
192 |
+
<!-- User growth chart -->
|
193 |
+
<div class="bg-white rounded-lg shadow-sm p-6 lg:col-span-2">
|
194 |
+
<div class="flex items-center justify-between mb-4">
|
195 |
+
<h4 class="text-md font-medium text-gray-800">User Growth</h4>
|
196 |
+
<div class="flex items-center space-x-2">
|
197 |
+
<button class="text-xs px-3 py-1 bg-indigo-100 text-indigo-700 rounded-full">Monthly</button>
|
198 |
+
<button class="text-xs px-3 py-1 bg-gray-100 text-gray-700 rounded-full">Weekly</button>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
<div class="h-64">
|
202 |
+
<canvas id="userGrowthChart"></canvas>
|
203 |
+
</div>
|
204 |
+
</div>
|
205 |
+
|
206 |
+
<!-- User activity chart -->
|
207 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
208 |
+
<h4 class="text-md font-medium text-gray-800 mb-4">Activity Distribution</h4>
|
209 |
+
<div class="h-64">
|
210 |
+
<canvas id="activityDistributionChart"></canvas>
|
211 |
+
</div>
|
212 |
+
</div>
|
213 |
+
</div>
|
214 |
+
|
215 |
+
<!-- User locations and device usage -->
|
216 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
|
217 |
+
<!-- User locations chart -->
|
218 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
219 |
+
<h4 class="text-md font-medium text-gray-800 mb-4">User Locations</h4>
|
220 |
+
<div class="h-64">
|
221 |
+
<canvas id="userLocationsChart"></canvas>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
|
225 |
+
<!-- Device usage chart -->
|
226 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
227 |
+
<h4 class="text-md font-medium text-gray-800 mb-4">Device Usage</h4>
|
228 |
+
<div class="h-64">
|
229 |
+
<canvas id="deviceUsageChart"></canvas>
|
230 |
+
</div>
|
231 |
+
</div>
|
232 |
+
|
233 |
+
<!-- Top users -->
|
234 |
+
<div class="bg-white rounded-lg shadow-sm p-6">
|
235 |
+
<h4 class="text-md font-medium text-gray-800 mb-4">Top Active Users</h4>
|
236 |
+
<div class="space-y-4">
|
237 |
+
<div class="flex items-center">
|
238 |
+
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/32.jpg" alt="User">
|
239 |
+
<div class="flex-1">
|
240 |
+
<p class="text-sm font-medium text-gray-800">Michael Johnson</p>
|
241 |
+
<div class="flex items-center mt-1">
|
242 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
243 |
+
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 90%"></div>
|
244 |
+
</div>
|
245 |
+
<span class="text-xs text-gray-500 ml-2">90%</span>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
<div class="flex items-center">
|
250 |
+
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User">
|
251 |
+
<div class="flex-1">
|
252 |
+
<p class="text-sm font-medium text-gray-800">Sarah Williams</p>
|
253 |
+
<div class="flex items-center mt-1">
|
254 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
255 |
+
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 85%"></div>
|
256 |
+
</div>
|
257 |
+
<span class="text-xs text-gray-500 ml-2">85%</span>
|
258 |
+
</div>
|
259 |
+
</div>
|
260 |
+
</div>
|
261 |
+
<div class="flex items-center">
|
262 |
+
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/75.jpg" alt="User">
|
263 |
+
<div class="flex-1">
|
264 |
+
<p class="text-sm font-medium text-gray-800">David Miller</p>
|
265 |
+
<div class="flex items-center mt-1">
|
266 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
267 |
+
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 78%"></div>
|
268 |
+
</div>
|
269 |
+
<span class="text-xs text-gray-500 ml-2">78%</span>
|
270 |
+
</div>
|
271 |
+
</div>
|
272 |
+
</div>
|
273 |
+
<div class="flex items-center">
|
274 |
+
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/women/68.jpg" alt="User">
|
275 |
+
<div class="flex-1">
|
276 |
+
<p class="text-sm font-medium text-gray-800">Emily Davis</p>
|
277 |
+
<div class="flex items-center mt-1">
|
278 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
279 |
+
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 72%"></div>
|
280 |
+
</div>
|
281 |
+
<span class="text-xs text-gray-500 ml-2">72%</span>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
</div>
|
285 |
+
<div class="flex items-center">
|
286 |
+
<img class="w-10 h-10 rounded-full mr-3" src="https://randomuser.me/api/portraits/men/91.jpg" alt="User">
|
287 |
+
<div class="flex-1">
|
288 |
+
<p class="text-sm font-medium text-gray-800">Robert Wilson</p>
|
289 |
+
<div class="flex items-center mt-1">
|
290 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5">
|
291 |
+
<div class="bg-indigo-600 h-1.5 rounded-full" style="width: 65%"></div>
|
292 |
+
</div>
|
293 |
+
<span class="text-xs text-gray-500 ml-2">65%</span>
|
294 |
+
</div>
|
295 |
+
</div>
|
296 |
+
</div>
|
297 |
+
</div>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
|
301 |
+
<!-- User activity table -->
|
302 |
+
<div class="bg-white rounded-lg shadow-sm overflow-hidden">
|
303 |
+
<div class="p-4 border-b border-gray-200">
|
304 |
+
<h4 class="text-md font-medium text-gray-800">Recent User Activity</h4>
|
305 |
+
</div>
|
306 |
+
<div class="overflow-x-auto">
|
307 |
+
<table class="min-w-full divide-y divide-gray-200">
|
308 |
+
<thead class="bg-gray-50">
|
309 |
+
<tr>
|
310 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User</th>
|
311 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
|
312 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
313 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Activity</th>
|
314 |
+
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
315 |
+
</tr>
|
316 |
+
</thead>
|
317 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
318 |
+
<tr>
|
319 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
320 |
+
<div class="flex items-center">
|
321 |
+
<div class="flex-shrink-0 h-10 w-10">
|
322 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
|
323 |
+
</div>
|
324 |
+
<div class="ml-4">
|
325 |
+
<div class="text-sm font-medium text-gray-900">Michael Johnson</div>
|
326 |
+
<div class="text-sm text-gray-500">Joined 3 months ago</div>
|
327 |
+
</div>
|
328 |
+
</div>
|
329 |
+
</td>
|
330 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
331 |
+
<div class="text-sm text-gray-900">[email protected]</div>
|
332 |
+
</td>
|
333 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
334 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
335 |
+
</td>
|
336 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2 hours ago</td>
|
337 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
338 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
|
339 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
340 |
+
</td>
|
341 |
+
</tr>
|
342 |
+
<tr>
|
343 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
344 |
+
<div class="flex items-center">
|
345 |
+
<div class="flex-shrink-0 h-10 w-10">
|
346 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
|
347 |
+
</div>
|
348 |
+
<div class="ml-4">
|
349 |
+
<div class="text-sm font-medium text-gray-900">Sarah Williams</div>
|
350 |
+
<div class="text-sm text-gray-500">Joined 5 months ago</div>
|
351 |
+
</div>
|
352 |
+
</div>
|
353 |
+
</td>
|
354 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
355 |
+
<div class="text-sm text-gray-900">[email protected]</div>
|
356 |
+
</td>
|
357 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
358 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
359 |
+
</td>
|
360 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">5 hours ago</td>
|
361 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
362 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
|
363 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
364 |
+
</td>
|
365 |
+
</tr>
|
366 |
+
<tr>
|
367 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
368 |
+
<div class="flex items-center">
|
369 |
+
<div class="flex-shrink-0 h-10 w-10">
|
370 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/75.jpg" alt="">
|
371 |
+
</div>
|
372 |
+
<div class="ml-4">
|
373 |
+
<div class="text-sm font-medium text-gray-900">David Miller</div>
|
374 |
+
<div class="text-sm text-gray-500">Joined 1 month ago</div>
|
375 |
+
</div>
|
376 |
+
</div>
|
377 |
+
</td>
|
378 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
379 |
+
<div class="text-sm text-gray-900">[email protected]</div>
|
380 |
+
</td>
|
381 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
382 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
383 |
+
</td>
|
384 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 day ago</td>
|
385 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
386 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
|
387 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
388 |
+
</td>
|
389 |
+
</tr>
|
390 |
+
<tr>
|
391 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
392 |
+
<div class="flex items-center">
|
393 |
+
<div class="flex-shrink-0 h-10 w-10">
|
394 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
|
395 |
+
</div>
|
396 |
+
<div class="ml-4">
|
397 |
+
<div class="text-sm font-medium text-gray-900">Emily Davis</div>
|
398 |
+
<div class="text-sm text-gray-500">Joined 2 weeks ago</div>
|
399 |
+
</div>
|
400 |
+
</div>
|
401 |
+
</td>
|
402 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
403 |
+
<div class="text-sm text-gray-900">[email protected]</div>
|
404 |
+
</td>
|
405 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
406 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
|
407 |
+
</td>
|
408 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">3 days ago</td>
|
409 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
410 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
|
411 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
412 |
+
</td>
|
413 |
+
</tr>
|
414 |
+
<tr>
|
415 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
416 |
+
<div class="flex items-center">
|
417 |
+
<div class="flex-shrink-0 h-10 w-10">
|
418 |
+
<img class="h-10 w-10 rounded-full" src="https://randomuser.me/api/portraits/men/91.jpg" alt="">
|
419 |
+
</div>
|
420 |
+
<div class="ml-4">
|
421 |
+
<div class="text-sm font-medium text-gray-900">Robert Wilson</div>
|
422 |
+
<div class="text-sm text-gray-500">Joined 8 months ago</div>
|
423 |
+
</div>
|
424 |
+
</div>
|
425 |
+
</td>
|
426 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
427 |
+
<div class="text-sm text-gray-900">[email protected]</div>
|
428 |
+
</td>
|
429 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
430 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">Inactive</span>
|
431 |
+
</td>
|
432 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1 week ago</td>
|
433 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
|
434 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
|
435 |
+
<a href="#" class="text-indigo-600 hover:text-indigo-900">Edit</a>
|
436 |
+
</td>
|
437 |
+
</tr>
|
438 |
+
</tbody>
|
439 |
+
</table>
|
440 |
+
</div>
|
441 |
+
<div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200">
|
442 |
+
<div class="flex-1 flex justify-between items-center">
|
443 |
+
<span class="text-sm text-gray-700">Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">24</span> users</span>
|
444 |
+
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
445 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
446 |
+
<span class="sr-only">Previous</span>
|
447 |
+
<i class="fas fa-chevron-left"></i>
|
448 |
+
</a>
|
449 |
+
<a href="#" aria-current="page" class="z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 1 </a>
|
450 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 2 </a>
|
451 |
+
<a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium"> 3 </a>
|
452 |
+
<a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
453 |
+
<span class="sr-only">Next</span>
|
454 |
+
<i class="fas fa-chevron-right"></i>
|
455 |
+
</a>
|
456 |
+
</nav>
|
457 |
+
</div>
|
458 |
+
</div>
|
459 |
+
</div>
|
460 |
+
</div>
|
461 |
+
</div>
|
462 |
+
</div>
|
463 |
+
|
464 |
+
<script>
|
465 |
+
// User dropdown menu
|
466 |
+
document.getElementById('user-menu').addEventListener('click', function() {
|
467 |
+
document.getElementById('user-dropdown').classList.toggle('hidden');
|
468 |
+
});
|
469 |
+
|
470 |
+
// Close dropdown when clicking outside
|
471 |
+
window.addEventListener('click', function(e) {
|
472 |
+
if (!e.target.matches('#user-menu') && !e.target.closest('#user-menu')) {
|
473 |
+
document.getElementById('user-dropdown').classList.add('hidden');
|
474 |
+
}
|
475 |
+
});
|
476 |
+
|
477 |
+
// Charts initialization
|
478 |
+
document.addEventListener('DOMContentLoaded', function() {
|
479 |
+
// User growth chart
|
480 |
+
const userGrowthCtx = document.getElementById('userGrowthChart').getContext('2d');
|
481 |
+
const userGrowthChart = new Chart(userGrowthCtx, {
|
482 |
+
type: 'line',
|
483 |
+
data: {
|
484 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
|
485 |
+
datasets: [{
|
486 |
+
label: 'New Users',
|
487 |
+
data: [120, 190, 170, 220, 260, 300, 340],
|
488 |
+
backgroundColor: 'rgba(99, 102, 241, 0.2)',
|
489 |
+
borderColor: 'rgba(99, 102, 241, 1)',
|
490 |
+
borderWidth: 2,
|
491 |
+
tension: 0.4,
|
492 |
+
fill: true
|
493 |
+
}, {
|
494 |
+
label: 'Active Users',
|
495 |
+
data: [200, 230, 250, 280, 300, 350, 380],
|
496 |
+
backgroundColor: 'rgba(79, 70, 229, 0.2)',
|
497 |
+
borderColor: 'rgba(79, 70, 229, 1)',
|
498 |
+
borderWidth: 2,
|
499 |
+
tension: 0.4,
|
500 |
+
fill: true
|
501 |
+
}]
|
502 |
+
},
|
503 |
+
options: {
|
504 |
+
responsive: true,
|
505 |
+
maintainAspectRatio: false,
|
506 |
+
plugins: {
|
507 |
+
legend: {
|
508 |
+
position: 'top',
|
509 |
+
}
|
510 |
+
},
|
511 |
+
scales: {
|
512 |
+
y: {
|
513 |
+
beginAtZero: true
|
514 |
+
}
|
515 |
+
}
|
516 |
+
}
|
517 |
+
});
|
518 |
+
|
519 |
+
// Activity distribution chart
|
520 |
+
const activityDistributionCtx = document.getElementById('activityDistributionChart').getContext('2d');
|
521 |
+
const activityDistributionChart = new Chart(activityDistributionCtx, {
|
522 |
+
type: 'doughnut',
|
523 |
+
data: {
|
524 |
+
labels: ['Logins', 'Page Views', 'Purchases', 'Downloads', 'Signups'],
|
525 |
+
datasets: [{
|
526 |
+
data: [35, 25, 20, 15, 5],
|
527 |
+
backgroundColor: [
|
528 |
+
'rgba(99, 102, 241, 0.8)',
|
529 |
+
'rgba(79, 70, 229, 0.8)',
|
530 |
+
'rgba(67, 56, 202, 0.8)',
|
531 |
+
'rgba(55, 48, 163, 0.8)',
|
532 |
+
'rgba(49, 46, 129, 0.8)'
|
533 |
+
],
|
534 |
+
borderColor: [
|
535 |
+
'rgba(255, 255, 255, 1)',
|
536 |
+
'rgba(255, 255, 255, 1)',
|
537 |
+
'rgba(255, 255, 255, 1)',
|
538 |
+
'rgba(255, 255, 255, 1)',
|
539 |
+
'rgba(255, 255, 255, 1)'
|
540 |
+
],
|
541 |
+
borderWidth: 1
|
542 |
+
}]
|
543 |
+
},
|
544 |
+
options: {
|
545 |
+
responsive: true,
|
546 |
+
maintainAspectRatio: false,
|
547 |
+
plugins: {
|
548 |
+
legend: {
|
549 |
+
position: 'right',
|
550 |
+
}
|
551 |
+
},
|
552 |
+
cutout: '70%'
|
553 |
+
}
|
554 |
+
});
|
555 |
+
|
556 |
+
// User locations chart
|
557 |
+
const userLocationsCtx = document.getElementById('userLocationsChart').getContext('2d');
|
558 |
+
const userLocationsChart = new Chart(userLocationsCtx, {
|
559 |
+
type: 'bar',
|
560 |
+
data: {
|
561 |
+
labels: ['USA', 'UK', 'Canada', 'Australia', 'Germany', 'France'],
|
562 |
+
datasets: [{
|
563 |
+
label: 'Users by Country',
|
564 |
+
data: [420, 380, 250, 180, 120, 90],
|
565 |
+
backgroundColor: 'rgba(99, 102, 241, 0.7)',
|
566 |
+
borderColor: 'rgba(99, 102, 241, 1)',
|
567 |
+
borderWidth: 1
|
568 |
+
}]
|
569 |
+
},
|
570 |
+
options: {
|
571 |
+
responsive: true,
|
572 |
+
maintainAspectRatio: false,
|
573 |
+
plugins: {
|
574 |
+
legend: {
|
575 |
+
display: false
|
576 |
+
}
|
577 |
+
},
|
578 |
+
scales: {
|
579 |
+
y: {
|
580 |
+
beginAtZero: true
|
581 |
+
}
|
582 |
+
}
|
583 |
+
}
|
584 |
+
});
|
585 |
+
|
586 |
+
// Device usage chart
|
587 |
+
const deviceUsageCtx = document.getElementById('deviceUsageChart').getContext('2d');
|
588 |
+
const deviceUsageChart = new Chart(deviceUsageCtx, {
|
589 |
+
type: 'polarArea',
|
590 |
+
data: {
|
591 |
+
labels: ['Desktop', 'Mobile', 'Tablet', 'Other'],
|
592 |
+
datasets: [{
|
593 |
+
data: [65, 25, 8, 2],
|
594 |
+
backgroundColor: [
|
595 |
+
'rgba(99, 102, 241, 0.7)',
|
596 |
+
'rgba(79, 70, 229, 0.7)',
|
597 |
+
'rgba(67, 56, 202, 0.7)',
|
598 |
+
'rgba(55, 48, 163, 0.7)'
|
599 |
+
],
|
600 |
+
borderColor: [
|
601 |
+
'rgba(255, 255, 255, 1)',
|
602 |
+
'rgba(255, 255, 255, 1)',
|
603 |
+
'rgba(255, 255, 255, 1)',
|
604 |
+
'rgba(255, 255, 255, 1)'
|
605 |
+
],
|
606 |
+
borderWidth: 1
|
607 |
+
}]
|
608 |
+
},
|
609 |
+
options: {
|
610 |
+
responsive: true,
|
611 |
+
maintainAspectRatio: false,
|
612 |
+
plugins: {
|
613 |
+
legend: {
|
614 |
+
position: 'right',
|
615 |
+
}
|
616 |
+
}
|
617 |
+
}
|
618 |
+
});
|
619 |
+
});
|
620 |
+
</script>
|
621 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=nmtalhp/humm" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
|
622 |
+
</html>
|