File size: 18,718 Bytes
f9bab3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DarkSeen - Admin Panel</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #111;
            color: #fff;
        }
        .sidebar {
            background-color: #222;
            border-right: 1px solid #333;
        }
        .content-area {
            background-color: #111;
        }
        .nav-item.active {
            color: #f00;
            border-bottom: 2px solid #f00;
        }
        .admin-card {
            background-color: #222;
            border: 1px solid #333;
        }
        .danger-btn {
            background-color: #f00;
            transition: all 0.3s;
        }
        .danger-btn:hover {
            background-color: #c00;
        }
        .table-row:hover {
            background-color: #222;
        }
        .search-input {
            background-color: #222;
            border: 1px solid #333;
            color: #fff;
        }
        .search-input:focus {
            border-color: #f00;
            outline: none;
        }
    </style>
</head>
<body class="flex h-screen overflow-hidden">
    <!-- Sidebar (same as chat.html) -->
    <div class="sidebar w-20 md:w-64 flex flex-col">
        <div class="p-4 border-b border-gray-800 flex items-center justify-center md:justify-between">
            <div class="hidden md:block text-red-500 font-bold text-xl">DARK SEEN</div>
            <div class="flex items-center space-x-2">
                <button class="p-2 rounded-full hover:bg-gray-700">
                    <i class="fas fa-bars text-gray-400"></i>
                </button>
            </div>
        </div>

        <div class="overflow-y-auto flex-1">
            <div class="p-2">
                <div class="flex items-center p-3 rounded-lg bg-gray-800 mb-2">
                    <div class="w-10 h-10 rounded-full bg-gray-700 flex items-center justify-center">
                        <i class="fas fa-search text-gray-400"></i>
                    </div>
                    <input type="text" placeholder="Search" class="ml-2 bg-transparent border-none outline-none text-white w-full hidden md:block">
                </div>

                <!-- Admin menu -->
                <div class="mb-4">
                    <div class="text-xs text-gray-500 uppercase tracking-wider px-3 mb-2 hidden md:block">Admin Tools</div>
                    <div class="space-y-1">
                        <a href="#" class="block px-3 py-2 rounded-lg bg-gray-800 text-sm">
                            <i class="fas fa-users mr-2"></i>
                            <span class="hidden md:inline">User Management</span>
                        </a>
                        <a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">
                            <i class="fas fa-check-circle mr-2"></i>
                            <span class="hidden md:inline">Verification</span>
                        </a>
                        <a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">
                            <i class="fas fa-ban mr-2"></i>
                            <span class="hidden md:inline">Banned Users</span>
                        </a>
                        <a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">
                            <i class="fas fa-chart-line mr-2"></i>
                            <span class="hidden md:inline">Statistics</span>
                        </a>
                        <a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-800 text-sm">
                            <i class="fas fa-cog mr-2"></i>
                            <span class="hidden md:inline">Settings</span>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <!-- Bottom navigation (same as chat.html) -->
        <div class="border-t border-gray-800 p-2">
            <div class="flex justify-around md:justify-start md:space-x-4">
                <a href="chat.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
                    <i class="fas fa-comment text-gray-400"></i>
                    <span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Chats</span>
                </a>
                <a href="channels.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
                    <i class="fas fa-bullhorn text-gray-400"></i>
                    <span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Channels</span>
                </a>
                <a href="groups.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
                    <i class="fas fa-users text-gray-400"></i>
                    <span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Groups</span>
                </a>
                <a href="posts.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
                    <i class="fas fa-newspaper text-gray-400"></i>
                    <span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Posts</span>
                </a>
                <a href="profile.html" class="nav-item p-2 flex flex-col items-center md:flex-row">
                    <i class="fas fa-user text-gray-400"></i>
                    <span class="text-xs mt-1 md:ml-2 md:text-sm hidden md:block">Profile</span>
                </a>
            </div>
        </div>
    </div>

    <!-- Content area -->
    <div class="content-area flex-1 flex flex-col overflow-hidden">
        <!-- Header -->
        <div class="border-b border-gray-800 p-4 flex items-center justify-between">
            <h2 class="text-xl font-bold">Admin Panel - User Management</h2>
            <div class="flex items-center space-x-4">
                <div class="relative hidden md:block">
                    <input type="text" placeholder="Search users..." class="search-input py-2 px-4 pl-10 rounded-lg w-64">
                    <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                </div>
                <button class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg">
                    <i class="fas fa-plus mr-2"></i>
                    <span class="hidden md:inline">Add Admin</span>
                </button>
            </div>
        </div>

        <!-- Stats cards -->
        <div class="border-b border-gray-800 p-4 grid grid-cols-2 md:grid-cols-4 gap-4">
            <div class="admin-card rounded-lg p-4">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-gray-400">Total Users</p>
                        <p class="text-2xl font-bold">12,459</p>
                    </div>
                    <div class="bg-gray-800 p-3 rounded-full">
                        <i class="fas fa-users text-red-500"></i>
                    </div>
                </div>
            </div>
            <div class="admin-card rounded-lg p-4">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-gray-400">New Today</p>
                        <p class="text-2xl font-bold">187</p>
                    </div>
                    <div class="bg-gray-800 p-3 rounded-full">
                        <i class="fas fa-user-plus text-red-500"></i>
                    </div>
                </div>
            </div>
            <div class="admin-card rounded-lg p-4 hidden md:block">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-gray-400">Verified</p>
                        <p class="text-2xl font-bold">2,415</p>
                    </div>
                    <div class="bg-gray-800 p-3 rounded-full">
                        <i class="fas fa-check-circle text-red-500"></i>
                    </div>
                </div>
            </div>
            <div class="admin-card rounded-lg p-4 hidden md:block">
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-sm text-gray-400">Banned</p>
                        <p class="text-2xl font-bold">324</p>
                    </div>
                    <div class="bg-gray-800 p-3 rounded-full">
                        <i class="fas fa-ban text-red-500"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- Users table -->
        <div class="flex-1 overflow-y-auto">
            <div class="p-4">
                <div class="overflow-x-auto">
                    <table class="w-full">
                        <thead>
                            <tr class="text-left text-gray-400 text-sm border-b border-gray-800">
                                <th class="pb-3">User</th>
                                <th class="pb-3">Username</th>
                                <th class="pb-3 hidden md:table-cell">Joined</th>
                                <th class="pb-3 hidden md:table-cell">Status</th>
                                <th class="pb-3">Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            <!-- User row -->
                            <tr class="table-row border-b border-gray-800">
                                <td class="py-4">
                                    <div class="flex items-center">
                                        <img src="http://static.photos/red/200x200/13" class="w-10 h-10 rounded-full">
                                        <div class="ml-3">
                                            <div class="flex items-center">
                                                <span class="font-medium">John Doe</span>
                                                <span class="verified-badge ml-1">
                                                    <i class="fas fa-check-circle text-red-500"></i>
                                                </span>
                                            </div>
                                            <span class="text-xs text-gray-400">Admin</span>
                                        </div>
                                    </div>
                                </td>
                                <td class="py-4">@johndoe</td>
                                <td class="py-4 hidden md:table-cell">2023-05-15</td>
                                <td class="py-4 hidden md:table-cell">
                                    <span class="px-2 py-1 rounded-full text-xs bg-green-900 text-green-400">Active</span>
                                </td>
                                <td class="py-4">
                                    <div class="flex space-x-2">
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-edit"></i>
                                        </button>
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-ban"></i>
                                        </button>
                                    </div>
                                </td>
                            </tr>

                            <!-- More user rows -->
                            <tr class="table-row border-b border-gray-800">
                                <td class="py-4">
                                    <div class="flex items-center">
                                        <img src="http://static.photos/red/200x200/14" class="w-10 h-10 rounded-full">
                                        <div class="ml-3">
                                            <span class="font-medium">Jane Smith</span>
                                        </div>
                                    </div>
                                </td>
                                <td class="py-4">@janesmith</td>
                                <td class="py-4 hidden md:table-cell">2023-06-22</td>
                                <td class="py-4 hidden md:table-cell">
                                    <span class="px-2 py-1 rounded-full text-xs bg-green-900 text-green-400">Active</span>
                                </td>
                                <td class="py-4">
                                    <div class="flex space-x-2">
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-edit"></i>
                                        </button>
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-ban"></i>
                                        </button>
                                    </div>
                                </td>
                            </tr>

                            <tr class="table-row border-b border-gray-800">
                                <td class="py-4">
                                    <div class="flex items-center">
                                        <img src="http://static.photos/red/200x200/15" class="w-10 h-10 rounded-full">
                                        <div class="ml-3">
                                            <div class="flex items-center">
                                                <span class="font-medium">Mike Johnson</span>
                                                <span class="verified-badge ml-1">
                                                    <i class="fas fa-check-circle text-red-500"></i>
                                                </span>
                                            </div>
                                        </div>
                                    </div>
                                </td>
                                <td class="py-4">@mikej</td>
                                <td class="py-4 hidden md:table-cell">2023-07-01</td>
                                <td class="py-4 hidden md:table-cell">
                                    <span class="px-2 py-1 rounded-full text-xs bg-yellow-900 text-yellow-400">Pending</span>
                                </td>
                                <td class="py-4">
                                    <div class="flex space-x-2">
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-check"></i>
                                        </button>
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-ban"></i>
                                        </button>
                                    </div>
                                </td>
                            </tr>

                            <tr class="table-row border-b border-gray-800">
                                <td class="py-4">
                                    <div class="flex items-center">
                                        <img src="http://static.photos/red/200x200/16" class="w-10 h-10 rounded-full">
                                        <div class="ml-3">
                                            <span class="font-medium">Sarah Williams</span>
                                        </div>
                                    </div>
                                </td>
                                <td class="py-4">@sarahw</td>
                                <td class="py-4 hidden md:table-cell">2023-04-10</td>
                                <td class="py-4 hidden md:table-cell">
                                    <span class="px-2 py-1 rounded-full text-xs bg-red-900 text-red-400">Banned</span>
                                </td>
                                <td class="py-4">
                                    <div class="flex space-x-2">
                                        <button class="p-2 rounded-lg hover:bg-gray-800 text-gray-400">
                                            <i class="fas fa-undo"></i>
                                        </button>
                                        <button class="danger-btn p-2 rounded-lg text-white">
                                            <i class="fas fa-trash"></i>
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <!-- Pagination -->
        <div class="border-t border-gray-800 p-4 flex justify-between items-center">
            <div class="text-sm text-gray-400">
                Showing 1 to 4 of 12459 entries
            </div>
            <div class="flex space-x-2">
                <button class="px-3 py-1 rounded-lg bg-gray-800 text-gray-400 hover:bg-gray-700">
                    Previous
                </button>
                <button class="px-3 py-1 rounded-lg bg-red-500 text-white">
                    1
                </button>
                <button class="px-3 py-1 rounded-lg bg-gray-800 text-gray-400 hover:bg-gray-700">
                    2
                </button>
                <button class="px-3 py-1 rounded-lg bg-gray-800 text-gray-400 hover:bg-gray-700">
                    3
                </button>
                <span class="px-3 py-1 text-gray-400">...</span>
                <button class="px-3 py-1 rounded-lg bg-gray-800 text-gray-400 hover:bg-gray-700">
                    10
                </button>
                <button class="px-3 py-1 rounded-lg bg-gray-800 text-gray-400 hover:bg-gray-700">
                    Next
                </button>
            </div>
        </div>
    </div>

    <script>
        // Admin functionality will be implemented here
    </script>
</body>
</html>