Spaces:
Running
Running
Download admin.html from fss1236c/darkseen-messenger: direct link, hf CLI and curl.
- Browser
- Download file 18.7 kB
-
https://huggingface.co/spaces/fss1236c/darkseen-messenger/resolve/main/admin.html
- Command line
-
hf download hf://spaces/fss1236c/darkseen-messenger/admin.html
-
curl -L -o admin.html https://huggingface.co/spaces/fss1236c/darkseen-messenger/resolve/main/admin.html
18.7 kB
| <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> |