Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +398 -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: a-simple-dashboard
|
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,398 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Modern Interactive Dashboard</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@keyframes float {
|
11 |
+
0%, 100% { transform: translateY(0); }
|
12 |
+
50% { transform: translateY(-10px); }
|
13 |
+
}
|
14 |
+
.floating {
|
15 |
+
animation: float 3s ease-in-out infinite;
|
16 |
+
}
|
17 |
+
.card-hover:hover {
|
18 |
+
transform: translateY(-5px);
|
19 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
20 |
+
}
|
21 |
+
.gradient-bg {
|
22 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
23 |
+
}
|
24 |
+
.progress-bar {
|
25 |
+
transition: width 1.5s ease-in-out;
|
26 |
+
}
|
27 |
+
.chart-container {
|
28 |
+
height: 250px;
|
29 |
+
}
|
30 |
+
</style>
|
31 |
+
</head>
|
32 |
+
<body class="bg-gray-100 font-sans">
|
33 |
+
<div class="min-h-screen flex flex-col">
|
34 |
+
<!-- Header -->
|
35 |
+
<header class="gradient-bg text-white shadow-lg">
|
36 |
+
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
|
37 |
+
<div class="flex items-center space-x-2">
|
38 |
+
<i class="fas fa-rocket text-2xl"></i>
|
39 |
+
<h1 class="text-2xl font-bold">NexusDash</h1>
|
40 |
+
</div>
|
41 |
+
<div class="flex items-center space-x-6">
|
42 |
+
<div class="relative">
|
43 |
+
<i class="fas fa-bell text-xl cursor-pointer"></i>
|
44 |
+
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
|
45 |
+
</div>
|
46 |
+
<div class="flex items-center space-x-2 cursor-pointer">
|
47 |
+
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-8 h-8 rounded-full border-2 border-white">
|
48 |
+
<span class="font-medium">Sarah K.</span>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
</div>
|
52 |
+
</header>
|
53 |
+
|
54 |
+
<!-- Main Content -->
|
55 |
+
<main class="flex-grow container mx-auto px-4 py-8">
|
56 |
+
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6 mb-8">
|
57 |
+
<!-- Welcome Card -->
|
58 |
+
<div class="lg:col-span-2 bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
|
59 |
+
<div class="p-6 flex flex-col md:flex-row items-center">
|
60 |
+
<div class="flex-shrink-0 mb-4 md:mb-0 md:mr-6">
|
61 |
+
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Welcome" class="w-20 h-20 rounded-full border-4 border-purple-200 floating">
|
62 |
+
</div>
|
63 |
+
<div>
|
64 |
+
<h2 class="text-2xl font-bold text-gray-800">Welcome back, Sarah!</h2>
|
65 |
+
<p class="text-gray-600 mt-2">Here's what's happening with your projects today.</p>
|
66 |
+
<button class="mt-4 bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg transition-colors duration-300">
|
67 |
+
View Dashboard
|
68 |
+
</button>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
</div>
|
72 |
+
|
73 |
+
<!-- Stats Cards -->
|
74 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
|
75 |
+
<div class="p-6">
|
76 |
+
<div class="flex justify-between items-start">
|
77 |
+
<div>
|
78 |
+
<p class="text-gray-500">Total Revenue</p>
|
79 |
+
<h3 class="text-2xl font-bold text-gray-800 mt-1">$24,780</h3>
|
80 |
+
</div>
|
81 |
+
<div class="bg-green-100 text-green-800 p-2 rounded-lg">
|
82 |
+
<i class="fas fa-arrow-up"></i>
|
83 |
+
<span>12.5%</span>
|
84 |
+
</div>
|
85 |
+
</div>
|
86 |
+
<div class="mt-4">
|
87 |
+
<div class="h-2 bg-gray-200 rounded-full overflow-hidden">
|
88 |
+
<div class="h-full bg-green-500 progress-bar" style="width: 75%"></div>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
|
94 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
|
95 |
+
<div class="p-6">
|
96 |
+
<div class="flex justify-between items-start">
|
97 |
+
<div>
|
98 |
+
<p class="text-gray-500">New Users</p>
|
99 |
+
<h3 class="text-2xl font-bold text-gray-800 mt-1">1,254</h3>
|
100 |
+
</div>
|
101 |
+
<div class="bg-blue-100 text-blue-800 p-2 rounded-lg">
|
102 |
+
<i class="fas fa-users"></i>
|
103 |
+
<span>24.3%</span>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
<div class="mt-4">
|
107 |
+
<div class="h-2 bg-gray-200 rounded-full overflow-hidden">
|
108 |
+
<div class="h-full bg-blue-500 progress-bar" style="width: 60%"></div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
+
|
115 |
+
<!-- Charts Section -->
|
116 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
|
117 |
+
<!-- Main Chart -->
|
118 |
+
<div class="lg:col-span-2 bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
|
119 |
+
<div class="p-6">
|
120 |
+
<div class="flex justify-between items-center mb-6">
|
121 |
+
<h2 class="text-xl font-bold text-gray-800">Performance Overview</h2>
|
122 |
+
<div class="flex space-x-2">
|
123 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg text-sm">Week</button>
|
124 |
+
<button class="px-3 py-1 bg-purple-600 text-white rounded-lg text-sm">Month</button>
|
125 |
+
<button class="px-3 py-1 bg-gray-100 text-gray-700 rounded-lg text-sm">Year</button>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
<div class="chart-container">
|
129 |
+
<canvas id="mainChart"></canvas>
|
130 |
+
</div>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
|
134 |
+
<!-- Pie Chart -->
|
135 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
|
136 |
+
<div class="p-6">
|
137 |
+
<h2 class="text-xl font-bold text-gray-800 mb-6">Traffic Sources</h2>
|
138 |
+
<div class="chart-container">
|
139 |
+
<canvas id="pieChart"></canvas>
|
140 |
+
</div>
|
141 |
+
<div class="mt-4 grid grid-cols-2 gap-4">
|
142 |
+
<div class="flex items-center">
|
143 |
+
<div class="w-3 h-3 bg-blue-500 rounded-full mr-2"></div>
|
144 |
+
<span class="text-sm text-gray-600">Direct</span>
|
145 |
+
</div>
|
146 |
+
<div class="flex items-center">
|
147 |
+
<div class="w-3 h-3 bg-green-500 rounded-full mr-2"></div>
|
148 |
+
<span class="text-sm text-gray-600">Organic</span>
|
149 |
+
</div>
|
150 |
+
<div class="flex items-center">
|
151 |
+
<div class="w-3 h-3 bg-purple-500 rounded-full mr-2"></div>
|
152 |
+
<span class="text-sm text-gray-600">Referral</span>
|
153 |
+
</div>
|
154 |
+
<div class="flex items-center">
|
155 |
+
<div class="w-3 h-3 bg-yellow-500 rounded-full mr-2"></div>
|
156 |
+
<span class="text-sm text-gray-600">Social</span>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
|
163 |
+
<!-- Projects Table -->
|
164 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden card-hover transition-all duration-300">
|
165 |
+
<div class="p-6">
|
166 |
+
<div class="flex justify-between items-center mb-6">
|
167 |
+
<h2 class="text-xl font-bold text-gray-800">Recent Projects</h2>
|
168 |
+
<button class="text-purple-600 hover:text-purple-800 font-medium">
|
169 |
+
View All <i class="fas fa-arrow-right ml-1"></i>
|
170 |
+
</button>
|
171 |
+
</div>
|
172 |
+
<div class="overflow-x-auto">
|
173 |
+
<table class="min-w-full divide-y divide-gray-200">
|
174 |
+
<thead class="bg-gray-50">
|
175 |
+
<tr>
|
176 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Project</th>
|
177 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Team</th>
|
178 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
179 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</th>
|
180 |
+
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Due Date</th>
|
181 |
+
</tr>
|
182 |
+
</thead>
|
183 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
184 |
+
<tr class="hover:bg-gray-50">
|
185 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
186 |
+
<div class="flex items-center">
|
187 |
+
<div class="flex-shrink-0 h-10 w-10 bg-purple-100 rounded-lg flex items-center justify-center">
|
188 |
+
<i class="fas fa-mobile-alt text-purple-600"></i>
|
189 |
+
</div>
|
190 |
+
<div class="ml-4">
|
191 |
+
<div class="text-sm font-medium text-gray-900">Mobile App Redesign</div>
|
192 |
+
<div class="text-sm text-gray-500">UI/UX Design</div>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
</td>
|
196 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
197 |
+
<div class="flex -space-x-2">
|
198 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/12.jpg" alt="">
|
199 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
|
200 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
|
201 |
+
</div>
|
202 |
+
</td>
|
203 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
204 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
|
205 |
+
</td>
|
206 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
207 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
208 |
+
<div class="bg-blue-600 h-2 rounded-full" style="width: 65%"></div>
|
209 |
+
</div>
|
210 |
+
</td>
|
211 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">May 15, 2023</td>
|
212 |
+
</tr>
|
213 |
+
<tr class="hover:bg-gray-50">
|
214 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
215 |
+
<div class="flex items-center">
|
216 |
+
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-lg flex items-center justify-center">
|
217 |
+
<i class="fas fa-globe text-blue-600"></i>
|
218 |
+
</div>
|
219 |
+
<div class="ml-4">
|
220 |
+
<div class="text-sm font-medium text-gray-900">Website Launch</div>
|
221 |
+
<div class="text-sm text-gray-500">Development</div>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
</td>
|
225 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
226 |
+
<div class="flex -space-x-2">
|
227 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/75.jpg" alt="">
|
228 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/44.jpg" alt="">
|
229 |
+
</div>
|
230 |
+
</td>
|
231 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
232 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Pending</span>
|
233 |
+
</td>
|
234 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
235 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
236 |
+
<div class="bg-blue-600 h-2 rounded-full" style="width: 30%"></div>
|
237 |
+
</div>
|
238 |
+
</td>
|
239 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Jun 20, 2023</td>
|
240 |
+
</tr>
|
241 |
+
<tr class="hover:bg-gray-50">
|
242 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
243 |
+
<div class="flex items-center">
|
244 |
+
<div class="flex-shrink-0 h-10 w-10 bg-green-100 rounded-lg flex items-center justify-center">
|
245 |
+
<i class="fas fa-chart-line text-green-600"></i>
|
246 |
+
</div>
|
247 |
+
<div class="ml-4">
|
248 |
+
<div class="text-sm font-medium text-gray-900">Marketing Campaign</div>
|
249 |
+
<div class="text-sm text-gray-500">Marketing</div>
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
</td>
|
253 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
254 |
+
<div class="flex -space-x-2">
|
255 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/women/68.jpg" alt="">
|
256 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/32.jpg" alt="">
|
257 |
+
<img class="w-8 h-8 rounded-full border-2 border-white" src="https://randomuser.me/api/portraits/men/22.jpg" alt="">
|
258 |
+
</div>
|
259 |
+
</td>
|
260 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
261 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">In Review</span>
|
262 |
+
</td>
|
263 |
+
<td class="px-6 py-4 whitespace-nowrap">
|
264 |
+
<div class="w-full bg-gray-200 rounded-full h-2">
|
265 |
+
<div class="bg-blue-600 h-2 rounded-full" style="width: 85%"></div>
|
266 |
+
</div>
|
267 |
+
</td>
|
268 |
+
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Apr 28, 2023</td>
|
269 |
+
</tr>
|
270 |
+
</tbody>
|
271 |
+
</table>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
</div>
|
275 |
+
</main>
|
276 |
+
|
277 |
+
<!-- Footer -->
|
278 |
+
<footer class="bg-white border-t border-gray-200 py-6">
|
279 |
+
<div class="container mx-auto px-4">
|
280 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
281 |
+
<div class="text-gray-600 mb-4 md:mb-0">
|
282 |
+
© 2023 NexusDash. All rights reserved.
|
283 |
+
</div>
|
284 |
+
<div class="flex space-x-6">
|
285 |
+
<a href="#" class="text-gray-500 hover:text-purple-600 transition-colors duration-300">
|
286 |
+
<i class="fab fa-twitter"></i>
|
287 |
+
</a>
|
288 |
+
<a href="#" class="text-gray-500 hover:text-purple-600 transition-colors duration-300">
|
289 |
+
<i class="fab fa-facebook"></i>
|
290 |
+
</a>
|
291 |
+
<a href="#" class="text-gray-500 hover:text-purple-600 transition-colors duration-300">
|
292 |
+
<i class="fab fa-instagram"></i>
|
293 |
+
</a>
|
294 |
+
<a href="#" class="text-gray-500 hover:text-purple-600 transition-colors duration-300">
|
295 |
+
<i class="fab fa-linkedin"></i>
|
296 |
+
</a>
|
297 |
+
</div>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
</footer>
|
301 |
+
</div>
|
302 |
+
|
303 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
304 |
+
<script>
|
305 |
+
// Animate progress bars on page load
|
306 |
+
document.addEventListener('DOMContentLoaded', function() {
|
307 |
+
// Main Chart
|
308 |
+
const mainCtx = document.getElementById('mainChart').getContext('2d');
|
309 |
+
const mainChart = new Chart(mainCtx, {
|
310 |
+
type: 'line',
|
311 |
+
data: {
|
312 |
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
313 |
+
datasets: [
|
314 |
+
{
|
315 |
+
label: 'Revenue',
|
316 |
+
data: [12000, 19000, 15000, 20000, 22000, 24780],
|
317 |
+
borderColor: '#667eea',
|
318 |
+
backgroundColor: 'rgba(102, 126, 234, 0.1)',
|
319 |
+
borderWidth: 2,
|
320 |
+
tension: 0.3,
|
321 |
+
fill: true
|
322 |
+
},
|
323 |
+
{
|
324 |
+
label: 'Users',
|
325 |
+
data: [800, 950, 1100, 1050, 1200, 1254],
|
326 |
+
borderColor: '#4fd1c5',
|
327 |
+
backgroundColor: 'rgba(79, 209, 197, 0.1)',
|
328 |
+
borderWidth: 2,
|
329 |
+
tension: 0.3,
|
330 |
+
fill: true
|
331 |
+
}
|
332 |
+
]
|
333 |
+
},
|
334 |
+
options: {
|
335 |
+
responsive: true,
|
336 |
+
maintainAspectRatio: false,
|
337 |
+
plugins: {
|
338 |
+
legend: {
|
339 |
+
position: 'top',
|
340 |
+
}
|
341 |
+
},
|
342 |
+
scales: {
|
343 |
+
y: {
|
344 |
+
beginAtZero: true
|
345 |
+
}
|
346 |
+
}
|
347 |
+
}
|
348 |
+
});
|
349 |
+
|
350 |
+
// Pie Chart
|
351 |
+
const pieCtx = document.getElementById('pieChart').getContext('2d');
|
352 |
+
const pieChart = new Chart(pieCtx, {
|
353 |
+
type: 'doughnut',
|
354 |
+
data: {
|
355 |
+
labels: ['Direct', 'Organic', 'Referral', 'Social'],
|
356 |
+
datasets: [{
|
357 |
+
data: [35, 30, 20, 15],
|
358 |
+
backgroundColor: [
|
359 |
+
'#4299e1',
|
360 |
+
'#48bb78',
|
361 |
+
'#9f7aea',
|
362 |
+
'#ecc94b'
|
363 |
+
],
|
364 |
+
borderWidth: 0
|
365 |
+
}]
|
366 |
+
},
|
367 |
+
options: {
|
368 |
+
responsive: true,
|
369 |
+
maintainAspectRatio: false,
|
370 |
+
cutout: '70%',
|
371 |
+
plugins: {
|
372 |
+
legend: {
|
373 |
+
display: false
|
374 |
+
}
|
375 |
+
}
|
376 |
+
}
|
377 |
+
});
|
378 |
+
|
379 |
+
// Animate progress bars
|
380 |
+
setTimeout(() => {
|
381 |
+
document.querySelectorAll('.progress-bar').forEach(bar => {
|
382 |
+
bar.style.width = bar.style.width;
|
383 |
+
});
|
384 |
+
}, 500);
|
385 |
+
});
|
386 |
+
|
387 |
+
// Add hover effect to table rows
|
388 |
+
document.querySelectorAll('tr').forEach(row => {
|
389 |
+
row.addEventListener('mouseenter', function() {
|
390 |
+
this.style.backgroundColor = '#f9fafb';
|
391 |
+
});
|
392 |
+
row.addEventListener('mouseleave', function() {
|
393 |
+
this.style.backgroundColor = '';
|
394 |
+
});
|
395 |
+
});
|
396 |
+
</script>
|
397 |
+
<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=Steelfreak/a-simple-dashboard" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
|
398 |
+
</html>
|