yhzion commited on
Commit
8e84f86
·
verified ·
1 Parent(s): 44988b9

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +328 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Macos
3
- emoji: 📊
4
- colorFrom: yellow
5
- colorTo: indigo
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: macos
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: gray
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,328 @@
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>macOS Desktop</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ @keyframes fadeIn {
11
+ from { opacity: 0; }
12
+ to { opacity: 1; }
13
+ }
14
+
15
+ .desktop-icon {
16
+ transition: all 0.2s ease;
17
+ }
18
+
19
+ .desktop-icon:hover {
20
+ background-color: rgba(255, 255, 255, 0.2);
21
+ border-radius: 8px;
22
+ }
23
+
24
+ .dock-item {
25
+ transition: all 0.2s ease;
26
+ }
27
+
28
+ .dock-item:hover {
29
+ transform: scale(1.2);
30
+ margin: 0 15px;
31
+ }
32
+
33
+ .menu-bar {
34
+ backdrop-filter: blur(10px);
35
+ -webkit-backdrop-filter: blur(10px);
36
+ }
37
+
38
+ .window {
39
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
40
+ border-radius: 10px;
41
+ overflow: hidden;
42
+ }
43
+
44
+ .window-header {
45
+ cursor: move;
46
+ }
47
+
48
+ .traffic-light {
49
+ width: 12px;
50
+ height: 12px;
51
+ border-radius: 50%;
52
+ margin-right: 8px;
53
+ }
54
+
55
+ .folder-icon {
56
+ background: linear-gradient(135deg, #4A90E2 0%, #3B7FD9 100%);
57
+ }
58
+
59
+ .wallpaper {
60
+ background-image: url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
61
+ background-size: cover;
62
+ background-position: center;
63
+ }
64
+ </style>
65
+ </head>
66
+ <body class="wallpaper h-screen w-screen overflow-hidden select-none">
67
+ <!-- Menu Bar -->
68
+ <div class="menu-bar fixed top-0 left-0 right-0 h-8 bg-gray-800 bg-opacity-30 text-white text-sm flex items-center px-4 z-50">
69
+ <div class="flex items-center space-x-4">
70
+ <div class="font-semibold">Finder</div>
71
+ <div>File</div>
72
+ <div>Edit</div>
73
+ <div>View</div>
74
+ <div>Go</div>
75
+ <div>Window</div>
76
+ <div>Help</div>
77
+ </div>
78
+ <div class="ml-auto flex items-center space-x-4">
79
+ <div id="time" class="text-xs">10:15 AM</div>
80
+ <div id="date" class="text-xs">Mon, Jun 12</div>
81
+ <div class="w-4 h-4">
82
+ <i class="fas fa-wifi"></i>
83
+ </div>
84
+ <div class="w-4 h-4">
85
+ <i class="fas fa-battery-three-quarters"></i>
86
+ </div>
87
+ </div>
88
+ </div>
89
+
90
+ <!-- Desktop Icons -->
91
+ <div class="pt-10 pl-6 grid grid-cols-1 gap-6 w-32">
92
+ <div class="desktop-icon flex flex-col items-center text-white text-center p-2 cursor-pointer">
93
+ <div class="folder-icon w-16 h-16 rounded-2xl flex items-center justify-center mb-1">
94
+ <i class="fas fa-folder text-white text-3xl"></i>
95
+ </div>
96
+ <span class="text-xs mt-1 text-shadow">Documents</span>
97
+ </div>
98
+
99
+ <div class="desktop-icon flex flex-col items-center text-white text-center p-2 cursor-pointer">
100
+ <div class="folder-icon w-16 h-16 rounded-2xl flex items-center justify-center mb-1">
101
+ <i class="fas fa-desktop text-white text-3xl"></i>
102
+ </div>
103
+ <span class="text-xs mt-1 text-shadow">Applications</span>
104
+ </div>
105
+
106
+ <div class="desktop-icon flex flex-col items-center text-white text-center p-2 cursor-pointer">
107
+ <div class="folder-icon w-16 h-16 rounded-2xl flex items-center justify-center mb-1">
108
+ <i class="fas fa-download text-white text-3xl"></i>
109
+ </div>
110
+ <span class="text-xs mt-1 text-shadow">Downloads</span>
111
+ </div>
112
+
113
+ <div class="desktop-icon flex flex-col items-center text-white text-center p-2 cursor-pointer">
114
+ <div class="w-16 h-16 rounded-2xl flex items-center justify-center mb-1 bg-gradient-to-br from-purple-500 to-pink-500">
115
+ <i class="fas fa-music text-white text-3xl"></i>
116
+ </div>
117
+ <span class="text-xs mt-1 text-shadow">Music</span>
118
+ </div>
119
+ </div>
120
+
121
+ <!-- Finder Window -->
122
+ <div id="finder-window" class="window fixed top-16 left-16 w-3/4 h-3/4 bg-gray-100 bg-opacity-80 backdrop-filter backdrop-blur-lg" style="display: none;">
123
+ <div class="window-header bg-gray-200 bg-opacity-70 h-8 flex items-center px-3">
124
+ <div class="flex">
125
+ <div class="traffic-light bg-red-500"></div>
126
+ <div class="traffic-light bg-yellow-500"></div>
127
+ <div class="traffic-light bg-green-500"></div>
128
+ </div>
129
+ <div class="ml-2 text-sm text-gray-700">Finder</div>
130
+ </div>
131
+ <div class="flex h-full">
132
+ <div class="w-48 bg-gray-100 bg-opacity-70 border-r border-gray-300 p-2">
133
+ <div class="p-2 text-sm font-medium text-gray-700">Favorites</div>
134
+ <div class="p-2 text-sm text-gray-700 hover:bg-gray-200 rounded cursor-pointer flex items-center">
135
+ <i class="fas fa-desktop mr-2 text-gray-500"></i> Desktop
136
+ </div>
137
+ <div class="p-2 text-sm text-gray-700 hover:bg-gray-200 rounded cursor-pointer flex items-center">
138
+ <i class="fas fa-download mr-2 text-gray-500"></i> Downloads
139
+ </div>
140
+ <div class="p-2 text-sm text-gray-700 hover:bg-gray-200 rounded cursor-pointer flex items-center">
141
+ <i class="fas fa-folder mr-2 text-gray-500"></i> Documents
142
+ </div>
143
+ <div class="p-2 text-sm text-gray-700 hover:bg-gray-200 rounded cursor-pointer flex items-center">
144
+ <i class="fas fa-music mr-2 text-gray-500"></i> Music
145
+ </div>
146
+ </div>
147
+ <div class="flex-1 p-4 overflow-auto">
148
+ <div class="grid grid-cols-5 gap-4">
149
+ <!-- Folder items would go here -->
150
+ </div>
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ <!-- Dock -->
156
+ <div class="dock fixed bottom-4 left-1/2 transform -translate-x-1/2 bg-gray-800 bg-opacity-30 backdrop-filter backdrop-blur-lg rounded-2xl px-4 py-2 flex items-end">
157
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer" onclick="openFinder()">
158
+ <div class="w-12 h-12 bg-blue-500 rounded-xl flex items-center justify-center">
159
+ <i class="fas fa-face-smile text-white text-2xl"></i>
160
+ </div>
161
+ </div>
162
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
163
+ <div class="w-12 h-12 bg-blue-400 rounded-xl flex items-center justify-center">
164
+ <i class="fas fa-safari text-white text-2xl"></i>
165
+ </div>
166
+ </div>
167
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
168
+ <div class="w-12 h-12 bg-green-500 rounded-xl flex items-center justify-center">
169
+ <i class="fas fa-messages text-white text-2xl"></i>
170
+ </div>
171
+ </div>
172
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
173
+ <div class="w-12 h-12 bg-purple-500 rounded-xl flex items-center justify-center">
174
+ <i class="fas fa-music text-white text-2xl"></i>
175
+ </div>
176
+ </div>
177
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
178
+ <div class="w-12 h-12 bg-red-500 rounded-xl flex items-center justify-center">
179
+ <i class="fas fa-photo-film text-white text-2xl"></i>
180
+ </div>
181
+ </div>
182
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
183
+ <div class="w-12 h-12 bg-yellow-500 rounded-xl flex items-center justify-center">
184
+ <i class="fas fa-envelope text-white text-2xl"></i>
185
+ </div>
186
+ </div>
187
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
188
+ <div class="w-12 h-12 bg-gray-600 rounded-xl flex items-center justify-center">
189
+ <i class="fas fa-terminal text-white text-2xl"></i>
190
+ </div>
191
+ </div>
192
+ <div class="dock-separator h-12 w-px bg-gray-500 mx-2"></div>
193
+ <div class="dock-item flex flex-col items-center mx-2 cursor-pointer">
194
+ <div class="w-12 h-12 bg-gray-700 rounded-xl flex items-center justify-center">
195
+ <i class="fas fa-trash text-white text-2xl"></i>
196
+ </div>
197
+ </div>
198
+ </div>
199
+
200
+ <!-- Launchpad (hidden by default) -->
201
+ <div id="launchpad" class="fixed inset-0 bg-black bg-opacity-90 z-50 flex flex-col items-center justify-center" style="display: none;">
202
+ <div class="grid grid-cols-7 gap-8 p-8 max-w-4xl">
203
+ <!-- App icons -->
204
+ <div class="w-16 h-16 bg-blue-500 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
205
+ <i class="fas fa-safari text-white text-2xl"></i>
206
+ </div>
207
+ <div class="w-16 h-16 bg-green-500 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
208
+ <i class="fas fa-messages text-white text-2xl"></i>
209
+ </div>
210
+ <div class="w-16 h-16 bg-purple-500 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
211
+ <i class="fas fa-music text-white text-2xl"></i>
212
+ </div>
213
+ <div class="w-16 h-16 bg-red-500 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
214
+ <i class="fas fa-photo-film text-white text-2xl"></i>
215
+ </div>
216
+ <div class="w-16 h-16 bg-yellow-500 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
217
+ <i class="fas fa-envelope text-white text-2xl"></i>
218
+ </div>
219
+ <div class="w-16 h-16 bg-gray-600 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
220
+ <i class="fas fa-terminal text-white text-2xl"></i>
221
+ </div>
222
+ <div class="w-16 h-16 bg-indigo-500 rounded-2xl flex items-center justify-center cursor-pointer transform hover:scale-110 transition">
223
+ <i class="fas fa-calendar text-white text-2xl"></i>
224
+ </div>
225
+ <!-- More apps... -->
226
+ </div>
227
+ <div class="text-white text-sm mt-8">
228
+ Press Esc to exit
229
+ </div>
230
+ </div>
231
+
232
+ <script>
233
+ // Update time and date
234
+ function updateTime() {
235
+ const now = new Date();
236
+ const timeElement = document.getElementById('time');
237
+ const dateElement = document.getElementById('date');
238
+
239
+ // Format time (e.g., 10:15 AM)
240
+ let hours = now.getHours();
241
+ const ampm = hours >= 12 ? 'PM' : 'AM';
242
+ hours = hours % 12;
243
+ hours = hours ? hours : 12; // the hour '0' should be '12'
244
+ const minutes = now.getMinutes().toString().padStart(2, '0');
245
+ timeElement.textContent = `${hours}:${minutes} ${ampm}`;
246
+
247
+ // Format date (e.g., Mon, Jun 12)
248
+ const options = { weekday: 'short', month: 'short', day: 'numeric' };
249
+ dateElement.textContent = now.toLocaleDateString('en-US', options);
250
+ }
251
+
252
+ // Update time immediately and then every minute
253
+ updateTime();
254
+ setInterval(updateTime, 60000);
255
+
256
+ // Open Finder window
257
+ function openFinder() {
258
+ document.getElementById('finder-window').style.display = 'block';
259
+ }
260
+
261
+ // Close Finder window
262
+ function closeFinder() {
263
+ document.getElementById('finder-window').style.display = 'none';
264
+ }
265
+
266
+ // Toggle Launchpad
267
+ document.addEventListener('keydown', function(e) {
268
+ if (e.key === 'Escape') {
269
+ document.getElementById('launchpad').style.display = 'none';
270
+ }
271
+ });
272
+
273
+ // Make windows draggable
274
+ function makeDraggable(element) {
275
+ let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
276
+ const header = element.querySelector('.window-header');
277
+
278
+ header.onmousedown = dragMouseDown;
279
+
280
+ function dragMouseDown(e) {
281
+ e = e || window.event;
282
+ e.preventDefault();
283
+ // get the mouse cursor position at startup:
284
+ pos3 = e.clientX;
285
+ pos4 = e.clientY;
286
+ document.onmouseup = closeDragElement;
287
+ // call a function whenever the cursor moves:
288
+ document.onmousemove = elementDrag;
289
+ }
290
+
291
+ function elementDrag(e) {
292
+ e = e || window.event;
293
+ e.preventDefault();
294
+ // calculate the new cursor position:
295
+ pos1 = pos3 - e.clientX;
296
+ pos2 = pos4 - e.clientY;
297
+ pos3 = e.clientX;
298
+ pos4 = e.clientY;
299
+ // set the element's new position:
300
+ element.style.top = (element.offsetTop - pos2) + "px";
301
+ element.style.left = (element.offsetLeft - pos1) + "px";
302
+ }
303
+
304
+ function closeDragElement() {
305
+ // stop moving when mouse button is released:
306
+ document.onmouseup = null;
307
+ document.onmousemove = null;
308
+ }
309
+ }
310
+
311
+ // Initialize draggable windows
312
+ document.addEventListener('DOMContentLoaded', function() {
313
+ const windows = document.querySelectorAll('.window');
314
+ windows.forEach(window => {
315
+ makeDraggable(window);
316
+ });
317
+ });
318
+
319
+ // Simulate boot sequence
320
+ setTimeout(() => {
321
+ document.body.style.animation = 'fadeIn 1.5s ease-in-out';
322
+ setTimeout(() => {
323
+ document.getElementById('finder-window').style.display = 'block';
324
+ }, 1000);
325
+ }, 500);
326
+ </script>
327
+ <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=yhzion/macos" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
328
+ </html>
prompts.txt ADDED
File without changes