involvex commited on
Commit
b196e51
·
verified ·
1 Parent(s): 75756f6

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +335 -19
  3. prompts.txt +0 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Gamingai
3
- emoji: 🐠
4
- colorFrom: gray
5
- colorTo: green
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: gamingai
3
+ emoji: 🐳
4
+ colorFrom: red
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,335 @@
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>New World Location Guide</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
+ /* Custom CSS for smooth transitions and overlay effects */
11
+ .overlay-container {
12
+ transition: all 0.3s ease;
13
+ transform: translateY(0);
14
+ opacity: 1;
15
+ }
16
+ .overlay-container.hidden {
17
+ transform: translateY(20px);
18
+ opacity: 0;
19
+ pointer-events: none;
20
+ }
21
+ .map-marker {
22
+ position: absolute;
23
+ width: 16px;
24
+ height: 16px;
25
+ background-color: #F59E0B;
26
+ border-radius: 50%;
27
+ border: 2px solid white;
28
+ transform: translate(-50%, -50%);
29
+ cursor: pointer;
30
+ transition: all 0.2s ease;
31
+ }
32
+ .map-marker:hover {
33
+ transform: translate(-50%, -50%) scale(1.3);
34
+ z-index: 10;
35
+ }
36
+ .map-marker.active {
37
+ background-color: #EF4444;
38
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
39
+ }
40
+ .map-container {
41
+ position: relative;
42
+ background-image: url('https://via.placeholder.com/800x600/1F2937/FFFFFF?text=New+World+Map');
43
+ background-size: cover;
44
+ background-position: center;
45
+ }
46
+ .scrollable-content {
47
+ scrollbar-width: thin;
48
+ scrollbar-color: #4B5563 #1F2937;
49
+ }
50
+ .scrollable-content::-webkit-scrollbar {
51
+ width: 6px;
52
+ }
53
+ .scrollable-content::-webkit-scrollbar-track {
54
+ background: #1F2937;
55
+ }
56
+ .scrollable-content::-webkit-scrollbar-thumb {
57
+ background-color: #4B5563;
58
+ border-radius: 3px;
59
+ }
60
+ .hotkey-badge {
61
+ font-family: monospace;
62
+ }
63
+ </style>
64
+ </head>
65
+ <body class="bg-gray-900 text-gray-100 font-sans">
66
+ <!-- Main Overlay Container -->
67
+ <div id="overlay" class="overlay-container fixed bottom-4 right-4 w-96 bg-gray-800 rounded-lg shadow-xl overflow-hidden border border-gray-700">
68
+ <!-- Header with title and close button -->
69
+ <div class="flex items-center justify-between px-4 py-3 bg-gray-900 border-b border-gray-700">
70
+ <div class="flex items-center space-x-2">
71
+ <i class="fas fa-map-marked-alt text-amber-500"></i>
72
+ <h2 class="font-bold text-lg">New World Locations</h2>
73
+ </div>
74
+ <div class="flex items-center space-x-3">
75
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded hotkey-badge">ALT+Z</span>
76
+ <button id="close-btn" class="text-gray-400 hover:text-white">
77
+ <i class="fas fa-times"></i>
78
+ </button>
79
+ </div>
80
+ </div>
81
+
82
+ <!-- Search and Filter Bar -->
83
+ <div class="px-4 py-3 bg-gray-800 border-b border-gray-700">
84
+ <div class="relative">
85
+ <input type="text" placeholder="Search locations..." class="w-full bg-gray-700 text-white px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500 pl-10">
86
+ <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
87
+ </div>
88
+ <div class="flex space-x-2 mt-2">
89
+ <button class="px-3 py-1 text-xs bg-gray-700 hover:bg-gray-600 rounded-full">All</button>
90
+ <button class="px-3 py-1 text-xs bg-gray-700 hover:bg-gray-600 rounded-full">Resources</button>
91
+ <button class="px-3 py-1 text-xs bg-gray-700 hover:bg-gray-600 rounded-full">Dungeons</button>
92
+ <button class="px-3 py-1 text-xs bg-gray-700 hover:bg-gray-600 rounded-full">Settlements</button>
93
+ </div>
94
+ </div>
95
+
96
+ <!-- Main Content Area -->
97
+ <div class="flex" style="height: 500px;">
98
+ <!-- Map View -->
99
+ <div class="map-container w-1/2 h-full">
100
+ <!-- Map markers will be added here dynamically -->
101
+ <div class="map-marker" style="top: 30%; left: 25%;" data-location="everfall"></div>
102
+ <div class="map-marker" style="top: 45%; left: 60%;" data-location="windsward"></div>
103
+ <div class="map-marker" style="top: 70%; left: 40%;" data-location="brightwood"></div>
104
+ <div class="map-marker" style="top: 20%; left: 75%;" data-location="monarchs"></div>
105
+ </div>
106
+
107
+ <!-- Location Details -->
108
+ <div class="w-1/2 flex flex-col border-l border-gray-700">
109
+ <div class="p-4 border-b border-gray-700">
110
+ <h3 class="font-bold text-amber-400" id="location-name">Select a Location</h3>
111
+ <p class="text-sm text-gray-300 mt-1" id="location-description">Click on a map marker to view details</p>
112
+ </div>
113
+
114
+ <div class="flex-1 overflow-y-auto scrollable-content p-4">
115
+ <div id="location-details" class="space-y-4">
116
+ <!-- Content will be populated when a location is selected -->
117
+ <div class="text-center py-10 text-gray-500">
118
+ <i class="fas fa-map-marker-alt text-3xl mb-2"></i>
119
+ <p>Select a location from the map</p>
120
+ </div>
121
+ </div>
122
+ </div>
123
+
124
+ <!-- Quick Actions -->
125
+ <div class="p-3 bg-gray-900 border-t border-gray-700 flex justify-between">
126
+ <button class="px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded text-sm flex items-center">
127
+ <i class="fas fa-route mr-2"></i> Path
128
+ </button>
129
+ <button class="px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded text-sm flex items-center">
130
+ <i class="fas fa-bookmark mr-2"></i> Bookmark
131
+ </button>
132
+ <button class="px-3 py-1 bg-amber-600 hover:bg-amber-700 rounded text-sm flex items-center">
133
+ <i class="fas fa-share-alt mr-2"></i> Share
134
+ </button>
135
+ </div>
136
+ </div>
137
+ </div>
138
+
139
+ <!-- Footer with version info -->
140
+ <div class="px-4 py-2 text-xs text-gray-500 bg-gray-900 border-t border-gray-700 flex justify-between">
141
+ <span>v1.0.0</span>
142
+ <span>Overwolf Addon</span>
143
+ </div>
144
+ </div>
145
+
146
+ <!-- Settings Modal (hidden by default) -->
147
+ <div id="settings-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
148
+ <div class="bg-gray-800 rounded-lg w-96 p-6 border border-gray-700">
149
+ <div class="flex justify-between items-center mb-4">
150
+ <h3 class="text-lg font-bold">Settings</h3>
151
+ <button id="close-settings" class="text-gray-400 hover:text-white">
152
+ <i class="fas fa-times"></i>
153
+ </button>
154
+ </div>
155
+
156
+ <div class="space-y-4">
157
+ <div>
158
+ <label class="block text-sm font-medium mb-1">Toggle Hotkey</label>
159
+ <div class="flex items-center">
160
+ <input type="text" value="ALT+Z" class="bg-gray-700 text-white px-3 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-amber-500 w-full hotkey-badge" readonly>
161
+ <button class="ml-2 px-3 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg">
162
+ <i class="fas fa-keyboard"></i>
163
+ </button>
164
+ </div>
165
+ </div>
166
+
167
+ <div>
168
+ <label class="block text-sm font-medium mb-1">Opacity</label>
169
+ <input type="range" min="50" max="100" value="100" class="w-full h-2 bg-gray-700 rounded-lg appearance-none cursor-pointer">
170
+ </div>
171
+
172
+ <div class="flex items-center justify-between">
173
+ <span class="text-sm">Show in-game</span>
174
+ <label class="relative inline-flex items-center cursor-pointer">
175
+ <input type="checkbox" value="" class="sr-only peer" checked>
176
+ <div class="w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-amber-500"></div>
177
+ </label>
178
+ </div>
179
+ </div>
180
+
181
+ <div class="mt-6 flex justify-end space-x-3">
182
+ <button id="cancel-settings" class="px-4 py-2 bg-gray-700 hover:bg-gray-600 rounded-lg">
183
+ Cancel
184
+ </button>
185
+ <button id="save-settings" class="px-4 py-2 bg-amber-600 hover:bg-amber-700 rounded-lg">
186
+ Save Changes
187
+ </button>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <script>
193
+ // Sample location data
194
+ const locationData = {
195
+ "everfall": {
196
+ name: "Everfall",
197
+ description: "A central territory with valuable resources and dangerous enemies.",
198
+ type: "Settlement",
199
+ level: "25-35",
200
+ resources: ["Iron", "Silver", "Linen", "Timber"],
201
+ enemies: ["Lost", "Corrupted", "Angry Earth"],
202
+ notes: "Contains the Amrine Temple expedition entrance."
203
+ },
204
+ "windsward": {
205
+ name: "Windsward",
206
+ description: "A lush coastal region with abundant resources and moderate danger.",
207
+ type: "Settlement",
208
+ level: "1-25",
209
+ resources: ["Hemp", "Wood", "Stone", "Oil"],
210
+ enemies: ["Pirates", "Wolves", "Boars"],
211
+ notes: "Great starting area for new players."
212
+ },
213
+ "brightwood": {
214
+ name: "Brightwood",
215
+ description: "A haunted forest with valuable mid-game resources.",
216
+ type: "Region",
217
+ level: "30-40",
218
+ resources: ["Starmetal", "Wyrdwood", "Fiber", "Oil"],
219
+ enemies: ["Lost", "Ghosts", "Corrupted"],
220
+ notes: "Contains the Dynasty Shipyard expedition."
221
+ },
222
+ "monarchs": {
223
+ name: "Monarch's Bluffs",
224
+ description: "Cliffside territory with ocean views and early-game resources.",
225
+ type: "Settlement",
226
+ level: "1-25",
227
+ resources: ["Iron", "Stone", "Hemp", "Timber"],
228
+ enemies: ["Pirates", "Corrupted", "Boars"],
229
+ notes: "Good fishing spots along the coast."
230
+ }
231
+ };
232
+
233
+ // DOM elements
234
+ const overlay = document.getElementById('overlay');
235
+ const closeBtn = document.getElementById('close-btn');
236
+ const mapMarkers = document.querySelectorAll('.map-marker');
237
+ const locationName = document.getElementById('location-name');
238
+ const locationDescription = document.getElementById('location-description');
239
+ const locationDetails = document.getElementById('location-details');
240
+ const settingsModal = document.getElementById('settings-modal');
241
+ const closeSettings = document.getElementById('close-settings');
242
+ const cancelSettings = document.getElementById('cancel-settings');
243
+ const saveSettings = document.getElementById('save-settings');
244
+
245
+ // Toggle overlay visibility
246
+ function toggleOverlay() {
247
+ overlay.classList.toggle('hidden');
248
+ }
249
+
250
+ // Handle map marker clicks
251
+ mapMarkers.forEach(marker => {
252
+ marker.addEventListener('click', () => {
253
+ // Remove active class from all markers
254
+ mapMarkers.forEach(m => m.classList.remove('active'));
255
+
256
+ // Add active class to clicked marker
257
+ marker.classList.add('active');
258
+
259
+ // Get location data
260
+ const locationId = marker.dataset.location;
261
+ const location = locationData[locationId];
262
+
263
+ // Update location info
264
+ locationName.textContent = location.name;
265
+ locationDescription.textContent = location.description;
266
+
267
+ // Create details HTML
268
+ let detailsHTML = `
269
+ <div class="space-y-3">
270
+ <div>
271
+ <h4 class="font-medium text-amber-400">Type</h4>
272
+ <p>${location.type}</p>
273
+ </div>
274
+ <div>
275
+ <h4 class="font-medium text-amber-400">Level Range</h4>
276
+ <p>${location.level}</p>
277
+ </div>
278
+ <div>
279
+ <h4 class="font-medium text-amber-400">Resources</h4>
280
+ <div class="flex flex-wrap gap-1 mt-1">
281
+ ${location.resources.map(res => `<span class="px-2 py-1 bg-gray-700 rounded text-xs">${res}</span>`).join('')}
282
+ </div>
283
+ </div>
284
+ <div>
285
+ <h4 class="font-medium text-amber-400">Enemies</h4>
286
+ <div class="flex flex-wrap gap-1 mt-1">
287
+ ${location.enemies.map(enemy => `<span class="px-2 py-1 bg-gray-700 rounded text-xs">${enemy}</span>`).join('')}
288
+ </div>
289
+ </div>
290
+ <div>
291
+ <h4 class="font-medium text-amber-400">Notes</h4>
292
+ <p class="text-sm">${location.notes}</p>
293
+ </div>
294
+ </div>
295
+ `;
296
+
297
+ locationDetails.innerHTML = detailsHTML;
298
+ });
299
+ });
300
+
301
+ // Event listeners
302
+ closeBtn.addEventListener('click', toggleOverlay);
303
+
304
+ // For demo purposes, we'll use ALT+Z as the hotkey
305
+ document.addEventListener('keydown', (e) => {
306
+ if (e.altKey && e.key.toLowerCase() === 'z') {
307
+ toggleOverlay();
308
+ }
309
+ });
310
+
311
+ // Settings modal controls
312
+ closeBtn.addEventListener('dblclick', () => {
313
+ settingsModal.classList.remove('hidden');
314
+ });
315
+
316
+ closeSettings.addEventListener('click', () => {
317
+ settingsModal.classList.add('hidden');
318
+ });
319
+
320
+ cancelSettings.addEventListener('click', () => {
321
+ settingsModal.classList.add('hidden');
322
+ });
323
+
324
+ saveSettings.addEventListener('click', () => {
325
+ settingsModal.classList.add('hidden');
326
+ // In a real app, you would save settings here
327
+ });
328
+
329
+ // Initialize with Windsward selected
330
+ setTimeout(() => {
331
+ document.querySelector('.map-marker[data-location="windsward"]').click();
332
+ }, 100);
333
+ </script>
334
+ <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=involvex/gamingai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
335
+ </html>
prompts.txt ADDED
File without changes