Caceras commited on
Commit
ee2a681
·
verified ·
1 Parent(s): 93d7d97

WEbsite structure interactive dashboard - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +404 -18
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Analyticspro Dashboard
3
- emoji: 📉
4
- colorFrom: pink
5
- colorTo: gray
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: analyticspro-dashboard
3
+ emoji: 🐳
4
+ colorFrom: yellow
5
+ colorTo: pink
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,405 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Interactive Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
9
+ <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
14
+ <style>
15
+ .sidebar {
16
+ transition: all 0.3s ease;
17
+ }
18
+ .dashboard-card:hover {
19
+ transform: translateY(-5px);
20
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
21
+ }
22
+ #globe-bg {
23
+ position: absolute;
24
+ top: 0;
25
+ left: 0;
26
+ width: 100%;
27
+ height: 100%;
28
+ z-index: -1;
29
+ opacity: 0.3;
30
+ }
31
+ </style>
32
+ </head>
33
+ <body class="bg-gray-50">
34
+ <div id="globe-bg"></div>
35
+
36
+ <div class="flex h-screen overflow-hidden">
37
+ <!-- Sidebar -->
38
+ <div class="sidebar bg-indigo-800 text-white w-64 md:w-72 flex-shrink-0 transform -translate-x-full md:translate-x-0 transition-transform duration-300 ease-in-out fixed h-full z-50" id="sidebar">
39
+ <div class="p-4 flex items-center justify-between border-b border-indigo-700">
40
+ <h1 class="text-2xl font-bold">Analytics<span class="text-indigo-300">Pro</span></h1>
41
+ <button id="sidebarToggle" class="md:hidden">
42
+ <i data-feather="x"></i>
43
+ </button>
44
+ </div>
45
+ <div class="p-4">
46
+ <div class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-700 mb-4">
47
+ <div class="w-10 h-10 rounded-full bg-indigo-500 flex items-center justify-center">
48
+ <i data-feather="user"></i>
49
+ </div>
50
+ <div>
51
+ <p class="font-medium">John Doe</p>
52
+ <p class="text-xs text-indigo-300">Admin</p>
53
+ </div>
54
+ </div>
55
+
56
+ <nav class="mt-6">
57
+ <div class="space-y-2">
58
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg bg-indigo-700 text-white">
59
+ <i data-feather="home"></i>
60
+ <span>Dashboard</span>
61
+ </a>
62
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition">
63
+ <i data-feather="bar-chart-2"></i>
64
+ <span>Analytics</span>
65
+ </a>
66
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition">
67
+ <i data-feather="users"></i>
68
+ <span>Customers</span>
69
+ </a>
70
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition">
71
+ <i data-feather="shopping-bag"></i>
72
+ <span>Products</span>
73
+ </a>
74
+ <a href="#" class="flex items-center space-x-3 p-3 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white transition">
75
+ <i data-feather="settings"></i>
76
+ <span>Settings</span>
77
+ </a>
78
+ </div>
79
+ </nav>
80
+ </div>
81
+ </div>
82
+
83
+ <!-- Main Content -->
84
+ <div class="flex-1 flex flex-col overflow-hidden ml-0 md:ml-64">
85
+ <!-- Top Navigation -->
86
+ <header class="bg-white shadow-sm z-10">
87
+ <div class="flex items-center justify-between p-4">
88
+ <button id="mobileSidebarToggle" class="md:hidden">
89
+ <i data-feather="menu"></i>
90
+ </button>
91
+ <div class="flex items-center space-x-4">
92
+ <div class="relative">
93
+ <i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
94
+ <input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 rounded-lg border border-gray-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent">
95
+ </div>
96
+ <button class="p-2 rounded-full hover:bg-gray-100">
97
+ <i data-feather="bell"></i>
98
+ </button>
99
+ </div>
100
+ </div>
101
+ </header>
102
+
103
+ <!-- Dashboard Content -->
104
+ <main class="flex-1 overflow-y-auto p-4 md:p-6">
105
+ <div class="mb-6">
106
+ <h2 class="text-2xl font-bold text-gray-800">Dashboard Overview</h2>
107
+ <p class="text-gray-600">Welcome back! Here's what's happening with your business today.</p>
108
+ </div>
109
+
110
+ <!-- Stats Cards -->
111
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
112
+ <div class="dashboard-card bg-white rounded-xl shadow-sm p-6 border-l-4 border-blue-500" data-aos="fade-up">
113
+ <div class="flex justify-between items-start">
114
+ <div>
115
+ <p class="text-sm font-medium text-gray-500">Total Revenue</p>
116
+ <h3 class="text-2xl font-bold mt-1">$24,780</h3>
117
+ <p class="text-sm text-green-500 mt-2 flex items-center">
118
+ <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
119
+ <span>12.5% from last month</span>
120
+ </p>
121
+ </div>
122
+ <div class="p-3 rounded-lg bg-blue-50 text-blue-500">
123
+ <i data-feather="dollar-sign"></i>
124
+ </div>
125
+ </div>
126
+ </div>
127
+
128
+ <div class="dashboard-card bg-white rounded-xl shadow-sm p-6 border-l-4 border-purple-500" data-aos="fade-up" data-aos-delay="100">
129
+ <div class="flex justify-between items-start">
130
+ <div>
131
+ <p class="text-sm font-medium text-gray-500">New Customers</p>
132
+ <h3 class="text-2xl font-bold mt-1">1,254</h3>
133
+ <p class="text-sm text-green-500 mt-2 flex items-center">
134
+ <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
135
+ <span>8.2% from last month</span>
136
+ </p>
137
+ </div>
138
+ <div class="p-3 rounded-lg bg-purple-50 text-purple-500">
139
+ <i data-feather="users"></i>
140
+ </div>
141
+ </div>
142
+ </div>
143
+
144
+ <div class="dashboard-card bg-white rounded-xl shadow-sm p-6 border-l-4 border-yellow-500" data-aos="fade-up" data-aos-delay="200">
145
+ <div class="flex justify-between items-start">
146
+ <div>
147
+ <p class="text-sm font-medium text-gray-500">Active Projects</p>
148
+ <h3 class="text-2xl font-bold mt-1">42</h3>
149
+ <p class="text-sm text-red-500 mt-2 flex items-center">
150
+ <i data-feather="trending-down" class="w-4 h-4 mr-1"></i>
151
+ <span>3.1% from last month</span>
152
+ </p>
153
+ </div>
154
+ <div class="p-3 rounded-lg bg-yellow-50 text-yellow-500">
155
+ <i data-feather="briefcase"></i>
156
+ </div>
157
+ </div>
158
+ </div>
159
+
160
+ <div class="dashboard-card bg-white rounded-xl shadow-sm p-6 border-l-4 border-green-500" data-aos="fade-up" data-aos-delay="300">
161
+ <div class="flex justify-between items-start">
162
+ <div>
163
+ <p class="text-sm font-medium text-gray-500">Conversion Rate</p>
164
+ <h3 class="text-2xl font-bold mt-1">3.8%</h3>
165
+ <p class="text-sm text-green-500 mt-2 flex items-center">
166
+ <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
167
+ <span>1.4% from last month</span>
168
+ </p>
169
+ </div>
170
+ <div class="p-3 rounded-lg bg-green-50 text-green-500">
171
+ <i data-feather="percent"></i>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ <!-- Charts Section -->
178
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
179
+ <div class="bg-white p-6 rounded-xl shadow-sm lg:col-span-2" data-aos="fade-up">
180
+ <div class="flex justify-between items-center mb-6">
181
+ <h3 class="font-bold text-lg">Revenue Overview</h3>
182
+ <div class="flex space-x-2">
183
+ <button class="px-3 py-1 text-sm bg-indigo-100 text-indigo-700 rounded-md">Monthly</button>
184
+ <button class="px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded-md">Weekly</button>
185
+ <button class="px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded-md">Daily</button>
186
+ </div>
187
+ </div>
188
+ <canvas id="revenueChart" height="300"></canvas>
189
+ </div>
190
+
191
+ <div class="bg-white p-6 rounded-xl shadow-sm" data-aos="fade-up" data-aos-delay="100">
192
+ <h3 class="font-bold text-lg mb-6">Traffic Sources</h3>
193
+ <canvas id="trafficChart" height="300"></canvas>
194
+ </div>
195
+ </div>
196
+
197
+ <!-- Recent Activity & Top Products -->
198
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
199
+ <div class="bg-white p-6 rounded-xl shadow-sm" data-aos="fade-up">
200
+ <h3 class="font-bold text-lg mb-6">Recent Activity</h3>
201
+ <div class="space-y-4">
202
+ <div class="flex items-start space-x-3">
203
+ <div class="p-2 bg-indigo-100 text-indigo-600 rounded-lg">
204
+ <i data-feather="shopping-cart"></i>
205
+ </div>
206
+ <div>
207
+ <p class="font-medium">New order received</p>
208
+ <p class="text-sm text-gray-500">#ORD-2023-00125 from John Smith</p>
209
+ <p class="text-xs text-gray-400 mt-1">2 minutes ago</p>
210
+ </div>
211
+ </div>
212
+ <div class="flex items-start space-x-3">
213
+ <div class="p-2 bg-green-100 text-green-600 rounded-lg">
214
+ <i data-feather="user-plus"></i>
215
+ </div>
216
+ <div>
217
+ <p class="font-medium">New customer registered</p>
218
+ <p class="text-sm text-gray-500">Sarah Johnson from London</p>
219
+ <p class="text-xs text-gray-400 mt-1">15 minutes ago</p>
220
+ </div>
221
+ </div>
222
+ <div class="flex items-start space-x-3">
223
+ <div class="p-2 bg-yellow-100 text-yellow-600 rounded-lg">
224
+ <i data-feather="alert-circle"></i>
225
+ </div>
226
+ <div>
227
+ <p class="font-medium">High traffic alert</p>
228
+ <p class="text-sm text-gray-500">Server load reached 85% capacity</p>
229
+ <p class="text-xs text-gray-400 mt-1">1 hour ago</p>
230
+ </div>
231
+ </div>
232
+ <div class="flex items-start space-x-3">
233
+ <div class="p-2 bg-blue-100 text-blue-600 rounded-lg">
234
+ <i data-feather="message-square"></i>
235
+ </div>
236
+ <div>
237
+ <p class="font-medium">New support ticket</p>
238
+ <p class="text-sm text-gray-500">"Need help with checkout process"</p>
239
+ <p class="text-xs text-gray-400 mt-1">3 hours ago</p>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+
245
+ <div class="bg-white p-6 rounded-xl shadow-sm" data-aos="fade-up" data-aos-delay="100">
246
+ <h3 class="font-bold text-lg mb-6">Top Products</h3>
247
+ <div class="space-y-4">
248
+ <div class="flex items-center space-x-4">
249
+ <img src="http://static.photos/technology/120x120/1" alt="Product" class="w-12 h-12 rounded-md object-cover">
250
+ <div class="flex-1">
251
+ <p class="font-medium">Premium Headphones</p>
252
+ <div class="flex items-center justify-between">
253
+ <p class="text-sm text-gray-500">Electronics</p>
254
+ <p class="text-sm font-medium">$199.99</p>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ <div class="flex items-center space-x-4">
259
+ <img src="http://static.photos/technology/120x120/2" alt="Product" class="w-12 h-12 rounded-md object-cover">
260
+ <div class="flex-1">
261
+ <p class="font-medium">Smart Watch</p>
262
+ <div class="flex items-center justify-between">
263
+ <p class="text-sm text-gray-500">Wearables</p>
264
+ <p class="text-sm font-medium">$249.99</p>
265
+ </div>
266
+ </div>
267
+ </div>
268
+ <div class="flex items-center space-x-4">
269
+ <img src="http://static.photos/technology/120x120/3" alt="Product" class="w-12 h-12 rounded-md object-cover">
270
+ <div class="flex-1">
271
+ <p class="font-medium">Wireless Earbuds</p>
272
+ <div class="flex items-center justify-between">
273
+ <p class="text-sm text-gray-500">Audio</p>
274
+ <p class="text-sm font-medium">$129.99</p>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ <div class="flex items-center space-x-4">
279
+ <img src="http://static.photos/technology/120x120/4" alt="Product" class="w-12 h-12 rounded-md object-cover">
280
+ <div class="flex-1">
281
+ <p class="font-medium">Bluetooth Speaker</p>
282
+ <div class="flex items-center justify-between">
283
+ <p class="text-sm text-gray-500">Audio</p>
284
+ <p class="text-sm font-medium">$89.99</p>
285
+ </div>
286
+ </div>
287
+ </div>
288
+ </div>
289
+ </div>
290
+ </div>
291
+ </main>
292
+ </div>
293
+ </div>
294
+
295
+ <script>
296
+ // Initialize AOS
297
+ AOS.init({
298
+ duration: 800,
299
+ easing: 'ease-in-out',
300
+ once: true
301
+ });
302
+
303
+ // Initialize Feather Icons
304
+ feather.replace();
305
+
306
+ // Toggle Sidebar on Mobile
307
+ const sidebar = document.getElementById('sidebar');
308
+ const sidebarToggle = document.getElementById('sidebarToggle');
309
+ const mobileSidebarToggle = document.getElementById('mobileSidebarToggle');
310
+
311
+ mobileSidebarToggle.addEventListener('click', () => {
312
+ sidebar.classList.remove('-translate-x-full');
313
+ });
314
+
315
+ sidebarToggle.addEventListener('click', () => {
316
+ sidebar.classList.add('-translate-x-full');
317
+ });
318
+
319
+ // Initialize Vanta.js Globe
320
+ VANTA.GLOBE({
321
+ el: "#globe-bg",
322
+ mouseControls: true,
323
+ touchControls: true,
324
+ gyroControls: false,
325
+ minHeight: 200.00,
326
+ minWidth: 200.00,
327
+ scale: 1.00,
328
+ scaleMobile: 1.00,
329
+ color: 0x3f83f8,
330
+ backgroundColor: 0xf8fafc
331
+ });
332
+
333
+ // Charts
334
+ document.addEventListener('DOMContentLoaded', function() {
335
+ // Revenue Chart
336
+ const revenueCtx = document.getElementById('revenueChart').getContext('2d');
337
+ const revenueChart = new Chart(revenueCtx, {
338
+ type: 'line',
339
+ data: {
340
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
341
+ datasets: [{
342
+ label: 'Revenue',
343
+ data: [12000, 19000, 15000, 18000, 21000, 25000, 22000, 28000, 24000, 30000, 27000, 32000],
344
+ borderColor: '#6366F1',
345
+ backgroundColor: 'rgba(99, 102, 241, 0.1)',
346
+ borderWidth: 2,
347
+ fill: true,
348
+ tension: 0.4
349
+ }]
350
+ },
351
+ options: {
352
+ responsive: true,
353
+ plugins: {
354
+ legend: {
355
+ display: false
356
+ }
357
+ },
358
+ scales: {
359
+ y: {
360
+ beginAtZero: true,
361
+ grid: {
362
+ drawBorder: false
363
+ }
364
+ },
365
+ x: {
366
+ grid: {
367
+ display: false
368
+ }
369
+ }
370
+ }
371
+ }
372
+ });
373
+
374
+ // Traffic Chart
375
+ const trafficCtx = document.getElementById('trafficChart').getContext('2d');
376
+ const trafficChart = new Chart(trafficCtx, {
377
+ type: 'doughnut',
378
+ data: {
379
+ labels: ['Direct', 'Organic', 'Referral', 'Social', 'Email'],
380
+ datasets: [{
381
+ data: [35, 25, 20, 15, 5],
382
+ backgroundColor: [
383
+ '#6366F1',
384
+ '#8B5CF6',
385
+ '#EC4899',
386
+ '#F59E0B',
387
+ '#10B981'
388
+ ],
389
+ borderWidth: 0
390
+ }]
391
+ },
392
+ options: {
393
+ responsive: true,
394
+ cutout: '70%',
395
+ plugins: {
396
+ legend: {
397
+ position: 'bottom'
398
+ }
399
+ }
400
+ }
401
+ });
402
+ });
403
+ </script>
404
+ </body>
405
  </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ WEbsite structure interactive dashboard