Spaces:
Running
Running
File size: 23,031 Bytes
ce781ae | 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 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Container Manager | CodeForge-AI</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>
<style>
.container-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.1);
}
.status-running { background-color: #10b981; }
.status-stopped { background-color: #6b7280; }
.status-building { background-color: #f59e0b; }
.status-error { background-color: #ef4444; }
.progress-bar {
background: linear-gradient(90deg, #ef4444 0%, #ef4444 var(--progress), #374151 var(--progress), #374151 100%);
}
</style>
</head>
<body class="bg-gray-900 text-white min-h-screen">
<!-- Navigation -->
<nav class="bg-gray-800 border-b border-red-500/20 sticky top-0 z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center space-x-4">
<a href="index.html" class="flex items-center space-x-2">
<div class="w-8 h-8 bg-red-500 rounded-lg flex items-center justify-center">
<i data-feather="code" class="w-4 h-4"></i>
</div>
<span class="text-xl font-bold text-white">CodeForge-AI</span>
</a>
<div class="hidden md:flex space-x-6">
<a href="workspace-manager.html" class="text-gray-300 hover:text-white transition-colors">Workspaces</a>
<a href="ai-editor.html" class="text-gray-300 hover:text-white transition-colors">AI Editor</a>
<a href="deployment-manager.html" class="text-gray-300 hover:text-white transition-colors">Deployments</a>
<a href="container-manager.html" class="text-red-400 hover:text-red-300 transition-colors">Containers</a>
<a href="documentation.html" class="text-gray-300 hover:text-white transition-colors">Documentation</a>
</div>
</div>
<div class="flex items-center space-x-4">
<a href="container-manager.html" class="bg-red-500 hover:bg-red-600 px-4 py-2 rounded-lg text-white font-medium transition-colors">
<i data-feather="plus" class="w-4 h-4 inline mr-2"></i>
New Container
</a>
<button class="text-gray-300 hover:text-white transition-colors">
<i data-feather="user" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- Header -->
<div class="bg-gray-800/50 border-b border-gray-700">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="flex items-center justify-between">
<div>
<h1 class="text-3xl font-bold text-white mb-2">Container Manager</h1>
<p class="text-gray-400">Monitor and manage your Docker containers and resources</p>
</div>
<div class="flex space-x-4">
<div class="relative">
<input type="text" placeholder="Search containers..." class="bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 pl-10 text-white placeholder-gray-400 focus:outline-none focus:border-red-500">
<i data-feather="search" class="w-4 h-4 text-gray-400 absolute left-3 top-3"></i>
</div>
<select class="bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 text-white focus:outline-none focus:border-red-500">
<option>All Containers</option>
<option>Running</option>
<option>Stopped</option>
<option>Building</option>
</select>
</div>
</div>
</div>
</div>
<!-- Container Grid -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-6">
<!-- Container 1 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-blue-500 rounded-lg flex items-center justify-center">
<i data-feather="box" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">Web App Container</h3>
<p class="text-sm text-gray-400">Node.js Application</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-running w-3 h-3 rounded-full"></span>
<span class="text-green-400 text-sm">Running</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Usage</span>
<span class="text-white">24%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 24%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Memory</span>
<span class="text-white">512MB / 2GB</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 25%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Network</span>
<span class="text-white">1.2MB/s</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="pause" class="w-4 h-4 inline mr-2"></i>
Stop
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 2 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-green-500 rounded-lg flex items-center justify-center">
<i data-feather="database" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">PostgreSQL DB</h3>
<p class="text-sm text-gray-400">Database Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-running w-3 h-3 rounded-full"></span>
<span class="text-green-400 text-sm">Running</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Usage</span>
<span class="text-white">18%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 18%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Memory</span>
<span class="text-white">1.2GB / 4GB</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 30%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Storage</span>
<span class="text-white">8.5GB / 20GB</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="pause" class="w-4 h-4 inline mr-2"></i>
Stop
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 3 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-purple-500 rounded-lg flex items-center justify-center">
<i data-feather="cpu" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">ML Processing</h3>
<p class="text-sm text-gray-400">TensorFlow Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-stopped w-3 h-3 rounded-full"></span>
<span class="text-gray-400 text-sm">Stopped</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">CPU Usage</span>
<span class="text-white">0%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 0%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Memory</span>
<span class="text-white">0MB / 8GB</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 0%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">GPU Usage</span>
<span class="text-white">0%</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-green-500 hover:bg-green-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="play" class="w-4 h-4 inline mr-2"></i>
Start
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 4 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-yellow-500 rounded-lg flex items-center justify-center">
<i data-feather="git-branch" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">CI/CD Runner</h3>
<p class="text-sm text-gray-400">Build Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-building w-3 h-3 rounded-full"></span>
<span class="text-yellow-400 text-sm">Building</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Build Progress</span>
<span class="text-white">65%</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="progress-bar h-2 rounded-full" style="--progress: 65%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Time Elapsed</span>
<span class="text-white">2m 34s</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Estimated Time</span>
<span class="text-white">1m 26s</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="x" class="w-4 h-4 inline mr-2"></i>
Cancel
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Logs
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- Container 5 -->
<div class="bg-gray-800 rounded-xl border border-gray-700 container-card transition-all duration-300 p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 bg-red-500 rounded-lg flex items-center justify-center">
<i data-feather="alert-triangle" class="w-5 h-5"></i>
</div>
<div>
<h3 class="font-semibold text-white">Redis Cache</h3>
<p class="text-sm text-gray-400">Cache Service</p>
</div>
</div>
<div class="flex items-center space-x-2">
<span class="status-error w-3 h-3 rounded-full"></span>
<span class="text-red-400 text-sm">Error</span>
</div>
</div>
<div class="space-y-3 mb-4">
<div class="flex justify-between text-sm">
<span class="text-gray-400">Status</span>
<span class="text-red-400">Crash Loop</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2">
<div class="bg-red-500 h-2 rounded-full" style="width: 100%"></div>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Restart Count</span>
<span class="text-white">15</span>
</div>
<div class="flex justify-between text-sm">
<span class="text-gray-400">Last Error</span>
<span class="text-red-400">Memory Limit</span>
</div>
</div>
<div class="flex space-x-2">
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="refresh-cw" class="w-4 h-4 inline mr-2"></i>
Restart
</button>
<button class="flex-1 bg-gray-700 hover:bg-gray-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="bar-chart" class="w-4 h-4 inline mr-2"></i>
Debug
</button>
<button class="flex-1 bg-red-500 hover:bg-red-600 text-white py-2 rounded-lg text-sm font-medium transition-colors">
<i data-feather="trash-2" class="w-4 h-4 inline mr-2"></i>
Delete
</button>
</div>
</div>
<!-- New Container Card -->
<div class="bg-gray-800/50 rounded-xl border-2 border-dashed border-gray-600 hover:border-red-500 transition-all duration-300 p-6 flex flex-col items-center justify-center cursor-pointer group">
<div class="w-16 h-16 bg-gray-700 rounded-full flex items-center justify-center mb-4 group-hover:bg-red-500 transition-colors">
<i data-feather="plus" class="w-8 h-8 text-gray-400 group-hover:text-white"></i>
</div>
<h3 class="text-lg font-semibold text-white mb-2">Create New Container</h3>
<p class="text-gray-400 text-center text-sm">Launch a new container with your preferred configuration</p>
</div>
</div>
</div>
<!-- Resource Statistics -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-6">
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Running Containers</p>
<p class="text-2xl font-bold text-white">8</p>
</div>
<div class="w-12 h-12 bg-green-500/20 rounded-lg flex items-center justify-center">
<i data-feather="play" class="w-6 h-6 text-green-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Total Containers</p>
<p class="text-2xl font-bold text-white">15</p>
</div>
<div class="w-12 h-12 bg-blue-500/20 rounded-lg flex items-center justify-center">
<i data-feather="box" class="w-6 h-6 text-blue-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">CPU Usage</p>
<p class="text-2xl font-bold text-white">42%</p>
</div>
<div class="w-12 h-12 bg-purple-500/20 rounded-lg flex items-center justify-center">
<i data-feather="cpu" class="w-6 h-6 text-purple-400"></i>
</div>
</div>
</div>
<div class="bg-gray-800 rounded-xl p-6 border border-gray-700">
<div class="flex items-center justify-between">
<div>
<p class="text-gray-400 text-sm">Memory Usage</p>
<p class="text-2xl font-bold text-white">6.2GB</p>
</div>
<div class="w-12 h-12 bg-yellow-500/20 rounded-lg flex items-center justify-center">
<i data-feather="hard-drive" class="w-6 h-6 text-yellow-400"></i>
</div>
</div>
</div>
</div>
</div>
<script>
feather.replace();
</script>
</body>
</html> |