junho85 commited on
Commit
4a59d71
·
verified ·
1 Parent(s): b03e925

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +283 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Junho85
3
- emoji:
4
- colorFrom: pink
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: junho85
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,283 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Windows 3.1 Recreation</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <style>
9
+ @font-face {
10
+ font-family: 'MS Sans Serif';
11
+ src: url('https://www.cufonfonts.com/download/font/ms-sans-serif-2');
12
+ }
13
+
14
+ body {
15
+ font-family: 'MS Sans Serif', sans-serif;
16
+ background-color: #008080;
17
+ user-select: none;
18
+ overflow: hidden;
19
+ }
20
+
21
+ .window {
22
+ box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #ffffff;
23
+ }
24
+
25
+ .title-bar {
26
+ background: linear-gradient(90deg, #000080, #1084d0);
27
+ color: white;
28
+ }
29
+
30
+ .button {
31
+ box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #ffffff;
32
+ }
33
+
34
+ .button:active {
35
+ box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
36
+ }
37
+
38
+ .icon {
39
+ text-shadow: 1px 1px 0px white;
40
+ }
41
+
42
+ .taskbar {
43
+ box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
44
+ }
45
+
46
+ .start-button {
47
+ box-shadow: inset -1px -1px #ffffff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
48
+ }
49
+
50
+ .start-button:active {
51
+ box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #ffffff;
52
+ }
53
+
54
+ .menu {
55
+ box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px #808080, inset 2px 2px #ffffff;
56
+ }
57
+
58
+ .menu-item:hover {
59
+ background-color: #000080;
60
+ color: white;
61
+ }
62
+
63
+ .draggable {
64
+ cursor: move;
65
+ }
66
+
67
+ .resizable {
68
+ resize: both;
69
+ overflow: hidden;
70
+ }
71
+ </style>
72
+ </head>
73
+ <body class="h-screen w-screen overflow-hidden">
74
+ <!-- Desktop Icons -->
75
+ <div class="absolute left-0 top-0 p-2 flex flex-col space-y-4">
76
+ <div class="icon w-16 flex flex-col items-center text-center cursor-pointer" onclick="openProgram('my-computer')">
77
+ <img src="https://win98icons.alexmeub.com/icons/png/computer_explorer-4.png" width="32" height="32">
78
+ <span class="text-xs mt-1">My Computer</span>
79
+ </div>
80
+ <div class="icon w-16 flex flex-col items-center text-center cursor-pointer" onclick="openProgram('recycle-bin')">
81
+ <img src="https://win98icons.alexmeub.com/icons/png/recycle_bin_empty-4.png" width="32" height="32">
82
+ <span class="text-xs mt-1">Recycle Bin</span>
83
+ </div>
84
+ <div class="icon w-16 flex flex-col items-center text-center cursor-pointer" onclick="openProgram('notepad')">
85
+ <img src="https://win98icons.alexmeub.com/icons/png/notepad-4.png" width="32" height="32">
86
+ <span class="text-xs mt-1">Notepad</span>
87
+ </div>
88
+ </div>
89
+
90
+ <!-- Windows -->
91
+ <div id="my-computer-window" class="window absolute left-20 top-20 w-64 h-64 bg-gray-200 flex flex-col hidden">
92
+ <div class="title-bar h-6 flex items-center justify-between px-1 draggable">
93
+ <div class="flex items-center">
94
+ <img src="https://win98icons.alexmeub.com/icons/png/computer_explorer-0.png" width="16" height="16" class="mr-1">
95
+ <span class="text-sm">My Computer</span>
96
+ </div>
97
+ <div class="flex">
98
+ <div class="button w-4 h-4 flex items-center justify-center mx-px">_</div>
99
+ <div class="button w-4 h-4 flex items-center justify-center mx-px">□</div>
100
+ <div class="button w-4 h-4 flex items-center justify-center mx-px" onclick="closeWindow('my-computer')">×</div>
101
+ </div>
102
+ </div>
103
+ <div class="flex-1 p-2 overflow-auto resizable">
104
+ <div class="grid grid-cols-3 gap-4">
105
+ <div class="icon w-16 flex flex-col items-center text-center cursor-pointer">
106
+ <img src="https://win98icons.alexmeub.com/icons/png/drive-4.png" width="32" height="32">
107
+ <span class="text-xs mt-1">Drive C:</span>
108
+ </div>
109
+ <div class="icon w-16 flex flex-col items-center text-center cursor-pointer">
110
+ <img src="https://win98icons.alexmeub.com/icons/png/drive-4.png" width="32" height="32">
111
+ <span class="text-xs mt-1">Drive A:</span>
112
+ </div>
113
+ <div class="icon w-16 flex flex-col items-center text-center cursor-pointer">
114
+ <img src="https://win98icons.alexmeub.com/icons/png/control_panel_users-4.png" width="32" height="32">
115
+ <span class="text-xs mt-1">Control Panel</span>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ <div class="h-6 bg-gray-300 flex items-center px-2 text-xs">
120
+ <span>2 object(s)</span>
121
+ </div>
122
+ </div>
123
+
124
+ <div id="notepad-window" class="window absolute left-40 top-40 w-80 h-64 bg-white flex flex-col hidden">
125
+ <div class="title-bar h-6 flex items-center justify-between px-1 draggable">
126
+ <div class="flex items-center">
127
+ <img src="https://win98icons.alexmeub.com/icons/png/notepad-0.png" width="16" height="16" class="mr-1">
128
+ <span class="text-sm">Untitled - Notepad</span>
129
+ </div>
130
+ <div class="flex">
131
+ <div class="button w-4 h-4 flex items-center justify-center mx-px">_</div>
132
+ <div class="button w-4 h-4 flex items-center justify-center mx-px">□</div>
133
+ <div class="button w-4 h-4 flex items-center justify-center mx-px" onclick="closeWindow('notepad')">×</div>
134
+ </div>
135
+ </div>
136
+ <div class="flex-1 p-1 overflow-auto resizable">
137
+ <textarea class="w-full h-full p-1 font-mono text-sm resize-none" style="background-color: white;">Welcome to Windows 3.1!
138
+
139
+ This is a recreation of the classic operating system in your browser.
140
+
141
+ You can:
142
+ - Open programs from the desktop
143
+ - Use the Start menu
144
+ - Move windows around
145
+ - Resize windows
146
+ - Close windows
147
+
148
+ Have fun!</textarea>
149
+ </div>
150
+ </div>
151
+
152
+ <!-- Taskbar -->
153
+ <div class="taskbar absolute bottom-0 left-0 right-0 h-8 bg-gray-300 flex items-center px-1">
154
+ <button id="start-button" class="start-button h-6 px-2 flex items-center" onclick="toggleStartMenu()">
155
+ <img src="https://win98icons.alexmeub.com/icons/png/windows-0.png" width="16" height="16" class="mr-1">
156
+ <span class="text-sm font-bold">Start</span>
157
+ </button>
158
+ <div id="start-menu" class="menu absolute bottom-8 left-0 w-48 bg-gray-300 hidden">
159
+ <div class="menu-item p-1 flex items-center cursor-pointer">
160
+ <img src="https://win98icons.alexmeub.com/icons/png/programs-0.png" width="16" height="16" class="mr-2">
161
+ <span class="text-sm">Programs</span>
162
+ </div>
163
+ <div class="menu-item p-1 flex items-center cursor-pointer">
164
+ <img src="https://win98icons.alexmeub.com/icons/png/documents-0.png" width="16" height="16" class="mr-2">
165
+ <span class="text-sm">Documents</span>
166
+ </div>
167
+ <div class="menu-item p-1 flex items-center cursor-pointer">
168
+ <img src="https://win98icons.alexmeub.com/icons/png/settings-0.png" width="16" height="16" class="mr-2">
169
+ <span class="text-sm">Settings</span>
170
+ </div>
171
+ <div class="menu-item p-1 flex items-center cursor-pointer">
172
+ <img src="https://win98icons.alexmeub.com/icons/png/find-0.png" width="16" height="16" class="mr-2">
173
+ <span class="text-sm">Find</span>
174
+ </div>
175
+ <div class="menu-item p-1 flex items-center cursor-pointer">
176
+ <img src="https://win98icons.alexmeub.com/icons/png/help_book-0.png" width="16" height="16" class="mr-2">
177
+ <span class="text-sm">Help</span>
178
+ </div>
179
+ <div class="menu-item p-1 flex items-center cursor-pointer">
180
+ <img src="https://win98icons.alexmeub.com/icons/png/run-0.png" width="16" height="16" class="mr-2">
181
+ <span class="text-sm">Run...</span>
182
+ </div>
183
+ <div class="menu-item p-1 flex items-center cursor-pointer" onclick="shutdown()">
184
+ <img src="https://win98icons.alexmeub.com/icons/png/shut_down_normal-0.png" width="16" height="16" class="mr-2">
185
+ <span class="text-sm">Shut Down...</span>
186
+ </div>
187
+ </div>
188
+ <div class="flex-1"></div>
189
+ <div class="h-6 px-2 flex items-center text-xs">
190
+ <span>4:20 PM</span>
191
+ </div>
192
+ </div>
193
+
194
+ <!-- Shutdown Dialog -->
195
+ <div id="shutdown-dialog" class="window absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-64 bg-gray-200 flex flex-col hidden">
196
+ <div class="title-bar h-6 flex items-center justify-between px-1">
197
+ <div class="flex items-center">
198
+ <img src="https://win98icons.alexmeub.com/icons/png/shut_down_normal-0.png" width="16" height="16" class="mr-1">
199
+ <span class="text-sm">Shut Down Windows</span>
200
+ </div>
201
+ <div class="flex">
202
+ <div class="button w-4 h-4 flex items-center justify-center mx-px" onclick="closeWindow('shutdown')">×</div>
203
+ </div>
204
+ </div>
205
+ <div class="p-4">
206
+ <p class="text-sm mb-4">Are you sure you want to shut down your computer?</p>
207
+ <div class="flex justify-end space-x-2">
208
+ <button class="button px-4 py-1 text-sm" onclick="closeWindow('shutdown')">Cancel</button>
209
+ <button class="button px-4 py-1 text-sm bg-gray-300" onclick="alert('Goodbye! This is just a simulation.'); closeWindow('shutdown')">OK</button>
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <script>
215
+ // Make windows draggable
216
+ document.querySelectorAll('.draggable').forEach(draggable => {
217
+ draggable.addEventListener('mousedown', function(e) {
218
+ const window = this.closest('.window');
219
+ let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
220
+
221
+ e = e || window.event;
222
+ e.preventDefault();
223
+ // get the mouse cursor position at startup:
224
+ pos3 = e.clientX;
225
+ pos4 = e.clientY;
226
+
227
+ document.onmouseup = closeDragElement;
228
+ document.onmousemove = elementDrag;
229
+
230
+ function elementDrag(e) {
231
+ e = e || window.event;
232
+ e.preventDefault();
233
+ // calculate the new cursor position:
234
+ pos1 = pos3 - e.clientX;
235
+ pos2 = pos4 - e.clientY;
236
+ pos3 = e.clientX;
237
+ pos4 = e.clientY;
238
+ // set the element's new position:
239
+ window.style.top = (window.offsetTop - pos2) + "px";
240
+ window.style.left = (window.offsetLeft - pos1) + "px";
241
+ }
242
+
243
+ function closeDragElement() {
244
+ // stop moving when mouse button is released:
245
+ document.onmouseup = null;
246
+ document.onmousemove = null;
247
+ }
248
+ });
249
+ });
250
+
251
+ // Window management
252
+ function openProgram(program) {
253
+ document.getElementById(`${program}-window`).classList.remove('hidden');
254
+ }
255
+
256
+ function closeWindow(program) {
257
+ document.getElementById(`${program}-window`).classList.add('hidden');
258
+ }
259
+
260
+ function toggleStartMenu() {
261
+ const menu = document.getElementById('start-menu');
262
+ menu.classList.toggle('hidden');
263
+ }
264
+
265
+ function shutdown() {
266
+ document.getElementById('start-menu').classList.add('hidden');
267
+ document.getElementById('shutdown-dialog').classList.remove('hidden');
268
+ }
269
+
270
+ // Close start menu when clicking elsewhere
271
+ document.addEventListener('click', function(e) {
272
+ if (!e.target.closest('#start-button') && !e.target.closest('#start-menu')) {
273
+ document.getElementById('start-menu').classList.add('hidden');
274
+ }
275
+ });
276
+
277
+ // Simulate loading
278
+ setTimeout(() => {
279
+ document.getElementById('my-computer-window').classList.remove('hidden');
280
+ }, 1000);
281
+ </script>
282
+ <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=junho85/junho85" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body>
283
+ </html>