File size: 17,213 Bytes
a4996c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>RunSync Pro - Admin Dashboard</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/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#ff6b00',
                        dark: {
                            bg: '#0f1114',
                            surface: '#14171a',
                            text: '#e6e6e6'
                        }
                    },
                    fontFamily: {
                        'sans': ['Inter', 'Poppins', 'system-ui'],
                        'devanagari': ['Noto Sans Devanagari', 'Inter', 'sans-serif']
                    }
                }
            }
        }
    </script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600&family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
    <style>
        .logo-devanagari {
            font-family: 'Noto Sans Devanagari', sans-serif;
            font-weight: 600;
        }
        .vanta-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        .glass-effect {
            backdrop-filter: blur(16px) saturate(180%);
            background-color: rgba(20, 23, 26, 0.75);
            border: 1px solid rgba(255, 255, 255, 0.125);
        }
    </style>
</head>
<body class="bg-dark-bg text-dark-text font-sans min-h-screen">
    <!-- Vanta.js Background -->
    <div id="vanta-bg" class="vanta-bg"></div>
    
    <!-- Navigation Sidebar -->
    <nav class="fixed left-0 top-0 h-full w-64 glass-effect hidden lg:flex flex-col p-6 z-10">
        <div class="flex items-center space-x-3 mb-8">
            <img src="<<LOGO_IMAGE_URL>>" alt="सोशल Run Club" class="w-12 h-12 rounded-full bg-white p-1">
            <span class="logo-devanagari text-xl font-semibold">सोशल Run Club</span>
        </div>
        
        <div class="space-y-2 flex-1">
            <a href="#dashboard" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-surface transition-colors">
                <i data-feather="bar-chart-2"></i>
                <span>Dashboard</span>
            </a>
            <a href="#posts" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-surface transition-colors">
                <i data-feather="file-text"></i>
                <span>Posts</span>
            </a>
            <a href="#events" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-surface transition-colors">
                <i data-feather="calendar"></i>
                <span>Events</span>
            </a>
            <a href="#members" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-surface transition-colors">
                <i data-feather="users"></i>
                <span>Members</span>
            </a>
            <a href="#analytics" class="flex items-center space-x-3 p-3 rounded-lg bg-primary/20 text-primary rounded-lg">
                <i data-feather="trending-up"></i>
                <span>Analytics</span>
            </a>
            <a href="#moderation" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-surface transition-colors">
                <i data-feather="shield"></i>
                <span>Moderation</span>
            </a>
        </div>
        
        <div class="pt-6 border-t border-dark-surface">
            <div class="flex items-center space-x-3 p-3">
                <div class="w-10 h-10 bg-primary rounded-full flex items-center justify-center">
                    <span class="font-semibold">A</span>
                </div>
                <div class="flex-1">
                    <p class="font-medium">Admin User</p>
                    <p class="text-sm text-gray-400">[email protected]</p>
                </div>
            </div>
        </div>
    </nav>

    <!-- Mobile Header -->
    <header class="lg:hidden glass-effect p-4 flex items-center justify-between sticky top-0 z-20">
        <div class="flex items-center space-x-3">
            <img src="<<LOGO_IMAGE_URL>>" alt="सोशल Run Club" class="w-10 h-10 rounded-full bg-white p-1">
            <span class="logo-devanagari text-lg font-semibold">सोशल Run Club</span>
        </div>
        <button id="mobile-menu-btn" class="p-2">
            <i data-feather="menu"></i>
        </button>
    </header>

    <!-- Main Content -->
    <main class="lg:ml-64 p-6">
        <!-- Analytics Dashboard -->
        <section id="analytics" class="max-w-7xl mx-auto">
            <div class="flex flex-col lg:flex-row lg:items-center lg:justify-between mb-8">
                <div>
                    <h1 class="text-3xl font-bold mb-2">Analytics Dashboard</h1>
                    <p class="text-gray-400">Track engagement, members, and event performance</p>
                </div>
                <div class="flex space-x-3 mt-4 lg:mt-0">
                    <button class="px-4 py-2 bg-dark-surface rounded-lg flex items-center space-x-2">
                        <i data-feather="calendar"></i>
                        <span>Last 7 days</span>
                    </button>
                    <button class="px-4 py-2 bg-primary text-white rounded-lg flex items-center space-x-2">
                        <i data-feather="download"></i>
                        <span>Export CSV</span>
                    </button>
                </div>
            </div>

            <!-- Key Metrics Grid -->
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                <div class="bg-dark-surface rounded-xl p-6 glass-effect">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold">Total Members</h1>
                        <i data-feather="users" class="text-primary"></i>
                    </div>
                    <p class="text-3xl font-bold">1,247</p>
                    <p class="text-green-400 text-sm mt-2">↑ 12% from last week</p>
                </div>
                
                <div class="bg-dark-surface rounded-xl p-6 glass-effect">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold">Weekly Active</h1>
                        <i data-feather="activity" class="text-primary"></i>
                    </div>
                    <p class="text-3xl font-bold">893</p>
                    <p class="text-green-400 text-sm mt-2">↑ 8% from last week</p>
                </div>
                
                <div class="bg-dark-surface rounded-xl p-6 glass-effect">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold">Engagement Rate</h1>
                        <i data-feather="trending-up" class="text-primary"></i>
                    </div>
                    <p class="text-3xl font-bold">68%</p>
                    <p class="text-green-400 text-sm mt-2">↑ 5% from last week</p>
                </div>
                
                <div class="bg-dark-surface rounded-xl p-6 glass-effect">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold">Events This Week</h1>
                        <i data-feather="calendar" class="text-primary"></i>
                    </div>
                    <p class="text-3xl font-bold">7</p>
                    <p class="text-gray-400 text-sm mt-2">3 upcoming, 4 completed</p>
                </div>
            </div>

            <!-- Charts and Detailed Analytics -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
                <!-- Activity Heatmap -->
                <div class="bg-dark-surface rounded-xl p-6 glass-effect">
                    <h3 class="text-xl font-semibold mb-6">Activity Heatmap</h3>
                    <div class="grid grid-cols-7 gap-1">
                        <!-- Generate heatmap cells -->
                        <div class="h-8 bg-green-900 rounded"></div>
                        <div class="h-8 bg-green-700 rounded"></div>
                        <div class="h-8 bg-green-500 rounded"></div>
                        <div class="h-8 bg-green-300 rounded"></div>
                        <div class="h-8 bg-green-100 rounded"></div>
                        <div class="h-8 bg-gray-600 rounded"></div>
                        <div class="h-8 bg-gray-800 rounded"></div>
                    </div>
                    <div class="flex justify-between text-sm text-gray-400 mt-2">
                        <span>Mon</span>
                        <span>Tue</span>
                        <span>Wed</span>
                        <span>Thu</span>
                        <span>Fri</span>
                        <span>Sat</span>
                        <span>Sun</span>
                    </div>
                </div>

                <!-- Top Members Leaderboard -->
                <div class="bg-dark-surface rounded-xl p-6 glass-effect">
                    <h3 class="text-xl font-semibold mb-6">Top Members Leaderboard</h3>
                    <div class="space-y-4">
                        <div class="flex items-center justify-between p-3 bg-dark-bg/50 rounded-lg">
                            <div class="flex items-center space-x-3">
                                <div class="w-8 h-8 bg-primary rounded-full flex items-center justify-center">
                                    <span class="text-sm font-semibold">1</span>
                                </div>
                                <div>
                                    <p class="font-medium">Rahul Sharma</p>
                                    <p class="text-sm text-gray-400">@rahul_run</p>
                                </div>
                            </div>
                            <span class="font-semibold text-primary">1,248 pts</span>
                        </div>
                        
                        <div class="flex items-center justify-between p-3 bg-dark-bg/50 rounded-lg">
                            <div class="flex items-center space-x-3">
                                <div class="w-8 h-8 bg-gray-600 rounded-full flex items-center justify-center">
                                    <span class="text-sm font-semibold">2</span>
                                </div>
                                <div>
                                    <p class="font-medium">Priya Singh</p>
                                    <p class="text-sm text-gray-400">@priya_runner</p>
                                </div>
                            </div>
                            <span class="font-semibold text-primary">1,156 pts</span>
                        </div>
                        
                        <div class="flex items-center justify-between p-3 bg-dark-bg/50 rounded-lg">
                            <div class="flex items-center space-x-3">
                                <div class="w-8 h-8 bg-yellow-600 rounded-full flex items-center justify-center">
                                    <span class="text-sm font-semibold">3</span>
                                </div>
                                <div>
                                    <p class="font-medium">Amit Kumar</p>
                                    <p class="text-sm text-gray-400">@amit_speed</p>
                                </div>
                            </div>
                            <span class="font-semibold text-primary">987 pts</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Engagement Metrics -->
            <div class="bg-dark-surface rounded-xl p-6 glass-effect mb-8">
                <h3 class="text-xl font-semibold mb-6">Post Engagement Analytics</h3>
                <div class="overflow-x-auto">
                    <table class="w-full">
                        <thead>
                            <tr class="border-b border-dark-bg">
                                <th class="text-left pb-3">Post Title</th>
                                <th class="text-right pb-3">Views</th>
                                <th class="text-right pb-3">Likes</th>
                                <th class="text-right pb-3">Comments</th>
                                <th class="text-right pb-3">Shares</th>
                                <th class="text-right pb-3">Engagement Rate</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-dark-bg">
                            <tr>
                                <td class="py-3">Weekend Marathon Training</td>
                                <td class="text-right py-3">2,458</td>
                                <td class="text-right py-3">189</td>
                                <td class="text-right py-3">45</td>
                                <td class="text-right py-3">32</td>
                                <td class="text-right py-3 text-primary">10.8%</td>
                            </tr>
                            <tr>
                                <td class="py-3">New Running Routes</td>
                                <td class="text-right py-3">1,893</td>
                                <td class="text-right py-3">156</td>
                                <td class="text-right py-3">38</td>
                                <td class="text-right py-3">28</td>
                                <td class="text-right py-3 text-primary">11.7%</td>
                            </tr>
                            <tr>
                                <td class="py-3">Health & Nutrition Tips</td>
                                <td class="text-right py-3">1,567</td>
                                <td class="text-right py-3">134</td>
                                <td class="text-right py-3">29</td>
                                <td class="text-right py-3">19</td>
                                <td class="text-right py-3 text-primary">11.6%</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </section>
    </main>

    <!-- Mobile Menu -->
    <div id="mobile-menu" class="fixed inset-0 bg-black/50 z-30 hidden lg:hidden">
        <div class="absolute right-0 top-0 h-full w-64 bg-dark-surface p-6 transform translate-x-full transition-transform">
            <div class="flex justify-between items-center mb-8">
                <span class="logo-devanagari text-xl font-semibold">सोशल Run Club</span>
                <button id="close-mobile-menu" class="p-2">
                    <i data-feather="x"></i>
                </button>
            </div>
            <div class="space-y-2">
                <a href="#dashboard" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-bg transition-colors">
                    <i data-feather="bar-chart-2"></i>
                    <span>Dashboard</span>
                </a>
                <a href="#posts" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-bg transition-colors">
                    <i data-feather="file-text"></i>
                    <span>Posts</span>
                </a>
                <a href="#events" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-bg transition-colors">
                    <i data-feather="calendar"></i>
                    <span>Events</span>
                </a>
                <a href="#members" class="flex items-center space-x-3 p-3 rounded-lg hover:bg-dark-bg transition-colors">
                    <i data-feather="users"></i>
                    <span>Members</span>
                </a>
                <a href="#analytics" class="flex items-center space-x-3 p-3 rounded-lg bg-primary/20 text-primary rounded-lg">
                    <i data-feather="trending-up"></i>
                    <span>Analytics</span>
                </a>
            </div>
        </div>
    </div>

    <script>
        // Initialize Vanta.js
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: '#ff6b00',
            backgroundColor: '#0f1114',
            size: 0.8
</body>
</html>