forked from MohdYahyaMahmodi/pulsar-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
os.html
695 lines (628 loc) · 29 KB
/
os.html
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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TalkoBrowser OS</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
:root {
--color-dark: #202020;
--color-medium: #333333;
--color-light: #FDF5E6;
--color-accent: #FF9800;
}
body {
font-family: 'VT323', monospace;
background-color: var(--color-dark);
color: var(--color-light);
overflow: hidden;
}
.window {
background-color: var(--color-medium);
border: 2px solid var(--color-accent);
box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}
.title-bar {
background: var(--color-dark);
border-bottom: 2px solid var(--color-accent);
}
.window-btn {
background: var(--color-accent);
color: var(--color-dark);
}
.window-btn:hover {
background: #FFB74D;
}
.taskbar {
background: linear-gradient(to bottom, #3c3c3c, var(--color-medium));
border-top: 2px solid var(--color-accent);
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
.start-btn {
background: linear-gradient(to bottom, #FFB74D, var(--color-accent));
color: var(--color-dark);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}
.start-btn:hover {
background: linear-gradient(to bottom, #FFCC80, #FFB74D);
}
.taskbar-icon {
background-color: rgba(253, 245, 230, 0.1);
transition: background-color 0.3s ease;
}
.taskbar-icon:hover, .taskbar-icon.active {
background-color: rgba(253, 245, 230, 0.3);
}
.icon {
background-color: var(--color-medium);
border: 2px solid var(--color-accent);
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: var(--color-medium);
}
::-webkit-scrollbar-thumb {
background: var(--color-accent);
border: 1px solid var(--color-medium);
}
.content {
background-color: var(--color-light);
color: var(--color-dark);
}
.browser-toolbar {
background-color: var(--color-medium);
border-bottom: 1px solid var(--color-accent);
}
.browser-btn {
background-color: var(--color-accent);
color: var(--color-dark);
}
.browser-btn:hover {
background-color: #FFB74D;
}
.search-bar {
background-color: var(--color-light);
color: var(--color-dark);
}
#browser-frame {
width: 100%;
height: 100%;
border: none;
}
#custom-homepage {
background: linear-gradient(135deg, var(--color-dark), var(--color-medium));
color: var(--color-light);
}
#custom-homepage input {
background-color: var(--color-light);
color: var(--color-dark);
border: 2px solid var(--color-accent);
}
#custom-homepage button {
background-color: var(--color-accent);
color: var(--color-dark);
}
#custom-homepage button:hover {
background-color: #FFB74D;
}
.resize-handle {
position: absolute;
width: 10px;
height: 10px;
background-color: var(--color-accent);
right: 0;
bottom: 0;
cursor: se-resize;
}
/* Desktop Styles */
#desktop {
position: relative;
width: 100%;
height: calc(100vh - 56px); /* Adjust based on your taskbar height */
overflow: hidden;
background-color: var(--color-dark);
}
.desktop-icon {
position: absolute;
width: 80px;
height: 80px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
cursor: move;
user-select: none;
transition: transform 0.1s ease, opacity 0.1s ease;
color: var(--color-light);
}
.desktop-icon:hover {
opacity: 0.8;
}
.desktop-icon:active {
transform: scale(1.05);
opacity: 0.7;
}
.desktop-icon .icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
background-color: rgba(45, 55, 72, 0.7);
border: 2px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.desktop-icon:hover .icon {
background-color: rgba(45, 55, 72, 0.9);
border-color: rgba(255, 255, 255, 0.3);
}
.desktop-icon .icon-title {
margin-top: 4px;
font-size: 12px;
text-align: center;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
/* Context Menu Styles */
#context-menu {
min-width: 200px;
backdrop-filter: blur(5px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}
#context-menu::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(26, 32, 44, 0.8);
border-radius: inherit;
z-index: -1;
}
#context-menu ul {
list-style-type: none;
padding: 0;
margin: 0;
}
#context-menu li {
display: flex;
align-items: center;
padding: 10px 15px;
font-size: 14px;
transition: all 0.2s ease;
}
#context-menu li:hover {
background-color: rgba(66, 153, 225, 0.2);
}
#context-menu li i {
margin-right: 10px;
font-size: 16px;
width: 20px;
text-align: center;
}
#context-menu li:not(:last-child) {
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* Video Player Styles */
#video-window .content {
min-height: 300px;
}
#video-window .video-container {
background-color: black;
min-height: 200px;
}
#video-window .video-overlay {
background: rgba(0, 0, 0, 0.5);
transition: opacity 0.3s ease;
}
#video-window .video-controls input[type="range"] {
-webkit-appearance: none;
height: 5px;
background: #ddd;
outline: none;
opacity: 0.7;
transition: opacity 0.2s;
}
#video-window .video-controls input[type="range"]:hover {
opacity: 1;
}
#video-window .video-controls input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 12px;
height: 12px;
background: #4299e1;
cursor: pointer;
border-radius: 50%;
}
#video-window .video-controls input[type="range"]::-moz-range-thumb {
width: 12px;
height: 12px;
background: #4299e1;
cursor: pointer;
border-radius: 50%;
}
#video-window .video-controls,
#video-window .file-input-container {
flex-shrink: 0;
}
@media (max-width: 640px) {
#video-window .video-controls .flex {
flex-direction: column;
align-items: stretch;
}
#video-window .video-controls .space-x-2 > :not([hidden]) ~ :not([hidden]) {
margin-left: 0;
margin-top: 0.5rem;
}
#video-window .file-input-container {
flex-direction: column;
align-items: stretch;
}
#video-window .file-input-container label {
margin-bottom: 0.5rem;
}
#video-window #file-name {
margin-left: 0;
}
}
.terminal-output-line, .terminal-response {
padding: 2px 0;
}
.terminal-output-line {
color: #00FF00;
}
.terminal-response {
color: #FFFFFF;
}
</style>
</head>
<body class="select-none text-lg">
<div id="desktop" class="relative w-full h-screen p-4">
<div class="desktop-icon cursor-move m-4" id="browser-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">🌐</div>
<div class="mt-2 text-center text-white">Browser</div>
</div>
<div class="desktop-icon cursor-move m-4" id="notepad-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">📝</div>
<div class="mt-2 text-center text-white">Notepad</div>
</div>
<div class="desktop-icon cursor-move m-4" id="calculator-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">🧮</div>
<div class="mt-2 text-center text-white">Calculator</div>
</div>
<div class="desktop-icon cursor-move m-4" id="paint-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">🎨</div>
<div class="mt-2 text-center text-white">Paint</div>
</div>
<div class="desktop-icon cursor-move m-4" id="music-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">🎵</div>
<div class="mt-2 text-center text-white">Music</div>
</div>
<div class="desktop-icon cursor-move m-4" id="explorer-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">📁</div>
<div class="mt-2 text-center text-white">Files</div>
</div>
<div class="desktop-icon cursor-move m-4" id="clock-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">⏰</div>
<div class="mt-2 text-center text-white">Clock</div>
</div>
<div class="desktop-icon cursor-move m-4" id="video-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">🎥</div>
<div class="mt-2 text-center text-white">Video</div>
</div>
<div class="desktop-icon cursor-move m-4" id="terminal-icon">
<div class="icon w-16 h-16 flex items-center justify-center text-3xl bg-gray-800 rounded-lg">💻</div>
<div class="mt-2 text-center text-white">Terminal</div>
</div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="browser-window" style="width: 800px; height: 600px; left: 50px; top: 50px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">TalkoBrowser</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="browser-toolbar flex items-center p-2 space-x-2">
<button class="browser-btn px-3 py-1 rounded" id="back-btn">←</button>
<button class="browser-btn px-3 py-1 rounded" id="forward-btn">→</button>
<button class="browser-btn px-3 py-1 rounded" id="reload-btn">↻</button>
<button class="browser-btn px-3 py-1 rounded" id="home-btn">🏠</button>
<input type="text" class="search-bar flex-grow px-2 py-1 rounded" id="url-bar" placeholder="Enter search or URL">
<button class="browser-btn px-3 py-1 rounded" id="go-btn">Go</button>
</div>
<div class="content flex-1 overflow-hidden bg-white">
<iframe id="browser-frame" src="about:blank"></iframe>
<div id="custom-homepage" class="w-full h-full flex flex-col items-center justify-center p-8">
<h1 class="text-4xl font-bold mb-8">Welcome to TalkoBrowser</h1>
<div class="w-full max-w-md">
<input type="text" id="home-search" class="w-full px-4 py-2 rounded-full text-lg" placeholder="Search or enter URL">
</div>
<button id="home-search-btn" class="mt-4 px-6 py-2 rounded-full text-lg font-bold">Search</button>
<p class="mt-8 text-center">Type a search query or URL and press Enter or click Search</p>
</div>
</div>
<div class="resize-handle"></div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="notepad-window" style="width: 600px; height: 400px; left: 100px; top: 100px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Notepad</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="toolbar flex items-center p-2 space-x-2 bg-gray-700">
<select id="font-select" class="bg-gray-600 text-white px-2 py-1 rounded">
<option value="Arial">Arial</option>
<option value="Helvetica">Helvetica</option>
<option value="Times New Roman">Times New Roman</option>
<option value="Courier New">Courier New</option>
</select>
<select id="font-size" class="bg-gray-600 text-white px-2 py-1 rounded">
<option value="12">12</option>
<option value="14">14</option>
<option value="16">16</option>
<option value="18">18</option>
<option value="20">20</option>
</select>
<button id="bold-btn" class="bg-gray-600 text-white px-3 py-1 rounded">B</button>
<button id="italic-btn" class="bg-gray-600 text-white px-3 py-1 rounded"><i>I</i></button>
<button id="underline-btn" class="bg-gray-600 text-white px-3 py-1 rounded"><u>U</u></button>
<input type="color" id="color-picker" class="bg-gray-600 rounded">
<button id="save-btn" class="bg-green-500 text-white px-3 py-1 rounded">Save</button>
<button id="load-btn" class="bg-blue-500 text-white px-3 py-1 rounded">Load</button>
</div>
<div class="content flex-1 p-2 bg-white">
<div id="editor" contenteditable="true" class="w-full h-full outline-none overflow-auto p-2"></div>
</div>
<div class="resize-handle"></div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="calculator-window" style="width: 300px; height: 400px; left: 150px; top: 150px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Calculator</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="content flex-1 p-2 bg-gray-800">
<div class="calculator-screen bg-gray-700 text-white text-right p-2 text-2xl mb-2" id="calc-screen">0</div>
<div class="calculator-buttons grid grid-cols-4 gap-2">
<button class="calc-btn bg-gray-600 text-white p-2 rounded">7</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">8</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">9</button>
<button class="calc-btn bg-orange-500 text-white p-2 rounded">/</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">4</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">5</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">6</button>
<button class="calc-btn bg-orange-500 text-white p-2 rounded">*</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">1</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">2</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">3</button>
<button class="calc-btn bg-orange-500 text-white p-2 rounded">-</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">0</button>
<button class="calc-btn bg-gray-600 text-white p-2 rounded">.</button>
<button class="calc-btn bg-blue-500 text-white p-2 rounded">=</button>
<button class="calc-btn bg-orange-500 text-white p-2 rounded">+</button>
<button class="calc-btn bg-red-500 text-white p-2 rounded col-span-2">C</button>
<button class="calc-btn bg-red-500 text-white p-2 rounded col-span-2">←</button>
</div>
</div>
<div class="resize-handle"></div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="paint-window" style="width: 800px; height: 600px; left: 200px; top: 100px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Paint</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="toolbar flex items-center p-2 space-x-2 bg-gray-700">
<input type="color" id="color-picker-paint" class="bg-gray-600 rounded" value="#000000">
<input type="range" id="brush-size" min="1" max="50" value="5" class="w-32">
<span id="brush-size-label" class="text-white">5px</span>
<button id="eraser-btn" class="bg-gray-600 text-white px-3 py-1 rounded">Eraser</button>
<button id="clear-btn" class="bg-red-500 text-white px-3 py-1 rounded">Clear</button>
</div>
<div class="content flex-1 p-2 bg-white">
<canvas id="paint-canvas" class="w-full h-full border border-gray-300"></canvas>
</div>
<div class="resize-handle"></div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="music-window" style="width: 400px; height: 600px; left: 250px; top: 100px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Music Player</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="content flex-1 p-4 bg-gray-800 text-white flex flex-col">
<div id="now-playing" class="text-center mb-4">
<img id="album-art" src="music.webp" alt="Album Art" class="w-48 h-48 mx-auto mb-4 rounded-lg shadow-lg">
<h2 id="track-title" class="text-xl font-bold">No Track Selected</h2>
<p id="track-artist" class="text-gray-400">Artist</p>
</div>
<div id="player-controls" class="flex justify-center items-center space-x-4 mb-4">
<button id="prev-btn" class="text-2xl">⏮️</button>
<button id="play-pause-btn" class="text-4xl">▶️</button>
<button id="next-btn" class="text-2xl">⏭️</button>
</div>
<div id="progress-bar" class="w-full bg-gray-700 rounded-full h-2 mb-4">
<div id="progress" class="bg-blue-500 h-2 rounded-full" style="width: 0%"></div>
</div>
<div class="flex justify-between items-center mb-4">
<span id="current-time">0:00</span>
<span id="total-time">0:00</span>
</div>
<div class="flex items-center space-x-2 mb-4">
<button id="shuffle-btn" class="bg-gray-700 px-3 py-1 rounded">🔀</button>
<button id="repeat-btn" class="bg-gray-700 px-3 py-1 rounded">🔁</button>
<input type="range" id="volume-slider" min="0" max="1" step="0.1" value="1" class="w-32">
<span id="volume-icon">🔊</span>
</div>
<select id="playlist" class="bg-gray-700 text-white p-2 rounded mb-4"></select>
<button id="load-music-btn" class="bg-blue-500 text-white px-4 py-2 rounded">Load Music</button>
</div>
<div class="resize-handle"></div>
</div>
<!-- Add this to your HTML, inside the <body> tag, alongside other window definitions -->
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="explorer-window" style="width: 800px; height: 600px; left: 100px; top: 50px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">File Explorer</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="toolbar flex items-center p-2 space-x-2 bg-gray-700">
<button id="back-btn" class="bg-gray-600 text-white px-3 py-1 rounded">Back</button>
<button id="forward-btn" class="bg-gray-600 text-white px-3 py-1 rounded">Forward</button>
<button id="up-btn" class="bg-gray-600 text-white px-3 py-1 rounded">Up</button>
<input id="path-input" type="text" class="flex-grow bg-gray-800 text-white px-2 py-1 rounded" readonly>
</div>
<div class="content flex-1 flex bg-white">
<div id="folder-tree" class="w-1/4 bg-gray-100 p-2 overflow-auto"></div>
<div id="file-list" class="w-3/4 p-2 overflow-auto"></div>
</div>
<div class="resize-handle"></div>
</div>
<!-- File viewer/editor modal -->
<div id="file-modal" class="fixed inset-0 bg-black bg-opacity-50 hidden justify-center items-center">
<div class="bg-white rounded-lg p-4 w-2/3 h-2/3 flex flex-col">
<div class="flex justify-between items-center mb-4">
<h2 id="file-modal-title" class="text-xl font-bold">File Viewer</h2>
<button id="close-modal-btn" class="text-gray-500 hover:text-gray-700">×</button>
</div>
<textarea id="file-content" class="flex-grow p-2 border rounded resize-none"></textarea>
<div class="mt-4 flex justify-end">
<button id="save-file-btn" class="bg-blue-500 text-white px-4 py-2 rounded">Save</button>
</div>
</div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="clock-window" style="width: 350px; height: 500px; left: 300px; top: 100px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Clock & Alarm</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="content flex-1 p-4 bg-gradient-to-br from-indigo-500 to-purple-600 text-white flex flex-col items-center justify-between">
<div class="clock-face w-64 h-64 rounded-full bg-white bg-opacity-20 flex items-center justify-center shadow-lg">
<div class="clock-inner w-56 h-56 rounded-full bg-gradient-to-r from-blue-400 to-teal-300 flex flex-col items-center justify-center">
<div id="time" class="text-5xl font-bold text-indigo-900"></div>
<div id="date" class="text-lg text-indigo-800"></div>
</div>
</div>
<div class="alarm-section w-full">
<div class="flex justify-between items-center mb-4">
<input type="time" id="alarm-time" class="bg-white bg-opacity-20 text-white px-3 py-2 rounded">
<button id="set-alarm-btn" class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded">Set Alarm</button>
</div>
<div id="alarm-display" class="text-center text-lg font-semibold"></div>
</div>
</div>
<div class="resize-handle"></div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="video-window" style="width: 800px; height: 600px; left: 50px; top: 50px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Video Player</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="content flex-1 bg-gray-900 flex flex-col">
<div class="video-container flex-1 relative">
<video id="video-player" class="w-full h-full object-contain">
Your browser does not support the video tag.
</video>
<div class="video-overlay absolute inset-0 flex items-center justify-center">
<button id="video-play-pause-btn" class="text-white text-6xl opacity-0 transition-opacity duration-300 hover:opacity-100">▶️</button>
</div>
</div>
<div class="video-controls bg-gray-800 text-white p-4 space-y-2">
<div class="flex items-center space-x-4">
<button id="video-play-pause-btn-small" class="bg-blue-500 hover:bg-blue-600 text-white px-3 py-1 rounded">Play</button>
<input type="range" id="video-seek-bar" value="0" class="w-full accent-blue-500">
</div>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<span id="video-current-time" class="text-sm">0:00</span>
<span class="text-sm">/</span>
<span id="video-duration" class="text-sm">0:00</span>
</div>
<div class="flex items-center space-x-4">
<button id="video-mute-btn" class="text-white hover:text-blue-500">🔊</button>
<input type="range" id="video-volume-bar" min="0" max="1" step="0.1" value="1" class="w-24 accent-blue-500">
<button id="video-fullscreen-btn" class="text-white hover:text-blue-500">⛶</button>
</div>
</div>
</div>
<div class="file-input-container bg-gray-800 text-white p-4 border-t border-gray-700">
<label for="video-file-input" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded cursor-pointer">
Choose Video File
</label>
<input type="file" id="video-file-input" accept="video/*" class="hidden">
<span id="file-name" class="ml-4 text-sm"></span>
</div>
</div>
<div class="resize-handle"></div>
</div>
<div class="window fixed flex flex-col hidden rounded-lg overflow-hidden" id="terminal-window" style="width: 800px; height: 600px; left: 200px; top: 100px;">
<div class="title-bar flex justify-between items-center p-2 cursor-move">
<span class="title px-2">Terminal</span>
<div class="flex space-x-2">
<button class="window-btn px-3 py-1 rounded minimize-btn">_</button>
<button class="window-btn px-3 py-1 rounded maximize-btn">□</button>
<button class="window-btn px-3 py-1 rounded close-btn">X</button>
</div>
</div>
<div class="content flex-1 p-2 bg-black text-white flex flex-col">
<div id="terminal-output" class="flex-1 overflow-y-auto p-2 font-mono text-sm"></div>
<div class="flex">
<span class="p-2">user@talkobrowser-os:~$</span>
<input id="terminal-input" type="text" class="w-full bg-black text-white p-2 outline-none" placeholder="Enter command...">
</div>
</div>
<div class="resize-handle"></div>
</div>
<div class="taskbar fixed bottom-0 w-full h-14 flex items-center px-2 space-x-2">
<button class="start-btn px-6 py-2 rounded-lg flex items-center text-xl font-bold">
Start
</button>
<div class="flex-grow flex space-x-1" id="taskbar-apps"></div>
<div class="flex items-center space-x-4">
<div class="taskbar-icon p-2 rounded cursor-pointer" id="audio-icon">🔊</div>
<div class="taskbar-icon p-2 rounded cursor-pointer" id="battery-icon">🔋</div>
<div id="time-date" class="text-xl bg-opacity-20 bg-white px-3 py-1 rounded"></div>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>