87geier commited on
Commit
cbdc677
·
verified ·
1 Parent(s): 5990fe4

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +394 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Ue5
3
- emoji: 🦀
4
- colorFrom: purple
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: ue5
3
+ emoji: 🐳
4
+ colorFrom: blue
5
+ colorTo: purple
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,394 @@
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>Unreal AI Assistant - Map Creation Tool</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
+ .gradient-bg {
11
+ background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
12
+ }
13
+ .sidebar-item:hover .sidebar-icon {
14
+ transform: scale(1.1);
15
+ color: #38b2ac;
16
+ }
17
+ .chat-message-ai {
18
+ background-color: #2d3748;
19
+ border-radius: 18px 18px 18px 4px;
20
+ }
21
+ .chat-message-user {
22
+ background-color: #4299e1;
23
+ border-radius: 18px 18px 4px 18px;
24
+ }
25
+ .asset-card:hover {
26
+ transform: translateY(-5px);
27
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
28
+ }
29
+ .progress-ring__circle {
30
+ transition: stroke-dashoffset 0.35s;
31
+ transform: rotate(-90deg);
32
+ transform-origin: 50% 50%;
33
+ }
34
+ @keyframes pulse {
35
+ 0%, 100% { opacity: 1; }
36
+ 50% { opacity: 0.5; }
37
+ }
38
+ .animate-pulse-slow {
39
+ animation: pulse 3s infinite;
40
+ }
41
+ </style>
42
+ </head>
43
+ <body class="gradient-bg text-gray-100 min-h-screen flex">
44
+ <!-- Sidebar -->
45
+ <div class="w-20 bg-gray-900 flex flex-col items-center py-6 space-y-8">
46
+ <div class="text-teal-400 text-2xl font-bold">
47
+ <i class="fas fa-robot"></i>
48
+ </div>
49
+
50
+ <div class="flex flex-col items-center space-y-8">
51
+ <div class="sidebar-item group cursor-pointer">
52
+ <div class="sidebar-icon text-gray-400 group-hover:text-teal-400 transition-all duration-200">
53
+ <i class="fas fa-map-marked-alt text-2xl"></i>
54
+ </div>
55
+ <div class="text-xs mt-1 text-gray-400 group-hover:text-teal-400">Map Builder</div>
56
+ </div>
57
+
58
+ <div class="sidebar-item group cursor-pointer">
59
+ <div class="sidebar-icon text-gray-400 group-hover:text-teal-400 transition-all duration-200">
60
+ <i class="fas fa-project-diagram text-2xl"></i>
61
+ </div>
62
+ <div class="text-xs mt-1 text-gray-400 group-hover:text-teal-400">Blueprints</div>
63
+ </div>
64
+
65
+ <div class="sidebar-item group cursor-pointer">
66
+ <div class="sidebar-icon text-gray-400 group-hover:text-teal-400 transition-all duration-200">
67
+ <i class="fas fa-mountain text-2xl"></i>
68
+ </div>
69
+ <div class="text-xs mt-1 text-gray-400 group-hover:text-teal-400">Landscape</div>
70
+ </div>
71
+
72
+ <div class="sidebar-item group cursor-pointer">
73
+ <div class="sidebar-icon text-gray-400 group-hover:text-teal-400 transition-all duration-200">
74
+ <i class="fas fa-city text-2xl"></i>
75
+ </div>
76
+ <div class="text-xs mt-1 text-gray-400 group-hover:text-teal-400">City Builder</div>
77
+ </div>
78
+
79
+ <div class="sidebar-item group cursor-pointer">
80
+ <div class="sidebar-icon text-gray-400 group-hover:text-teal-400 transition-all duration-200">
81
+ <i class="fas fa-cog text-2xl"></i>
82
+ </div>
83
+ <div class="text-xs mt-1 text-gray-400 group-hover:text-teal-400">Settings</div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+
88
+ <!-- Main Content -->
89
+ <div class="flex-1 flex flex-col">
90
+ <!-- Top Bar -->
91
+ <div class="bg-gray-800 p-4 flex justify-between items-center border-b border-gray-700">
92
+ <div class="flex items-center space-x-4">
93
+ <h1 class="text-xl font-bold text-teal-400">Unreal AI Assistant</h1>
94
+ <div class="flex items-center space-x-2 bg-gray-700 px-3 py-1 rounded-full">
95
+ <div class="w-2 h-2 bg-green-500 rounded-full"></div>
96
+ <span class="text-xs">Connected to UE5</span>
97
+ </div>
98
+ </div>
99
+ <div class="flex items-center space-x-4">
100
+ <button class="bg-teal-600 hover:bg-teal-700 px-4 py-2 rounded-lg text-sm font-medium transition-all">
101
+ <i class="fas fa-play mr-2"></i>Test in Editor
102
+ </button>
103
+ <div class="relative">
104
+ <img src="https://randomuser.me/api/portraits/men/32.jpg" class="w-8 h-8 rounded-full cursor-pointer">
105
+ </div>
106
+ </div>
107
+ </div>
108
+
109
+ <!-- Content Area -->
110
+ <div class="flex-1 flex overflow-hidden">
111
+ <!-- Left Panel - AI Chat -->
112
+ <div class="w-1/3 bg-gray-800 border-r border-gray-700 flex flex-col">
113
+ <div class="p-4 border-b border-gray-700">
114
+ <h2 class="font-semibold text-lg">AI Assistant</h2>
115
+ <p class="text-sm text-gray-400">Describe what you want to build and the AI will help</p>
116
+ </div>
117
+
118
+ <div class="flex-1 overflow-y-auto p-4 space-y-4" id="chat-container">
119
+ <div class="flex items-start space-x-2">
120
+ <div class="bg-teal-500 p-2 rounded-full">
121
+ <i class="fas fa-robot text-white"></i>
122
+ </div>
123
+ <div class="chat-message-ai p-3 max-w-xs">
124
+ <p>Hello! I'm your Unreal Engine AI assistant. How can I help you with your project today?</p>
125
+ </div>
126
+ </div>
127
+
128
+ <div class="flex items-start space-x-2 justify-end">
129
+ <div class="chat-message-user p-3 max-w-xs">
130
+ <p>I need a Fortnite-style map with a medieval castle in the center and some surrounding villages.</p>
131
+ </div>
132
+ <div class="bg-blue-500 p-2 rounded-full">
133
+ <i class="fas fa-user text-white"></i>
134
+ </div>
135
+ </div>
136
+
137
+ <div class="flex items-start space-x-2">
138
+ <div class="bg-teal-500 p-2 rounded-full">
139
+ <i class="fas fa-robot text-white"></i>
140
+ </div>
141
+ <div class="chat-message-ai p-3 max-w-xs">
142
+ <p>Great! I'll create a landscape with these features:
143
+ <ul class="list-disc pl-5 mt-2 space-y-1">
144
+ <li>Central castle with towers</li>
145
+ <li>3 surrounding villages</li>
146
+ <li>Forest areas for cover</li>
147
+ <li>River running through map</li>
148
+ </ul>
149
+ Should I proceed?
150
+ </p>
151
+ </div>
152
+ </div>
153
+ </div>
154
+
155
+ <div class="p-4 border-t border-gray-700">
156
+ <div class="relative">
157
+ <input type="text" placeholder="Describe what you want to build..."
158
+ class="w-full bg-gray-700 rounded-lg py-3 pl-4 pr-12 focus:outline-none focus:ring-2 focus:ring-teal-500">
159
+ <button class="absolute right-3 top-3 text-gray-400 hover:text-teal-400">
160
+ <i class="fas fa-paper-plane"></i>
161
+ </button>
162
+ </div>
163
+ <div class="flex justify-between mt-2 text-xs text-gray-500">
164
+ <span>AI understands: Map Building, Blueprints, Landscape, Materials</span>
165
+ <button class="text-teal-400 hover:underline">Examples</button>
166
+ </div>
167
+ </div>
168
+ </div>
169
+
170
+ <!-- Center Panel - 3D Preview -->
171
+ <div class="flex-1 bg-gray-900 flex flex-col">
172
+ <div class="p-4 border-b border-gray-700 flex justify-between items-center">
173
+ <h2 class="font-semibold">Map Preview</h2>
174
+ <div class="flex space-x-2">
175
+ <button class="bg-gray-700 hover:bg-gray-600 p-2 rounded-lg">
176
+ <i class="fas fa-expand"></i>
177
+ </button>
178
+ <button class="bg-gray-700 hover:bg-gray-600 p-2 rounded-lg">
179
+ <i class="fas fa-camera"></i>
180
+ </button>
181
+ </div>
182
+ </div>
183
+
184
+ <div class="flex-1 flex items-center justify-center relative">
185
+ <!-- This would be the embedded UE5 viewport in the real plugin -->
186
+ <div class="w-full h-full bg-gray-800 flex items-center justify-center">
187
+ <div class="text-center">
188
+ <div class="text-6xl mb-4 text-gray-600">
189
+ <i class="fas fa-globe-europe"></i>
190
+ </div>
191
+ <p class="text-gray-500">3D Viewport will appear here</p>
192
+ <p class="text-xs text-gray-600 mt-2">Connected to Unreal Engine 5.2</p>
193
+ </div>
194
+ </div>
195
+
196
+ <!-- Progress overlay -->
197
+ <div class="absolute inset-0 bg-black bg-opacity-70 flex items-center justify-center hidden" id="progress-overlay">
198
+ <div class="text-center">
199
+ <div class="relative w-20 h-20 mx-auto mb-4">
200
+ <svg class="w-full h-full" viewBox="0 0 100 100">
201
+ <circle class="text-gray-700" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
202
+ <circle class="text-teal-500 progress-ring__circle" stroke-width="8" stroke-linecap="round" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50" stroke-dasharray="251.2" stroke-dashoffset="125.6"/>
203
+ </svg>
204
+ <div class="absolute inset-0 flex items-center justify-center">
205
+ <span class="text-white font-bold text-xl">75%</span>
206
+ </div>
207
+ </div>
208
+ <p class="text-white font-medium">Generating Landscape</p>
209
+ <p class="text-gray-400 text-sm mt-1">Creating terrain with erosion patterns...</p>
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <div class="p-4 border-t border-gray-700">
215
+ <div class="flex justify-between items-center">
216
+ <div>
217
+ <h3 class="font-medium">Current Task</h3>
218
+ <p class="text-sm text-gray-400">Building castle foundation</p>
219
+ </div>
220
+ <div class="flex space-x-2">
221
+ <button class="bg-teal-600 hover:bg-teal-700 px-3 py-1 rounded text-sm">
222
+ <i class="fas fa-check mr-1"></i> Approve
223
+ </button>
224
+ <button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm">
225
+ <i class="fas fa-redo mr-1"></i> Regenerate
226
+ </button>
227
+ <button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm">
228
+ <i class="fas fa-pause mr-1"></i> Pause
229
+ </button>
230
+ </div>
231
+ </div>
232
+ </div>
233
+ </div>
234
+
235
+ <!-- Right Panel - Assets & Tools -->
236
+ <div class="w-80 bg-gray-800 border-l border-gray-700 flex flex-col">
237
+ <div class="p-4 border-b border-gray-700">
238
+ <h2 class="font-semibold text-lg">Assets & Tools</h2>
239
+ <div class="flex mt-2 space-x-2">
240
+ <button class="bg-gray-700 hover:bg-gray-600 px-3 py-1 rounded text-sm flex-1">
241
+ <i class="fas fa-search mr-1"></i> Search
242
+ </button>
243
+ <button class="bg-gray-700 hover:bg-gray-600 p-1 rounded text-sm">
244
+ <i class="fas fa-sliders-h"></i>
245
+ </button>
246
+ </div>
247
+ </div>
248
+
249
+ <div class="flex-1 overflow-y-auto p-4 space-y-4">
250
+ <div>
251
+ <h3 class="font-medium text-sm text-gray-400 mb-2">Suggested Assets</h3>
252
+ <div class="grid grid-cols-2 gap-3">
253
+ <div class="asset-card bg-gray-700 rounded-lg p-2 cursor-pointer transition-all duration-200">
254
+ <div class="bg-gray-600 rounded-md h-20 flex items-center justify-center">
255
+ <i class="fas fa-chess-rook text-2xl text-gray-400"></i>
256
+ </div>
257
+ <p class="text-xs mt-1 truncate">Castle Tower</p>
258
+ <p class="text-xxs text-gray-400">Medieval Pack</p>
259
+ </div>
260
+ <div class="asset-card bg-gray-700 rounded-lg p-2 cursor-pointer transition-all duration-200">
261
+ <div class="bg-gray-600 rounded-md h-20 flex items-center justify-center">
262
+ <i class="fas fa-home text-2xl text-gray-400"></i>
263
+ </div>
264
+ <p class="text-xs mt-1 truncate">Village House</p>
265
+ <p class="text-xxs text-gray-400">Fantasy Pack</p>
266
+ </div>
267
+ <div class="asset-card bg-gray-700 rounded-lg p-2 cursor-pointer transition-all duration-200">
268
+ <div class="bg-gray-600 rounded-md h-20 flex items-center justify-center">
269
+ <i class="fas fa-tree text-2xl text-gray-400"></i>
270
+ </div>
271
+ <p class="text-xs mt-1 truncate">Pine Tree</p>
272
+ <p class="text-xxs text-gray-400">Nature Pack</p>
273
+ </div>
274
+ <div class="asset-card bg-gray-700 rounded-lg p-2 cursor-pointer transition-all duration-200">
275
+ <div class="bg-gray-600 rounded-md h-20 flex items-center justify-center">
276
+ <i class="fas fa-water text-2xl text-gray-400"></i>
277
+ </div>
278
+ <p class="text-xs mt-1 truncate">River Material</p>
279
+ <p class="text-xxs text-gray-400">Water Pack</p>
280
+ </div>
281
+ </div>
282
+ </div>
283
+
284
+ <div>
285
+ <h3 class="font-medium text-sm text-gray-400 mb-2">Quick Actions</h3>
286
+ <div class="space-y-2">
287
+ <button class="w-full bg-gray-700 hover:bg-teal-600 p-2 rounded-lg text-sm flex items-center space-x-2 transition-all">
288
+ <i class="fas fa-mountain text-gray-400"></i>
289
+ <span>Generate Terrain</span>
290
+ </button>
291
+ <button class="w-full bg-gray-700 hover:bg-teal-600 p-2 rounded-lg text-sm flex items-center space-x-2 transition-all">
292
+ <i class="fas fa-road text-gray-400"></i>
293
+ <span>Add Paths</span>
294
+ </button>
295
+ <button class="w-full bg-gray-700 hover:bg-teal-600 p-2 rounded-lg text-sm flex items-center space-x-2 transition-all">
296
+ <i class="fas fa-leaf text-gray-400"></i>
297
+ <span>Add Foliage</span>
298
+ </button>
299
+ <button class="w-full bg-gray-700 hover:bg-teal-600 p-2 rounded-lg text-sm flex items-center space-x-2 transition-all">
300
+ <i class="fas fa-lightbulb text-gray-400"></i>
301
+ <span>Optimize Lighting</span>
302
+ </button>
303
+ </div>
304
+ </div>
305
+
306
+ <div>
307
+ <h3 class="font-medium text-sm text-gray-400 mb-2">Task Queue</h3>
308
+ <div class="space-y-2">
309
+ <div class="bg-gray-700 p-2 rounded-lg text-sm flex items-start space-x-2">
310
+ <div class="w-4 h-4 bg-teal-500 rounded-full mt-1 flex-shrink-0 animate-pulse-slow"></div>
311
+ <div>
312
+ <p>Building castle foundation</p>
313
+ <p class="text-xxs text-gray-400">In progress - 75%</p>
314
+ </div>
315
+ </div>
316
+ <div class="bg-gray-700 p-2 rounded-lg text-sm flex items-start space-x-2 opacity-70">
317
+ <div class="w-4 h-4 bg-gray-500 rounded-full mt-1 flex-shrink-0"></div>
318
+ <div>
319
+ <p>Place village structures</p>
320
+ <p class="text-xxs text-gray-400">Pending</p>
321
+ </div>
322
+ </div>
323
+ <div class="bg-gray-700 p-2 rounded-lg text-sm flex items-start space-x-2 opacity-70">
324
+ <div class="w-4 h-4 bg-gray-500 rounded-full mt-1 flex-shrink-0"></div>
325
+ <div>
326
+ <p>Generate terrain textures</p>
327
+ <p class="text-xxs text-gray-400">Pending</p>
328
+ </div>
329
+ </div>
330
+ </div>
331
+ </div>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <script>
338
+ // Simulate AI response
339
+ document.querySelector('.fa-paper-plane').addEventListener('click', function() {
340
+ const input = document.querySelector('input[type="text"]');
341
+ if (input.value.trim() === '') return;
342
+
343
+ // Add user message
344
+ const chatContainer = document.getElementById('chat-container');
345
+ const userMessage = document.createElement('div');
346
+ userMessage.className = 'flex items-start space-x-2 justify-end';
347
+ userMessage.innerHTML = `
348
+ <div class="chat-message-user p-3 max-w-xs">
349
+ <p>${input.value}</p>
350
+ </div>
351
+ <div class="bg-blue-500 p-2 rounded-full">
352
+ <i class="fas fa-user text-white"></i>
353
+ </div>
354
+ `;
355
+ chatContainer.appendChild(userMessage);
356
+
357
+ // Show progress overlay
358
+ const progressOverlay = document.getElementById('progress-overlay');
359
+ progressOverlay.classList.remove('hidden');
360
+
361
+ // Clear input
362
+ input.value = '';
363
+
364
+ // Simulate AI thinking
365
+ setTimeout(() => {
366
+ progressOverlay.classList.add('hidden');
367
+
368
+ // Add AI response
369
+ const aiResponse = document.createElement('div');
370
+ aiResponse.className = 'flex items-start space-x-2';
371
+ aiResponse.innerHTML = `
372
+ <div class="bg-teal-500 p-2 rounded-full">
373
+ <i class="fas fa-robot text-white"></i>
374
+ </div>
375
+ <div class="chat-message-ai p-3 max-w-xs">
376
+ <p>I've started working on your request. I'm currently generating the terrain based on medieval landscape patterns. Would you like me to focus on any specific architectural style for the castle?</p>
377
+ </div>
378
+ `;
379
+ chatContainer.appendChild(aiResponse);
380
+
381
+ // Scroll to bottom
382
+ chatContainer.scrollTop = chatContainer.scrollHeight;
383
+ }, 3000);
384
+ });
385
+
386
+ // Allow pressing Enter to send message
387
+ document.querySelector('input[type="text"]').addEventListener('keypress', function(e) {
388
+ if (e.key === 'Enter') {
389
+ document.querySelector('.fa-paper-plane').click();
390
+ }
391
+ });
392
+ </script>
393
+ <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=87geier/ue5" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
394
+ </html>