File size: 23,557 Bytes
4132a37
 
 
 
 
52f00b4
4132a37
 
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
4132a37
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
4132a37
52f00b4
 
 
4132a37
52f00b4
 
 
 
4132a37
52f00b4
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
 
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
 
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
 
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
 
52f00b4
 
 
 
 
 
4132a37
52f00b4
 
 
 
4132a37
 
 
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
 
52f00b4
 
 
 
 
 
 
 
4132a37
52f00b4
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
4132a37
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
4132a37
 
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
4132a37
 
 
 
 
52f00b4
4132a37
 
52f00b4
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
4132a37
52f00b4
 
 
 
 
 
 
 
 
 
 
 
4132a37
52f00b4
 
 
4132a37
52f00b4
 
 
 
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
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Multi-Terminal AI Development Studio</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* All previous styles remain the same */
        .terminal {
            font-family: 'Courier New', monospace;
            background: linear-gradient(135deg, #1e1e2e 0%, #2d2d42 100%);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .terminal-header {
            background: linear-gradient(90deg, #3a3a52 0%, #2a2a3a 100%);
            padding: 8px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #4a4a6a;
        }
        .terminal-viewport {
            flex-grow: 1;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #4a4a6a #2a2a3a;
            padding: 12px;
            background-color: rgba(0, 0, 0, 0.2);
            height: calc(100% - 60px);
        }
        .terminal-viewport::-webkit-scrollbar {
            width: 6px;
        }
        .terminal-viewport::-webkit-scrollbar-track {
            background: #2a2a3a;
        }
        .terminal-viewport::-webkit-scrollbar-thumb {
            background-color: #4a4a6a;
            border-radius: 3px;
        }
        .terminal-input-area {
            padding: 10px;
            background: #2a2a3a;
            border-top: 1px solid #4a4a6a;
        }
        .command-line {
            display: flex;
            align-items: center;
        }
        .prompt {
            color: #50fa7b;
            margin-right: 8px;
            font-weight: bold;
        }
        .command-input {
            background: transparent;
            border: none;
            color: #f8f8f2;
            outline: none;
            flex-grow: 1;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            caret-color: #50fa7b;
        }
        .output {
            white-space: pre-wrap;
            margin-bottom: 8px;
            line-height: 1.4;
            font-size: 14px;
            animation: fadeIn 0.3s ease-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .success {
            color: #50fa7b;
        }
        .error {
            color: #ff5555;
        }
        .info {
            color: #8be9fd;
        }
        .warning {
            color: #f1fa8c;
        }
        .card {
            background: linear-gradient(145deg, #2d3748, #1a202c);
            border-radius: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            height: 300px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .card-header {
            background: linear-gradient(90deg, #3a3a52 0%, #2a2a3a 100%);
            padding: 12px 16px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #4a4a6a;
        }
        .llm-response {
            border-left: 3px solid;
            padding-left: 10px;
            margin: 10px 0;
            animation: fadeIn 0.3s ease-out;
        }
        .llm-1 { border-color: #ff5555; }
        .llm-2 { border-color: #50fa7b; }
        .llm-3 { border-color: #8be9fd; }
        .typing {
            display: inline-block;
        }
        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #8be9fd;
            display: inline-block;
            margin-right: 3px;
            animation: typing 1.4s infinite ease-in-out;
        }
        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }
        @keyframes typing {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
        }
        .terminal-controls {
            display: flex;
            gap: 6px;
        }
        .terminal-btn {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .terminal-btn:hover {
            transform: scale(1.1);
        }
        .close-btn {
            background-color: #ff5f56;
        }
        .minimize-btn {
            background-color: #ffbd2e;
        }
        .maximize-btn {
            background-color: #27c93f;
        }
        .blinking-cursor {
            animation: blink 1s infinite;
        }
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        .preview-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            height: 600px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            grid-column: span 2;
        }
        .preview-header {
            background: linear-gradient(90deg, #3a3a52 0%, #2a2a3a 100%);
            padding: 12px 16px;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #4a4a6a;
            color: white;
        }
        .preview-iframe {
            flex-grow: 1;
            border: none;
            background: white;
        }
        .preview-controls {
            display: flex;
            gap: 8px;
            padding: 8px;
            background: #2a2a3a;
            border-top: 1px solid #4a4a6a;
        }
        .preview-btn {
            padding: 4px 8px;
            border-radius: 4px;
            background: #3a3a52;
            color: white;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .preview-btn:hover {
            background: #4a4a6a;
        }
        .preview-url {
            flex-grow: 1;
            background: #2a2a3a;
            border: 1px solid #4a4a6a;
            border-radius: 4px;
            padding: 4px 8px;
            color: white;
            font-family: 'Courier New', monospace;
            font-size: 12px;
        }
        .terminal-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        .preview-container {
            grid-column: span 2;
        }
        .generated-image {
            max-width: 100%;
            max-height: 200px;
            border-radius: 4px;
            margin-top: 10px;
            border: 1px solid #4a4a6a;
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen p-6">
    <div class="container mx-auto">
        <div class="flex flex-col lg:flex-row gap-8">
            <!-- Left content area -->
            <div class="w-full lg:w-1/2">
                <div class="flex justify-between items-center mb-8">
                    <h1 class="text-3xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-green-400 to-blue-500">
                        <i class="fas fa-terminal mr-2"></i>AI Development Studio
                    </h1>
                    <div class="flex space-x-2">
                        <button id="new-terminal" class="px-4 py-2 bg-green-600 hover:bg-green-700 rounded-md transition flex items-center">
                            <i class="fas fa-plus mr-2"></i> New Terminal
                        </button>
                        <button id="clear-all" class="px-4 py-2 bg-red-600 hover:bg-red-700 rounded-md transition flex items-center">
                            <i class="fas fa-trash mr-2"></i> Clear All
                        </button>
                    </div>
                </div>

                <!-- New LLM Query Card -->
                <div class="bg-gray-800 rounded-xl p-6 mb-6">
                    <h2 class="text-xl font-semibold mb-4 text-purple-400">Multi-LLM Query</h2>
                    <div class="mb-4">
                        <label for="llm-query" class="block text-sm font-medium mb-2">Enter your prompt:</label>
                        <div class="flex">
                            <input type="text" id="llm-query" class="flex-grow px-4 py-2 bg-gray-700 border border-gray-600 rounded-l-md focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Ask something to multiple LLMs...">
                            <button id="send-query" class="px-4 py-2 bg-purple-600 hover:bg-purple-700 rounded-r-md transition">
                                <i class="fas fa-paper-plane mr-2"></i>Send
                            </button>
                        </div>
                    </div>
                    <div id="llm-responses" class="bg-gray-700 rounded-lg p-4 min-h-32 max-h-64 overflow-y-auto">
                        <p class="text-gray-400 italic">Responses from LLMs will appear here...</p>
                    </div>
                </div>

                <div class="bg-gray-800 rounded-xl p-6 mb-6">
                    <h2 class="text-xl font-semibold mb-4 text-green-400">Welcome to AI Dev Studio</h2>
                    <p class="mb-4">This interface provides you with four terminal instances on the right side of your screen. Terminal 1 runs deepcoder:1.5b AI to generate HTML/CSS/JS code which is rendered live in the preview panel.</p>
                    <div class="bg-gray-700 rounded-lg p-4">
                        <h3 class="font-medium mb-2 text-blue-400">Available Commands:</h3>
                        <ul class="list-disc pl-5 space-y-1">
                            <li><span class="text-green-400">help</span> - Show available commands</li>
                            <li><span class="text-green-400">clear</span> - Clear terminal history</li>
                            <li><span class="text-green-400">echo</span> - Print text to terminal</li>
                            <li><span class="text-green-400">date</span> - Show current date/time</li>
                            <li><span class="text-green-400">neofetch</span> - Display system info</li>
                            <li><span class="text-green-400">theme</span> - Change terminal colors</li>
                            <li><span class="text-green-400">build</span> - Generate HTML page (Terminal 1 only)</li>
                            <li><span class="text-green-400">preview</span> - Update live preview</li>
                            <li><span class="text-green-400">generate-image</span> - Generate AI image (Terminal 2 only)</li>
                        </ul>
                    </div>
                </div>

                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <div class="bg-gray-800 rounded-xl p-4">
                        <h3 class="font-medium mb-2 text-purple-400">Terminal Stats</h3>
                        <p>Active terminals: <span id="terminal-count" class="text-green-400">4</span></p>
                        <p>Max terminals: <span class="text-blue-400">4</span></p>
                    </div>
                    <div class="bg-gray-800 rounded-xl p-4">
                        <h3 class="font-medium mb-2 text-yellow-400">System Info</h3>
                        <p>Browser: <span class="text-blue-400" id="browser-info">Loading...</span></p>
                        <p>Resolution: <span class="text-blue-400" id="resolution-info">Loading...</span></p>
                    </div>
                </div>
            </div>

            <!-- Right cards area with terminals -->
            <div class="w-full lg:w-1/2">
                <!-- Preview Card (XXL size) -->
                <div class="preview-card mb-6">
                    <div class="preview-header">
                        <span class="flex items-center">
                            <i class="fas fa-globe mr-2 text-blue-400"></i>
                            Live Preview
                        </span>
                        <div class="terminal-controls">
                            <div class="terminal-btn minimize-btn" data-preview="1">
                                <i class="fas fa-minus"></i>
                            </div>
                            <div class="terminal-btn close-btn" data-preview="1">
                                <i class="fas fa-times"></i>
                            </div>
                        </div>
                    </div>
                    <div class="preview-controls">
                        <span class="preview-btn" id="refresh-preview">
                            <i class="fas fa-sync-alt mr-1"></i> Refresh
                        </span>
                        <span class="preview-btn" id="open-preview">
                            <i class="fas fa-external-link-alt mr-1"></i> Open
                        </span>
                        <input type="text" class="preview-url" id="preview-url" value="about:blank" readonly>
                    </div>
                    <iframe id="preview-iframe" class="preview-iframe" src="about:blank"></iframe>
                </div>

                <!-- Terminal Grid -->
                <div class="terminal-grid">
                    <div class="card">
                        <div class="card-header">
                            <span class="flex items-center">
                                <i class="fas fa-terminal mr-2 text-green-400"></i>
                                Terminal 1 (deepcoder:1.5b)
                            </span>
                            <div class="terminal-controls">
                                <div class="terminal-btn minimize-btn" data-terminal="1">
                                    <i class="fas fa-minus"></i>
                                </div>
                                <div class="terminal-btn close-btn" data-terminal="1">
                                    <i class="fas fa-times"></i>
                                </div>
                            </div>
                        </div>
                        <div class="terminal-container h-full" id="terminal-1-container">
                            <div class="terminal">
                                <div class="terminal-viewport" id="terminal-1-viewport"></div>
                                <div class="terminal-input-area">
                                    <div class="command-line">
                                        <span class="prompt">user@deepcoder:~$</span>
                                        <input type="text" class="command-input" id="terminal-1-input" autocomplete="off">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-header">
                            <span class="flex items-center">
                                <i class="fas fa-brain mr-2 text-red-400"></i>
                                Terminal 2 (LLaMA-7B + SD)
                            </span>
                            <div class="terminal-controls">
                                <div class="terminal-btn minimize-btn" data-terminal="2">
                                    <i class="fas fa-minus"></i>
                                </div>
                                <div class="terminal-btn close-btn" data-terminal="2">
                                    <i class="fas fa-times"></i>
                                </div>
                            </div>
                        </div>
                        <div class="terminal-container h-full" id="terminal-2-container">
                            <div class="terminal">
                                <div class="terminal-viewport" id="terminal-2-viewport"></div>
                                <div class="terminal-input-area">
                                    <div class="command-line">
                                        <span class="prompt">user@llama-sd:~$</span>
                                        <input type="text" class="command-input" id="terminal-2-input" autocomplete="off">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-header">
                            <span class="flex items-center">
                                <i class="fas fa-brain mr-2 text-green-400"></i>
                                Terminal 3 (LLaMA-13B)
                            </span>
                            <div class="terminal-controls">
                                <div class="terminal-btn minimize-btn" data-terminal="3">
                                    <i class="fas fa-minus"></i>
                                </div>
                                <div class="terminal-btn close-btn" data-terminal="3">
                                    <i class="fas fa-times"></i>
                                </div>
                            </div>
                        </div>
                        <div class="terminal-container h-full" id="terminal-3-container">
                            <div class="terminal">
                                <div class="terminal-viewport" id="terminal-3-viewport"></div>
                                <div class="terminal-input-area">
                                    <div class="command-line">
                                        <span class="prompt">user@llama-13b:~$</span>
                                        <input type="text" class="command-input" id="terminal-3-input" autocomplete="off">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-header">
                            <span class="flex items-center">
                                <i class="fas fa-brain mr-2 text-blue-400"></i>
                                Terminal 4 (LLaMA-70B)
                            </span>
                            <div class="terminal-controls">
                                <div class="terminal-btn minimize-btn" data-terminal="4">
                                    <i class="fas fa-minus"></i>
                                </div>
                                <div class="terminal-btn close-btn" data-terminal="4">
                                    <i class="fas fa-times"></i>
                                </div>
                            </div>
                        </div>
                        <div class="terminal-container h-full" id="terminal-4-container">
                            <div class="terminal">
                                <div class="terminal-viewport" id="terminal-4-viewport"></div>
                                <div class="terminal-input-area">
                                    <div class="command-line">
                                        <span class="prompt">user@llama-70b:~$</span>
                                        <input type="text" class="command-input" id="terminal-4-input" autocomplete="off">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // DOM elements
            const terminalViewports = [
                document.getElementById('terminal-1-viewport'),
                document.getElementById('terminal-2-viewport'),
                document.getElementById('terminal-3-viewport'),
                document.getElementById('terminal-4-viewport')
            ];
            
            const terminalInputs = [
                document.getElementById('terminal-1-input'),
                document.getElementById('terminal-2-input'),
                document.getElementById('terminal-3-input'),
                document.getElementById('terminal-4-input')
            ];
            
            const newTerminalBtn = document.getElementById('new-terminal');
            const clearAllBtn = document.getElementById('clear-all');
            const terminalCountDisplay = document.getElementById('terminal-count');
            const browserInfoDisplay = document.getElementById('browser-info');
            const resolutionInfoDisplay = document.getElementById('resolution-info');
            const llmQueryInput = document.getElementById('llm-query');
            const sendQueryBtn = document.getElementById('send-query');
            const llmResponsesContainer = document.getElementById('llm-responses');
            const previewIframe = document.getElementById('preview-iframe');
            const refreshPreviewBtn = document.getElementById('refresh-preview');
            const openPreviewBtn = document.getElementById('open-preview');
            const previewUrlInput = document.getElementById('preview-url');
            
            // System info
            browserInfoDisplay.textContent = navigator.userAgent.split(')')[0].split('(')[1];
            resolutionInfoDisplay.textContent = `${window.innerWidth} × ${window.innerHeight}`;
            
            // Terminal initialization
            let terminalCount = 4;
            const maxTerminals = 4;
            let currentHtml = '<!DOCTYPE html><html><head><title>New Project</title></head><body><h1>Hello World!</h1><p>Generated by deepcoder:1.5b</p><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MarcRyan/elevate" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>