File size: 18,508 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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Deployment 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>
        .deployment-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.1);
        }
        .status-active { background-color: #10b981; }
        .status-pending { background-color: #f59e0b; }
        .status-failed { background-color: #ef4444; }
        .status-stopped { background-color: #6b7280; }
    </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-red-400 hover:text-red-300 transition-colors">Deployments</a>
                        <a href="container-manager.html" class="text-gray-300 hover:text-white 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="deployment-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 Deployment
                    </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">Deployment Manager</h1>
                    <p class="text-gray-400">Deploy your applications to multiple platforms with one click</p>
                </div>
                <div class="flex space-x-4">
                    <div class="relative">
                        <input type="text" placeholder="Search deployments..." 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 Deployments</option>
                        <option>Active</option>
                        <option>Pending</option>
                        <option>Failed</option>
                    </select>
                </div>
            </div>
        </div>
    </div>

    <!-- Deployments 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 gap-6">
            <!-- Deployment 1 -->
            <div class="bg-gray-800 rounded-xl border border-gray-700 deployment-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-12 h-12 bg-blue-500 rounded-lg flex items-center justify-center">
                            <i data-feather="cloud" class="w-6 h-6"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-white">Web Dashboard</h3>
                            <p class="text-sm text-gray-400">Production • Vercel</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="status-active w-3 h-3 rounded-full"></span>
                        <span class="text-green-400 text-sm">Active</span>
                    </div>
                </div>
                <p class="text-gray-300 text-sm mb-4">React dashboard application with real-time analytics and user management.</p>
                <div class="flex items-center justify-between text-sm mb-4">
                    <div class="text-gray-400">
                        <i data-feather="calendar" class="w-4 h-4 inline mr-1"></i>
                        Deployed: 2 days ago
                    </div>
                    <div class="text-gray-400">
                        <i data-feather="globe" class="w-4 h-4 inline mr-1"></i>
                        https://dashboard.example.com
                    </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>
                        Redeploy
                    </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>

            <!-- Deployment 2 -->
            <div class="bg-gray-800 rounded-xl border border-gray-700 deployment-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-12 h-12 bg-green-500 rounded-lg flex items-center justify-center">
                            <i data-feather="server" class="w-6 h-6"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-white">API Service</h3>
                            <p class="text-sm text-gray-400">Staging • Docker</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="status-pending w-3 h-3 rounded-full"></span>
                        <span class="text-yellow-400 text-sm">Pending</span>
                    </div>
                </div>
                <p class="text-gray-300 text-sm mb-4">FastAPI backend service with PostgreSQL database and Redis cache.</p>
                <div class="flex items-center justify-between text-sm mb-4">
                    <div class="text-gray-400">
                        <i data-feather="calendar" class="w-4 h-4 inline mr-1"></i>
                        Started: 5 minutes ago
                    </div>
                    <div class="text-gray-400">
                        <i data-feather="clock" class="w-4 h-4 inline mr-1"></i>
                        Building...
                    </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>
                        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>
                </div>
            </div>

            <!-- Deployment 3 -->
            <div class="bg-gray-800 rounded-xl border border-gray-700 deployment-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-12 h-12 bg-purple-500 rounded-lg flex items-center justify-center">
                            <i data-feather="box" class="w-6 h-6"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-white">ML Model</h3>
                            <p class="text-sm text-gray-400">Production • AWS</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="status-active w-3 h-3 rounded-full"></span>
                        <span class="text-green-400 text-sm">Active</span>
                    </div>
                </div>
                <p class="text-gray-300 text-sm mb-4">TensorFlow model serving with auto-scaling and monitoring.</p>
                <div class="flex items-center justify-between text-sm mb-4">
                    <div class="text-gray-400">
                        <i data-feather="calendar" class="w-4 h-4 inline mr-1"></i>
                        Deployed: 1 week ago
                    </div>
                    <div class="text-gray-400">
                        <i data-feather="activity" class="w-4 h-4 inline mr-1"></i>
                        98% Uptime
                    </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>
                        Update
                    </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>

            <!-- Deployment 4 -->
            <div class="bg-gray-800 rounded-xl border border-gray-700 deployment-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-12 h-12 bg-yellow-500 rounded-lg flex items-center justify-center">
                            <i data-feather="database" class="w-6 h-6"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold text-white">Database Service</h3>
                            <p class="text-sm text-gray-400">Development • Kubernetes</p>
                        </div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <span class="status-failed w-3 h-3 rounded-full"></span>
                        <span class="text-red-400 text-sm">Failed</span>
                    </div>
                </div>
                <p class="text-gray-300 text-sm mb-4">PostgreSQL cluster with replication and backup configuration.</p>
                <div class="flex items-center justify-between text-sm mb-4">
                    <div class="text-gray-400">
                        <i data-feather="calendar" class="w-4 h-4 inline mr-1"></i>
                        Failed: 1 hour ago
                    </div>
                    <div class="text-red-400">
                        <i data-feather="alert-triangle" class="w-4 h-4 inline mr-1"></i>
                        Resource limit exceeded
                    </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>
                        Retry
                    </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>
                </div>
            </div>
        </div>
    </div>

    <!-- Quick Deploy Section -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <div class="bg-gray-800 rounded-xl border border-gray-700 p-8">
            <h2 class="text-2xl font-bold text-white mb-6">Quick Deploy</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <div class="bg-gray-700/50 rounded-lg p-6 border border-gray-600 hover:border-red-500 transition-all cursor-pointer group">
                    <div class="w-16 h-16 bg-blue-500 rounded-xl flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                        <i data-feather="cloud" class="w-8 h-8"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-white mb-2">Vercel</h3>
                    <p class="text-gray-400 text-sm">Deploy frontend applications with zero configuration</p>
                </div>
                <div class="bg-gray-700/50 rounded-lg p-6 border border-gray-600 hover:border-red-500 transition-all cursor-pointer group">
                    <div class="w-16 h-16 bg-green-500 rounded-xl flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                        <i data-feather="server" class="w-8 h-8"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-white mb-2">Docker</h3>
                    <p class="text-gray-400 text-sm">Containerized deployments with custom Docker images</p>
                </div>
                <div class="bg-gray-700/50 rounded-lg p-6 border border-gray-600 hover:border-red-500 transition-all cursor-pointer group">
                    <div class="w-16 h-16 bg-purple-500 rounded-xl flex items-center justify-center mb-4 group-hover:scale-110 transition-transform">
                        <i data-feather="box" class="w-8 h-8"></i>
                    </div>
                    <h3 class="text-lg font-semibold text-white mb-2">Kubernetes</h3>
                    <p class="text-gray-400 text-sm">Scalable container orchestration with auto-healing</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 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">Active Deployments</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 Deployments</p>
                        <p class="text-2xl font-bold text-white">24</p>
                    </div>
                    <div class="w-12 h-12 bg-blue-500/20 rounded-lg flex items-center justify-center">
                        <i data-feather="cloud" 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">Uptime</p>
                        <p class="text-2xl font-bold text-white">99.8%</p>
                    </div>
                    <div class="w-12 h-12 bg-purple-500/20 rounded-lg flex items-center justify-center">
                        <i data-feather="trending-up" 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">Failed Deployments</p>
                        <p class="text-2xl font-bold text-white">2</p>
                    </div>
                    <div class="w-12 h-12 bg-red-500/20 rounded-lg flex items-center justify-center">
                        <i data-feather="alert-triangle" class="w-6 h-6 text-red-400"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        feather.replace();
    </script>
</body>
</html>