Spaces:
Running
Running
File size: 13,586 Bytes
b154756 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - RedBot Manager</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<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>
</head>
<body class="bg-gray-900 text-white min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<!-- Dashboard Header -->
<header class="bg-gray-800 border-b border-gray-700 py-6">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
<div>
<h1 class="text-2xl font-bold">Dashboard</h1>
<p class="text-gray-400">Manage your RedBot configuration and settings</p>
</div>
<div class="flex items-center gap-4">
<div class="bg-indigo-600 px-3 py-1 rounded-full text-sm flex items-center gap-2">
<div class="w-2 h-2 bg-green-500 rounded-full"></div>
<span>Online</span>
</div>
<button class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="refresh-cw"></i>
<span>Sync</span>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="flex-grow container mx-auto px-4 py-8">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
<!-- Sidebar Navigation -->
<div class="lg:col-span-1">
<div class="bg-gray-800 rounded-xl p-4 sticky top-24">
<nav>
<ul class="space-y-1">
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg bg-indigo-600 text-white">
<i data-feather="home"></i>
<span>Overview</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="package"></i>
<span>Cogs</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="server"></i>
<span>Servers</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="settings"></i>
<span>Settings</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="bar-chart-2"></i>
<span>Analytics</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="users"></i>
<span>Permissions</span>
</a>
</li>
<li>
<a href="#" class="flex items-center gap-3 p-3 rounded-lg hover:bg-gray-700 text-gray-300 hover:text-white">
<i data-feather="bell"></i>
<span>Notifications</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<!-- Main Content Area -->
<div class="lg:col-span-3">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Total Servers</p>
<p class="text-2xl font-bold mt-1">24</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="server" class="text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Active Cogs</p>
<p class="text-2xl font-bold mt-1">18</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="package" class="text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Commands Used</p>
<p class="text-2xl font-bold mt-1">1,248</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="command" class="text-white"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-5">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400">Uptime</p>
<p class="text-2xl font-bold mt-1">99.8%</p>
</div>
<div class="w-12 h-12 rounded-full bg-indigo-600 flex items-center justify-center">
<i data-feather="clock" class="text-white"></i>
</div>
</div>
</div>
</div>
<!-- Configuration Section -->
<div class="bg-gray-800 rounded-xl p-6 mb-6">
<div class="flex flex-wrap items-center justify-between gap-4 mb-6">
<h2 class="text-xl font-bold">Global Configuration</h2>
<button class="bg-indigo-600 hover:bg-indigo-700 px-4 py-2 rounded-lg flex items-center gap-2">
<i data-feather="save"></i>
<span>Save Changes</span>
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label class="block text-gray-300 mb-2">Default Prefix</label>
<input type="text" value="!" class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
</div>
<div>
<label class="block text-gray-300 mb-2">Language</label>
<select class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500">
<option>English</option>
<option>Spanish</option>
<option>French</option>
<option>German</option>
</select>
</div>
<div>
<label class="block text-gray-300 mb-2">Delete Command Messages</label>
<div class="relative inline-block w-12 h-6">
<input type="checkbox" class="opacity-0 w-0 h-0 peer" id="delete-commands">
<label for="delete-commands" class="absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-600 rounded-full transition duration-300 before:absolute before:h-4 before:w-4 before:left-1 before:bottom-1 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:before:translate-x-6 peer-checked:bg-indigo-600"></label>
</div>
</div>
<div>
<label class="block text-gray-300 mb-2">Send Help via DM</label>
<div class="relative inline-block w-12 h-6">
<input type="checkbox" class="opacity-0 w-0 h-0 peer" id="help-dm" checked>
<label for="help-dm" class="absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-600 rounded-full transition duration-300 before:absolute before:h-4 before:w-4 before:left-1 before:bottom-1 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:before:translate-x-6 peer-checked:bg-indigo-600"></label>
</div>
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-gray-800 rounded-xl p-6">
<h2 class="text-xl font-bold mb-6">Recent Activity</h2>
<div class="space-y-4">
<div class="flex items-start gap-4 p-4 bg-gray-700 rounded-lg">
<div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center flex-shrink-0">
<i data-feather="settings" class="text-white text-sm"></i>
</div>
<div>
<p class="font-medium">Configuration Updated</p>
<p class="text-gray-400 text-sm">Changed default prefix to "!" in 3 servers</p>
<p class="text-gray-500 text-xs mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start gap-4 p-4 bg-gray-700 rounded-lg">
<div class="w-10 h-10 rounded-full bg-green-600 flex items-center justify-center flex-shrink-0">
<i data-feather="package" class="text-white text-sm"></i>
</div>
<div>
<p class="font-medium">Cog Installed</p>
<p class="text-gray-400 text-sm">Installed "Moderation" cog in Gaming Server</p>
<p class="text-gray-500 text-xs mt-1">5 hours ago</p>
</div>
</div>
<div class="flex items-start gap-4 p-4 bg-gray-700 rounded-lg">
<div class="w-10 h-10 rounded-full bg-red-600 flex items-center justify-center flex-shrink-0">
<i data-feather="alert-triangle" class="text-white text-sm"></i>
</div>
<div>
<p class="font-medium">Error Occurred</p>
<p class="text-gray-400 text-sm">Failed to load "Music" cog in Community Server</p>
<p class="text-gray-500 text-xs mt-1">Yesterday</p>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
</body>
</html> |