daltiboi commited on
Commit
1893477
·
verified ·
1 Parent(s): b04386d

I need the Editor to take request in natural language, so NLP is necessary. Also, the User should be able to type anything and the AI agent should be able to generate it

Browse files
Files changed (5) hide show
  1. README.md +9 -5
  2. aichat.html +213 -0
  3. editor.html +428 -0
  4. export.html +267 -0
  5. index.html +309 -18
README.md CHANGED
@@ -1,10 +1,14 @@
1
  ---
2
- title: Undefined
3
- emoji: 🏢
4
- colorFrom: yellow
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: undefined
3
+ colorFrom: pink
4
+ colorTo: blue
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
14
+
aichat.html ADDED
@@ -0,0 +1,213 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>BlockCraft Studio | AI Chat</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <style>
12
+ .chat-container {
13
+ scrollbar-width: thin;
14
+ scrollbar-color: #334155 #1e293b;
15
+ }
16
+ .chat-container::-webkit-scrollbar {
17
+ width: 8px;
18
+ }
19
+ .chat-container::-webkit-scrollbar-track {
20
+ background: #1e293b;
21
+ }
22
+ .chat-container::-webkit-scrollbar-thumb {
23
+ background-color: #334155;
24
+ border-radius: 6px;
25
+ }
26
+ .ai-message {
27
+ background: rgba(30, 41, 59, 0.8);
28
+ border-left: 3px solid #3b82f6;
29
+ }
30
+ .user-message {
31
+ background: rgba(30, 64, 59, 0.8);
32
+ border-left: 3px solid #10b981;
33
+ }
34
+ </style>
35
+ </head>
36
+ <body class="bg-slate-900 text-gray-100 min-h-screen flex flex-col">
37
+ <!-- Navbar -->
38
+ <nav class="bg-slate-800/80 border-b border-slate-700">
39
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
40
+ <div class="flex items-center justify-between h-16">
41
+ <div class="flex items-center">
42
+ <div class="flex-shrink-0">
43
+ <div class="flex items-center">
44
+ <i data-feather="box" class="text-blue-400 mr-2"></i>
45
+ <span class="text-xl font-bold bg-gradient-to-r from-blue-400 to-emerald-400 bg-clip-text text-transparent">BlockCraft Studio AI</span>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <div class="flex items-center">
50
+ <a href="editor.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium flex items-center">
51
+ <i data-feather="arrow-left" class="mr-1 w-4 h-4"></i>
52
+ Back to Editor
53
+ </a>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </nav>
58
+
59
+ <!-- Chat Container -->
60
+ <div class="flex-1 overflow-hidden flex flex-col max-w-4xl mx-auto w-full p-4">
61
+ <!-- Chat Messages -->
62
+ <div class="flex-1 overflow-y-auto chat-container space-y-4 mb-4">
63
+ <!-- AI Welcome Message -->
64
+ <div class="ai-message rounded-lg p-4">
65
+ <div class="flex items-start space-x-3">
66
+ <div class="bg-blue-500/20 p-2 rounded-full">
67
+ <i data-feather="cpu" class="text-blue-400 w-5 h-5"></i>
68
+ </div>
69
+ <div>
70
+ <h4 class="font-bold text-white">BlockCraft AI</h4>
71
+ <p class="text-gray-300 mt-1">Hi! I'm your Minecraft creation assistant. Tell me what you'd like to build and I'll help bring it to life! For example, you could say: "Create a medieval castle with a working drawbridge" or "Make a robot that shoots fireworks".</p>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+
77
+ <!-- Input Area -->
78
+ <div class="bg-slate-800/80 border border-slate-700 rounded-lg p-4">
79
+ <form id="chatForm" class="flex space-x-2">
80
+ <input type="text" id="userMessage" placeholder="Describe what you want to build..."
81
+ class="flex-1 bg-slate-700 border border-slate-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
82
+ <button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg flex items-center">
83
+ <i data-feather="send" class="w-4 h-4 mr-1"></i>
84
+ Send
85
+ </button>
86
+ </form>
87
+ <div class="flex justify-between mt-2">
88
+ <div class="text-xs text-gray-400">
89
+ Pro tip: Be as detailed as possible for best results
90
+ </div>
91
+ <button id="exampleBtn" class="text-xs text-blue-400 hover:text-blue-300">
92
+ <i data-feather="lightbulb" class="w-3 h-3 inline mr-1"></i>
93
+ Show Examples
94
+ </button>
95
+ </div>
96
+ </div>
97
+ </div>
98
+
99
+ <script>
100
+ // Initialize Feather Icons
101
+ feather.replace();
102
+
103
+ // Handle chat submission
104
+ document.getElementById('chatForm').addEventListener('submit', async function(e) {
105
+ e.preventDefault();
106
+ const input = document.getElementById('userMessage');
107
+ const message = input.value.trim();
108
+ if (!message) return;
109
+
110
+ // Add user message to chat
111
+ addMessage('user', message);
112
+ input.value = '';
113
+
114
+ // Show AI typing indicator
115
+ const chatContainer = document.querySelector('.chat-container');
116
+ const typingIndicator = document.createElement('div');
117
+ typingIndicator.className = 'ai-message rounded-lg p-4';
118
+ typingIndicator.innerHTML = `
119
+ <div class="flex items-start space-x-3">
120
+ <div class="bg-blue-500/20 p-2 rounded-full">
121
+ <i data-feather="cpu" class="text-blue-400 w-5 h-5"></i>
122
+ </div>
123
+ <div class="flex items-center">
124
+ <div class="typing-dots flex space-x-1">
125
+ <div class="w-2 h-2 bg-blue-400 rounded-full animate-bounce"></div>
126
+ <div class="w-2 h-2 bg-blue-400 rounded-full animate-bounce" style="animation-delay: 0.2s"></div>
127
+ <div class="w-2 h-2 bg-blue-400 rounded-full animate-bounce" style="animation-delay: 0.4s"></div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ `;
132
+ chatContainer.appendChild(typingIndicator);
133
+ chatContainer.scrollTop = chatContainer.scrollHeight;
134
+
135
+ try {
136
+ // Simulate API call delay
137
+ await new Promise(resolve => setTimeout(resolve, 1500));
138
+
139
+ // Remove typing indicator
140
+ typingIndicator.remove();
141
+
142
+ // Generate AI response (in a real app, this would call your NLP backend)
143
+ const response = generateAIResponse(message);
144
+
145
+ // Add AI response to chat
146
+ addMessage('ai', response);
147
+
148
+ } catch (error) {
149
+ typingIndicator.remove();
150
+ addMessage('ai', "Sorry, I encountered an error. Please try again later.");
151
+ console.error('AI request failed:', error);
152
+ }
153
+ });
154
+
155
+ // Add message to chat
156
+ function addMessage(sender, content) {
157
+ const chatContainer = document.querySelector('.chat-container');
158
+ const messageDiv = document.createElement('div');
159
+ messageDiv.className = sender === 'ai' ? 'ai-message rounded-lg p-4' : 'user-message rounded-lg p-4';
160
+
161
+ messageDiv.innerHTML = `
162
+ <div class="flex items-start space-x-3">
163
+ <div class="${sender === 'ai' ? 'bg-blue-500/20' : 'bg-emerald-500/20'} p-2 rounded-full">
164
+ <i data-feather="${sender === 'ai' ? 'cpu' : 'user'}" class="${sender === 'ai' ? 'text-blue-400' : 'text-emerald-400'} w-5 h-5"></i>
165
+ </div>
166
+ <div>
167
+ <h4 class="font-bold text-white">${sender === 'ai' ? 'BlockCraft AI' : 'You'}</h4>
168
+ <p class="text-gray-300 mt-1">${content}</p>
169
+ ${sender === 'ai' ? '<button class="mt-2 bg-blue-500 hover:bg-blue-600 text-white px-3 py-1 rounded text-xs flex items-center"><i data-feather="play" class="w-3 h-3 mr-1"></i> Apply to Editor</button>' : ''}
170
+ </div>
171
+ </div>
172
+ `;
173
+
174
+ chatContainer.appendChild(messageDiv);
175
+ chatContainer.scrollTop = chatContainer.scrollHeight;
176
+ feather.replace();
177
+ }
178
+
179
+ // Generate mock AI response
180
+ function generateAIResponse(prompt) {
181
+ const responses = {
182
+ 'castle': "I'll create a medieval castle with stone walls, towers, and a working drawbridge. Would you like me to add any specific details like banners or a moat?",
183
+ 'robot': "Great choice! I'll generate a steampunk-style robot with glowing eyes and piston-powered limbs. Should it have any special abilities like shooting fireworks?",
184
+ 'house': "I can build a modern house with large windows and a flat roof. Would you prefer a pool, garden, or any other features?",
185
+ 'vehicle': "I'll design a customizable vehicle. Should it be a car, boat, or airplane? For Minecraft, I can make it move using redstone or command blocks.",
186
+ 'default': "Thanks for your request! I'll generate a 3D model based on your description: \"" + prompt + "\". You'll be able to adjust the size, colors, and details in the editor."
187
+ };
188
+
189
+ const lowerPrompt = prompt.toLowerCase();
190
+ if (lowerPrompt.includes('castle')) return responses.castle;
191
+ if (lowerPrompt.includes('robot')) return responses.robot;
192
+ if (lowerPrompt.includes('house') || lowerPrompt.includes('home')) return responses.house;
193
+ if (lowerPrompt.includes('car') || lowerPrompt.includes('vehicle') || lowerPrompt.includes('boat') || lowerPrompt.includes('plane')) return responses.vehicle;
194
+ return responses.default;
195
+ }
196
+
197
+ // Example button handler
198
+ document.getElementById('exampleBtn').addEventListener('click', function() {
199
+ const examples = [
200
+ "Create a steampunk airship with rotating propellers",
201
+ "Build a wizard tower that shoots magical particles",
202
+ "Design a modern mansion with a swimming pool",
203
+ "Make a mech robot that can transform into a vehicle",
204
+ "Generate a fantasy castle with floating islands"
205
+ ];
206
+
207
+ const randomExample = examples[Math.floor(Math.random() * examples.length)];
208
+ document.getElementById('userMessage').value = randomExample;
209
+ document.getElementById('userMessage').focus();
210
+ });
211
+ </script>
212
+ </body>
213
+ </html>
editor.html ADDED
@@ -0,0 +1,428 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>BlockCraft Studio | Editor</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/examples/js/controls/OrbitControls.js"></script>
13
+ <style>
14
+ .editor-window {
15
+ background-color: rgba(30, 41, 59, 0.8);
16
+ backdrop-filter: blur(10px);
17
+ }
18
+ .tab-active {
19
+ border-bottom: 2px solid #60a5fa;
20
+ color: #60a5fa;
21
+ }
22
+ .model-preview {
23
+ background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
24
+ }
25
+ #viewport {
26
+ width: 100%;
27
+ height: 100%;
28
+ }
29
+ .property-panel {
30
+ scrollbar-width: thin;
31
+ scrollbar-color: #334155 #1e293b;
32
+ }
33
+ .property-panel::-webkit-scrollbar {
34
+ width: 8px;
35
+ }
36
+ .property-panel::-webkit-scrollbar-track {
37
+ background: #1e293b;
38
+ }
39
+ .property-panel::-webkit-scrollbar-thumb {
40
+ background-color: #334155;
41
+ border-radius: 6px;
42
+ }
43
+ </style>
44
+ </head>
45
+ <body class="bg-slate-900 text-gray-100 min-h-screen overflow-hidden flex flex-col">
46
+ <!-- Top Toolbar -->
47
+ <div class="bg-slate-800 border-b border-slate-700 p-2 flex items-center justify-between">
48
+ <!-- AI Command Input -->
49
+ <div class="relative flex-1 max-w-2xl mx-4">
50
+ <input type="text" id="aiCommand" placeholder="Tell the AI what to build (e.g. 'Create a redstone-powered robot with glowing eyes')"
51
+ class="w-full bg-slate-700 border border-slate-600 rounded-full px-4 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500">
52
+ <button id="aiGenerateBtn" class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-500 hover:bg-blue-600 text-white p-1 rounded-full">
53
+ <i data-feather="sparkles" class="w-4 h-4"></i>
54
+ </button>
55
+ </div>
56
+ <div class="flex items-center space-x-4">
57
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded">
58
+ <i data-feather="menu"></i>
59
+ </button>
60
+ <div class="flex items-center">
61
+ <i data-feather="box" class="text-blue-400 mr-2"></i>
62
+ <span class="font-medium">Zombie King</span>
63
+ </div>
64
+ </div>
65
+ <div class="flex items-center space-x-2 ml-4">
66
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded">
67
+ <i data-feather="save"></i>
68
+ </button>
69
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded">
70
+ <i data-feather="share-2"></i>
71
+ </button>
72
+ <div class="h-6 border-l border-slate-600"></div>
73
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-1 rounded text-sm flex items-center">
74
+ <i data-feather="download" class="mr-1 w-4 h-4"></i>
75
+ Export
76
+ </button>
77
+ </div>
78
+ </div>
79
+
80
+ <!-- Main Editor Area -->
81
+ <div class="flex flex-1 overflow-hidden">
82
+ <!-- Left Sidebar - Tools -->
83
+ <div class="w-16 bg-slate-800 border-r border-slate-700 flex flex-col items-center py-4 space-y-4">
84
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Select">
85
+ <i data-feather="mouse-pointer"></i>
86
+ </button>
87
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Cube">
88
+ <i data-feather="box"></i>
89
+ </button>
90
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Sphere">
91
+ <i data-feather="circle"></i>
92
+ </button>
93
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Mesh">
94
+ <i data-feather="triangle"></i>
95
+ </button>
96
+ <div class="h-px w-8 bg-slate-700 my-2"></div>
97
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Paint">
98
+ <i data-feather="droplet"></i>
99
+ </button>
100
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="UV Editor">
101
+ <i data-feather="image"></i>
102
+ </button>
103
+ <div class="h-px w-8 bg-slate-700 my-2"></div>
104
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Animate">
105
+ <i data-feather="repeat"></i>
106
+ </button>
107
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-2 rounded-lg tooltip" data-tooltip="Sounds">
108
+ <i data-feather="volume-2"></i>
109
+ </button>
110
+ </div>
111
+
112
+ <!-- Center Viewport -->
113
+ <div class="flex-1 relative">
114
+ <div id="viewport" class="absolute inset-0">
115
+ <!-- 3D viewport will be rendered here -->
116
+ <div class="w-full h-full flex items-center justify-center">
117
+ <div class="text-center">
118
+ <i data-feather="box" class="w-16 h-16 mx-auto text-slate-500"></i>
119
+ <p class="text-slate-400 mt-2">3D Viewport</p>
120
+ </div>
121
+ </div>
122
+ </div>
123
+
124
+ <!-- Viewport Controls -->
125
+ <div class="absolute bottom-4 right-4 flex space-x-2">
126
+ <button class="bg-slate-800 hover:bg-slate-700 text-gray-300 p-2 rounded-full">
127
+ <i data-feather="maximize"></i>
128
+ </button>
129
+ <button class="bg-slate-800 hover:bg-slate-700 text-gray-300 p-2 rounded-full">
130
+ <i data-feather="rotate-ccw"></i>
131
+ </button>
132
+ <button class="bg-slate-800 hover:bg-slate-700 text-gray-300 p-2 rounded-full">
133
+ <i data-feather="grid"></i>
134
+ </button>
135
+ </div>
136
+ </div>
137
+
138
+ <!-- Right Sidebar - Properties -->
139
+ <div class="w-64 bg-slate-800 border-l border-slate-700 flex flex-col overflow-hidden">
140
+ <div class="p-4 border-b border-slate-700">
141
+ <h3 class="font-medium text-white">Properties</h3>
142
+ </div>
143
+
144
+ <div class="flex-1 overflow-y-auto property-panel p-4 space-y-6">
145
+ <!-- Transform Section -->
146
+ <div>
147
+ <div class="flex items-center justify-between mb-2">
148
+ <span class="text-sm font-medium text-gray-300">Transform</span>
149
+ <button class="text-gray-400 hover:text-white">
150
+ <i data-feather="more-horizontal" class="w-4 h-4"></i>
151
+ </button>
152
+ </div>
153
+
154
+ <div class="space-y-2">
155
+ <div class="grid grid-cols-3 gap-2">
156
+ <div>
157
+ <label class="block text-xs text-gray-400 mb-1">X</label>
158
+ <input type="number" value="0" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
159
+ </div>
160
+ <div>
161
+ <label class="block text-xs text-gray-400 mb-1">Y</label>
162
+ <input type="number" value="0" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
163
+ </div>
164
+ <div>
165
+ <label class="block text-xs text-gray-400 mb-1">Z</label>
166
+ <input type="number" value="0" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
167
+ </div>
168
+ </div>
169
+
170
+ <div class="grid grid-cols-3 gap-2">
171
+ <div>
172
+ <label class="block text-xs text-gray-400 mb-1">Rot X</label>
173
+ <input type="number" value="0" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
174
+ </div>
175
+ <div>
176
+ <label class="block text-xs text-gray-400 mb-1">Rot Y</label>
177
+ <input type="number" value="0" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
178
+ </div>
179
+ <div>
180
+ <label class="block text-xs text-gray-400 mb-1">Rot Z</label>
181
+ <input type="number" value="0" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </div>
186
+
187
+ <!-- Minecraft Properties -->
188
+ <div>
189
+ <div class="flex items-center justify-between mb-2">
190
+ <span class="text-sm font-medium text-gray-300">Minecraft Settings</span>
191
+ </div>
192
+
193
+ <div class="space-y-2">
194
+ <div>
195
+ <label class="block text-xs text-gray-400 mb-1">Edition</label>
196
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
197
+ <option>Java Edition</option>
198
+ <option>Bedrock Edition</option>
199
+ </select>
200
+ </div>
201
+
202
+ <div>
203
+ <label class="block text-xs text-gray-400 mb-1">Texture Size</label>
204
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
205
+ <option>16x16 (Default)</option>
206
+ <option>32x32</option>
207
+ <option>64x64</option>
208
+ <option>128x128</option>
209
+ </select>
210
+ </div>
211
+
212
+ <div>
213
+ <label class="block text-xs text-gray-400 mb-1">Hitbox</label>
214
+ <div class="grid grid-cols-3 gap-2">
215
+ <div>
216
+ <label class="block text-xs text-gray-400 mb-1">W</label>
217
+ <input type="number" value="1" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
218
+ </div>
219
+ <div>
220
+ <label class="block text-xs text-gray-400 mb-1">H</label>
221
+ <input type="number" value="1" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
222
+ </div>
223
+ <div>
224
+ <label class="block text-xs text-gray-400 mb-1">D</label>
225
+ <input type="number" value="1" class="w-full bg-slate-700 border border-slate-600 rounded px-2 py-1 text-sm">
226
+ </div>
227
+ </div>
228
+ </div>
229
+ </div>
230
+ </div>
231
+
232
+ <!-- Animation Controller -->
233
+ <div>
234
+ <div class="flex items-center justify-between mb-2">
235
+ <span class="text-sm font-medium text-gray-300">Animations</span>
236
+ <button class="text-blue-400 hover:text-blue-300 text-xs flex items-center">
237
+ <i data-feather="plus" class="w-3 h-3 mr-1"></i>
238
+ Add
239
+ </button>
240
+ </div>
241
+
242
+ <div class="space-y-2">
243
+ <div class="bg-slate-700 rounded p-2 flex items-center justify-between">
244
+ <div>
245
+ <span class="text-xs font-medium text-white">walk</span>
246
+ <div class="text-xs text-gray-400">7 keyframes</div>
247
+ </div>
248
+ <button class="text-gray-400 hover:text-white">
249
+ <i data-feather="edit-2" class="w-4 h-4"></i>
250
+ </button>
251
+ </div>
252
+
253
+ <div class="bg-slate-700 rounded p-2 flex items-center justify-between">
254
+ <div>
255
+ <span class="text-xs font-medium text-white">attack</span>
256
+ <div class="text-xs text-gray-400">12 keyframes</div>
257
+ </div>
258
+ <button class="text-gray-400 hover:text-white">
259
+ <i data-feather="edit-2" class="w-4 h-4"></i>
260
+ </button>
261
+ </div>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ </div>
266
+ </div>
267
+
268
+ <!-- Bottom Timeline -->
269
+ <div class="h-24 bg-slate-800 border-t border-slate-700 p-2">
270
+ <div class="flex items-center justify-between mb-2">
271
+ <div class="flex items-center space-x-2">
272
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-1 rounded">
273
+ <i data-feather="play" class="w-4 h-4"></i>
274
+ </button>
275
+ <span class="text-xs text-gray-400">00:00 / 05:00</span>
276
+ </div>
277
+
278
+ <div class="flex items-center space-x-2">
279
+ <span class="text-xs text-gray-400">Frame: 0</span>
280
+ <button class="text-gray-300 hover:text-white hover:bg-slate-700 p-1 rounded text-xs">
281
+ <i data-feather="plus" class="w-3 h-3 mr-1"></i>
282
+ Keyframe
283
+ </button>
284
+ </div>
285
+ </div>
286
+
287
+ <div class="bg-slate-700 rounded h-12 relative">
288
+ <!-- Timeline visualization would go here -->
289
+ <div class="absolute inset-0 flex items-center justify-center text-gray-500 text-xs">
290
+ Timeline - Drag to scrub
291
+ </div>
292
+ </div>
293
+ </div>
294
+ <script>
295
+ // Initialize Feather Icons
296
+ feather.replace();
297
+
298
+ // AI Generation Handler
299
+ document.getElementById('aiGenerateBtn').addEventListener('click', async function() {
300
+ const command = document.getElementById('aiCommand').value.trim();
301
+ if (!command) return;
302
+
303
+ // Show loading state
304
+ this.innerHTML = '<i data-feather="loader" class="w-4 h-4 animate-spin"></i>';
305
+ feather.replace();
306
+
307
+ try {
308
+ // In a real implementation, this would call your NLP/AI backend
309
+ const response = await mockAIRequest(command);
310
+
311
+ // Process the AI response and update the 3D scene
312
+ updateSceneWithAIResponse(response);
313
+
314
+ // Show success feedback
315
+ this.innerHTML = '<i data-feather="check" class="w-4 h-4 text-green-400"></i>';
316
+ setTimeout(() => {
317
+ this.innerHTML = '<i data-feather="sparkles" class="w-4 h-4"></i>';
318
+ feather.replace();
319
+ }, 2000);
320
+ } catch (error) {
321
+ this.innerHTML = '<i data-feather="x" class="w-4 h-4 text-red-400"></i>';
322
+ setTimeout(() => {
323
+ this.innerHTML = '<i data-feather="sparkles" class="w-4 h-4"></i>';
324
+ feather.replace();
325
+ }, 2000);
326
+ console.error('AI generation failed:', error);
327
+ }
328
+ });
329
+
330
+ // Mock AI request function (replace with real API call)
331
+ async function mockAIRequest(prompt) {
332
+ // Simulate API delay
333
+ await new Promise(resolve => setTimeout(resolve, 1500));
334
+
335
+ // Return mock response based on common commands
336
+ if (prompt.toLowerCase().includes('robot')) {
337
+ return {
338
+ type: 'entity',
339
+ model: 'humanoid',
340
+ textures: {
341
+ body: 'metallic',
342
+ eyes: 'glowing'
343
+ },
344
+ animations: ['walk', 'attack'],
345
+ components: prompt.includes('redstone') ? ['redstone_powered'] : []
346
+ };
347
+ }
348
+
349
+ // Default response for other prompts
350
+ return {
351
+ type: 'custom',
352
+ elements: [{
353
+ shape: 'cube',
354
+ size: {x: 1, y: 1, z: 1},
355
+ position: {x: 0, y: 0, z: 0},
356
+ texture: 'default'
357
+ }]
358
+ };
359
+ }
360
+
361
+ // Update scene based on AI response
362
+ function updateSceneWithAIResponse(response) {
363
+ console.log('Updating scene with:', response);
364
+ // In a real implementation, this would modify the Three.js scene
365
+ // For now we'll just show a success message
366
+ const viewport = document.getElementById('viewport');
367
+ viewport.innerHTML = `
368
+ <div class="absolute inset-0 flex items-center justify-center">
369
+ <div class="text-center bg-slate-800/90 p-6 rounded-xl max-w-md">
370
+ <i data-feather="check-circle" class="w-12 h-12 mx-auto text-green-400 mb-4"></i>
371
+ <h3 class="text-xl font-bold text-white mb-2">AI Generation Complete</h3>
372
+ <p class="text-gray-300 mb-4">The AI has created your requested model.</p>
373
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md text-sm">
374
+ Edit in 3D View
375
+ </button>
376
+ </div>
377
+ </div>
378
+ `;
379
+ feather.replace();
380
+ }
381
+ // Tooltip functionality
382
+ document.querySelectorAll('.tooltip').forEach(el => {
383
+ const tooltip = document.createElement('div');
384
+ tooltip.className = 'absolute hidden bg-slate-700 text-white text-xs px-2 py-1 rounded mt-2 whitespace-nowrap';
385
+ tooltip.textContent = el.getAttribute('data-tooltip');
386
+
387
+ el.appendChild(tooltip);
388
+ el.style.position = 'relative';
389
+
390
+ el.addEventListener('mouseenter', () => {
391
+ tooltip.classList.remove('hidden');
392
+ });
393
+
394
+ el.addEventListener('mouseleave', () => {
395
+ tooltip.classList.add('hidden');
396
+ });
397
+ });
398
+ // Initialize 3D Scene
399
+ function initViewport() {
400
+ const viewport = document.getElementById('viewport');
401
+
402
+ // Placeholder for Three.js scene initialization
403
+ // In a real implementation, this would set up the 3D editor
404
+ viewport.innerHTML = `
405
+ <div class="w-full h-full flex items-center justify-center">
406
+ <div class="text-center">
407
+ <i data-feather="message-square" class="w-16 h-16 mx-auto text-blue-400 mb-4"></i>
408
+ <h3 class="text-lg font-medium text-white mb-2">AI-Powered Minecraft Creator</h3>
409
+ <p class="text-gray-400 max-w-xs mx-auto">
410
+ Type what you want to build in the command bar above
411
+ </p>
412
+ </div>
413
+ </div>
414
+ `;
415
+ feather.replace();
416
+ }
417
+ // Initialize the editor
418
+ document.addEventListener('DOMContentLoaded', initViewport);
419
+
420
+ // Handle Enter key in command input
421
+ document.getElementById('aiCommand').addEventListener('keypress', function(e) {
422
+ if (e.key === 'Enter') {
423
+ document.getElementById('aiGenerateBtn').click();
424
+ }
425
+ });
426
+ </script>
427
+ </body>
428
+ </html>
export.html ADDED
@@ -0,0 +1,267 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>BlockCraft Studio | Export</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <style>
12
+ .export-card {
13
+ transition: all 0.2s ease;
14
+ }
15
+ .export-card:hover {
16
+ transform: translateY(-2px);
17
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
18
+ }
19
+ .progress-bar {
20
+ background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
21
+ }
22
+ </style>
23
+ </head>
24
+ <body class="bg-slate-900 text-gray-100 min-h-screen">
25
+ <!-- Navbar -->
26
+ <nav class="bg-slate-800/80 border-b border-slate-700">
27
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
28
+ <div class="flex items-center justify-between h-16">
29
+ <div class="flex items-center">
30
+ <div class="flex-shrink-0">
31
+ <div class="flex items-center">
32
+ <i data-feather="box" class="text-blue-400 mr-2"></i>
33
+ <span class="text-xl font-bold bg-gradient-to-r from-blue-400 to-emerald-400 bg-clip-text text-transparent">BlockCraft Studio</span>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <div class="flex items-center">
38
+ <a href="editor.html" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium flex items-center">
39
+ <i data-feather="arrow-left" class="mr-1 w-4 h-4"></i>
40
+ Back to Editor
41
+ </a>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </nav>
46
+
47
+ <!-- Main Content -->
48
+ <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
49
+ <div class="text-center mb-12">
50
+ <h1 class="text-3xl font-bold text-white mb-2">Export Your Creation</h1>
51
+ <p class="text-gray-400 max-w-2xl mx-auto">
52
+ Choose the appropriate export format for your Minecraft edition and get ready to share your mod with the world!
53
+ </p>
54
+ </div>
55
+
56
+ <!-- Export Options -->
57
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-12">
58
+ <!-- Java Edition Export -->
59
+ <div class="export-card bg-slate-800/80 border border-slate-700 rounded-xl p-6 hover:border-blue-400">
60
+ <div class="flex items-center mb-4">
61
+ <div class="bg-blue-500/20 p-3 rounded-full mr-4">
62
+ <i data-feather="cpu" class="text-blue-400 w-6 h-6"></i>
63
+ </div>
64
+ <h3 class="text-xl font-bold text-white">Java Edition</h3>
65
+ </div>
66
+ <p class="text-gray-400 mb-6">
67
+ Export as a mod for Minecraft Java Edition. Supports Forge, Fabric, and Quilt mod loaders.
68
+ </p>
69
+ <div class="space-y-4">
70
+ <div>
71
+ <label class="block text-sm font-medium text-gray-300 mb-1">Export Format</label>
72
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
73
+ <option>.jar (Mod File)</option>
74
+ <option>.zip (Resource Pack)</option>
75
+ <option>Full Mod Project</option>
76
+ </select>
77
+ </div>
78
+ <div>
79
+ <label class="block text-sm font-medium text-gray-300 mb-1">Mod Loader</label>
80
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
81
+ <option>Forge</option>
82
+ <option>Fabric</option>
83
+ <option>Quilt</option>
84
+ </select>
85
+ </div>
86
+ <button class="w-full bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center justify-center">
87
+ <i data-feather="download" class="mr-2 w-4 h-4"></i>
88
+ Export Java Edition
89
+ </button>
90
+ </div>
91
+ </div>
92
+
93
+ <!-- Bedrock Edition Export -->
94
+ <div class="export-card bg-slate-800/80 border border-slate-700 rounded-xl p-6 hover:border-emerald-400">
95
+ <div class="flex items-center mb-4">
96
+ <div class="bg-emerald-500/20 p-3 rounded-full mr-4">
97
+ <i data-feather="tablet" class="text-emerald-400 w-6 h-6"></i>
98
+ </div>
99
+ <h3 class="text-xl font-bold text-white">Bedrock Edition</h3>
100
+ </div>
101
+ <p class="text-gray-400 mb-6">
102
+ Export as an add-on for Minecraft Bedrock Edition. Works on all Bedrock platforms.
103
+ </p>
104
+ <div class="space-y-4">
105
+ <div>
106
+ <label class="block text-sm font-medium text-gray-300 mb-1">Export Format</label>
107
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
108
+ <option>.mcaddon (Complete Add-On)</option>
109
+ <option>.mcpack (Behavior Pack)</option>
110
+ <option>.mcpack (Resource Pack)</option>
111
+ </select>
112
+ </div>
113
+ <div>
114
+ <label class="block text-sm font-medium text-gray-300 mb-1">Target Version</label>
115
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
116
+ <option>Latest (1.20+)</option>
117
+ <option>1.19</option>
118
+ <option>1.18</option>
119
+ <option>1.17</option>
120
+ </select>
121
+ </div>
122
+ <button class="w-full bg-emerald-500 hover:bg-emerald-600 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center justify-center">
123
+ <i data-feather="download" class="mr-2 w-4 h-4"></i>
124
+ Export Bedrock Edition
125
+ </button>
126
+ </div>
127
+ </div>
128
+ </div>
129
+
130
+ <!-- Advanced Export -->
131
+ <div class="bg-slate-800/80 border border-slate-700 rounded-xl p-6 mb-12">
132
+ <h3 class="text-lg font-bold text-white mb-4 flex items-center">
133
+ <i data-feather="settings" class="mr-2 text-blue-400"></i>
134
+ Advanced Export Options
135
+ </h3>
136
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
137
+ <div>
138
+ <label class="block text-sm font-medium text-gray-300 mb-1">Texture Resolution</label>
139
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
140
+ <option>16x (Default)</option>
141
+ <option>32x</option>
142
+ <option>64x</option>
143
+ <option>128x (HD)</option>
144
+ </select>
145
+ </div>
146
+ <div>
147
+ <label class="block text-sm font-medium text-gray-300 mb-1">Animation Quality</label>
148
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
149
+ <option>High (Smooth)</option>
150
+ <option>Medium</option>
151
+ <option>Low (Performance)</option>
152
+ </select>
153
+ </div>
154
+ <div>
155
+ <label class="block text-sm font-medium text-gray-300 mb-1">Sound Quality</label>
156
+ <select class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm">
157
+ <option>High (128kbps)</option>
158
+ <option>Medium (64kbps)</option>
159
+ <option>Low (32kbps)</option>
160
+ </select>
161
+ </div>
162
+ </div>
163
+
164
+ <div class="mt-6">
165
+ <label class="block text-sm font-medium text-gray-300 mb-1">Custom Manifest Settings</label>
166
+ <textarea class="w-full bg-slate-700 border border-slate-600 rounded px-3 py-2 text-sm h-24" placeholder="Add any custom manifest properties in JSON format..."></textarea>
167
+ </div>
168
+
169
+ <div class="mt-6 flex justify-end">
170
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-md text-sm font-medium flex items-center">
171
+ <i data-feather="code" class="mr-2 w-4 h-4"></i>
172
+ Export Raw Files
173
+ </button>
174
+ </div>
175
+ </div>
176
+
177
+ <!-- Export Status -->
178
+ <div class="bg-slate-800/80 border border-slate-700 rounded-xl p-6">
179
+ <h3 class="text-lg font-bold text-white mb-4 flex items-center">
180
+ <i data-feather="activity" class="mr-2 text-blue-400"></i>
181
+ Export Status
182
+ </h3>
183
+
184
+ <div class="space-y-4">
185
+ <!-- Export Step 1 -->
186
+ <div>
187
+ <div class="flex items-center justify-between mb-1">
188
+ <span class="text-sm font-medium text-white">Processing models</span>
189
+ <span class="text-xs text-green-400 flex items-center">
190
+ <i data-feather="check" class="w-3 h-3 mr-1"></i>
191
+ Complete
192
+ </span>
193
+ </div>
194
+ <div class="w-full bg-slate-700 rounded-full h-1.5">
195
+ <div class="progress-bar h-1.5 rounded-full" style="width: 100%"></div>
196
+ </div>
197
+ </div>
198
+
199
+ <!-- Export Step 2 -->
200
+ <div>
201
+ <div class="flex items-center justify-between mb-1">
202
+ <span class="text-sm font-medium text-white">Compiling textures</span>
203
+ <span class="text-xs text-green-400 flex items-center">
204
+ <i data-feather="check" class="w-3 h-3 mr-1"></i>
205
+ Complete
206
+ </span>
207
+ </div>
208
+ <div class="w-full bg-slate-700 rounded-full h-1.5">
209
+ <div class="progress-bar h-1.5 rounded-full" style="width: 100%"></div>
210
+ </div>
211
+ </div>
212
+
213
+ <!-- Export Step 3 -->
214
+ <div>
215
+ <div class="flex items-center justify-between mb-1">
216
+ <span class="text-sm font-medium text-white">Processing animations</span>
217
+ <span class="text-xs text-blue-400 flex items-center">
218
+ <i data-feather="loader" class="w-3 h-3 mr-1 animate-spin"></i>
219
+ In Progress (75%)
220
+ </span>
221
+ </div>
222
+ <div class="w-full bg-slate-700 rounded-full h-1.5">
223
+ <div class="progress-bar h-1.5 rounded-full" style="width: 75%"></div>
224
+ </div>
225
+ </div>
226
+
227
+ <!-- Export Step 4 -->
228
+ <div>
229
+ <div class="flex items-center justify-between mb-1">
230
+ <span class="text-sm font-medium text-gray-300">Generating sound files</span>
231
+ <span class="text-xs text-gray-400">Pending</span>
232
+ </div>
233
+ <div class="w-full bg-slate-700 rounded-full h-1.5">
234
+ <div class="bg-slate-700 h-1.5 rounded-full" style="width: 0%"></div>
235
+ </div>
236
+ </div>
237
+
238
+ <!-- Export Step 5 -->
239
+ <div>
240
+ <div class="flex items-center justify-between mb-1">
241
+ <span class="text-sm font-medium text-gray-300">Creating package</span>
242
+ <span class="text-xs text-gray-400">Pending</span>
243
+ </div>
244
+ <div class="w-full bg-slate-700 rounded-full h-1.5">
245
+ <div class="bg-slate-700 h-1.5 rounded-full" style="width: 0%"></div>
246
+ </div>
247
+ </div>
248
+ </div>
249
+
250
+ <div class="mt-6 flex justify-between items-center">
251
+ <div class="text-sm text-gray-400">
252
+ Estimated time remaining: <span class="text-white">1 minute 23 seconds</span>
253
+ </div>
254
+ <button class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center">
255
+ <i data-feather="x" class="mr-2 w-4 h-4"></i>
256
+ Cancel Export
257
+ </button>
258
+ </div>
259
+ </div>
260
+ </div>
261
+
262
+ <script>
263
+ // Initialize Feather Icons
264
+ feather.replace();
265
+ </script>
266
+ </body>
267
+ </html>
index.html CHANGED
@@ -1,19 +1,310 @@
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>BlockCraft Studio | Minecraft Modding Suite</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/three@0.132.2/build/three.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
13
+ <style>
14
+ #vanta-bg {
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 100%;
19
+ height: 100%;
20
+ z-index: -1;
21
+ opacity: 0.3;
22
+ }
23
+ .editor-window {
24
+ background-color: rgba(30, 41, 59, 0.8);
25
+ backdrop-filter: blur(10px);
26
+ }
27
+ .tab-active {
28
+ border-bottom: 2px solid #60a5fa;
29
+ color: #60a5fa;
30
+ }
31
+ .model-preview {
32
+ background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
33
+ }
34
+ </style>
35
+ </head>
36
+ <body class="bg-slate-900 text-gray-100 min-h-screen overflow-x-hidden">
37
+ <div id="vanta-bg"></div>
38
+
39
+ <!-- Navbar -->
40
+ <nav class="bg-slate-800/80 border-b border-slate-700">
41
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
42
+ <div class="flex items-center justify-between h-16">
43
+ <div class="flex items-center">
44
+ <div class="flex-shrink-0">
45
+ <div class="flex items-center">
46
+ <i data-feather="box" class="text-blue-400 mr-2"></i>
47
+ <span class="text-xl font-bold bg-gradient-to-r from-blue-400 to-emerald-400 bg-clip-text text-transparent">BlockCraft Studio</span>
48
+ </div>
49
+ </div>
50
+ <div class="hidden md:block">
51
+ <div class="ml-10 flex items-baseline space-x-4">
52
+ <a href="index.html" class="bg-slate-700 text-white px-3 py-2 rounded-md text-sm font-medium">Home</a>
53
+ <a href="editor.html" class="text-gray-300 hover:bg-slate-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">AI Creator</a>
54
+ <a href="#" class="text-gray-300 hover:bg-slate-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Tutorials</a>
55
+ <a href="#" class="text-gray-300 hover:bg-slate-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Community</a>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ <div class="hidden md:block">
60
+ <div class="ml-4 flex items-center md:ml-6">
61
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-md text-sm font-medium flex items-center">
62
+ <i data-feather="download" class="mr-2 w-4 h-4"></i>
63
+ Download Desktop
64
+ </button>
65
+ </div>
66
+ </div>
67
+ <div class="-mr-2 flex md:hidden">
68
+ <button type="button" class="bg-slate-800 inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-slate-700 focus:outline-none" aria-controls="mobile-menu" aria-expanded="false">
69
+ <span class="sr-only">Open main menu</span>
70
+ <i data-feather="menu"></i>
71
+ </button>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </nav>
76
+
77
+ <!-- Hero Section -->
78
+ <div class="relative pt-16 pb-32 overflow-hidden">
79
+ <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
80
+ <div class="text-center">
81
+ <h1 class="text-4xl md:text-6xl font-extrabold tracking-tight text-white">
82
+ <span class="block">Create Minecraft Mods</span>
83
+ <span class="block bg-gradient-to-r from-blue-400 to-emerald-400 bg-clip-text text-transparent">With AI Magic</span>
84
+ </h1>
85
+ <p class="mt-6 max-w-lg mx-auto text-lg text-gray-300">
86
+ The first Minecraft modding suite powered by AI. Just describe what you want to build in natural language and watch it come to life!
87
+ </p>
88
+ <div class="mt-10 flex justify-center gap-4">
89
+ <a href="editor.html" class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-3 rounded-md text-lg font-medium flex items-center">
90
+ <i data-feather="sparkles" class="mr-2"></i>
91
+ Try AI Creator
92
+ </a>
93
+ <button class="bg-slate-700 hover:bg-slate-600 text-white px-6 py-3 rounded-md text-lg font-medium flex items-center">
94
+ <i data-feather="youtube" class="mr-2"></i>
95
+ Watch Demo
96
+ </button>
97
+ </div>
98
+ </div>
99
+ </div>
100
+ </div>
101
+
102
+ <!-- Features Grid -->
103
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
104
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
105
+ <!-- Feature 1 -->
106
+ <div class="bg-slate-800/80 border border-slate-700 rounded-xl p-6 hover:border-blue-400 transition-all duration-300">
107
+ <div class="flex justify-center mb-4">
108
+ <div class="bg-blue-500/20 p-3 rounded-full">
109
+ <i data-feather="box" class="text-blue-400 w-8 h-8"></i>
110
+ </div>
111
+ </div>
112
+ <h3 class="text-xl font-bold text-center text-white mb-2">3D Modeling</h3>
113
+ <p class="text-gray-400 text-center">
114
+ Intuitive model creation for blocks, items, and entities with real-time previews for both Java and Bedrock formats.
115
+ </p>
116
+ </div>
117
+
118
+ <!-- Feature 2 -->
119
+ <div class="bg-slate-800/80 border border-slate-700 rounded-xl p-6 hover:border-emerald-400 transition-all duration-300">
120
+ <div class="flex justify-center mb-4">
121
+ <div class="bg-emerald-500/20 p-3 rounded-full">
122
+ <i data-feather="film" class="text-emerald-400 w-8 h-8"></i>
123
+ </div>
124
+ </div>
125
+ <h3 class="text-xl font-bold text-center text-white mb-2">Animations</h3>
126
+ <p class="text-gray-400 text-center">
127
+ Create complex entity animations with our timeline editor and keyframe system that works across editions.
128
+ </p>
129
+ </div>
130
+
131
+ <!-- Feature 3 -->
132
+ <div class="bg-slate-800/80 border border-slate-700 rounded-xl p-6 hover:border-purple-400 transition-all duration-300">
133
+ <div class="flex justify-center mb-4">
134
+ <div class="bg-purple-500/20 p-3 rounded-full">
135
+ <i data-feather="volume-2" class="text-purple-400 w-8 h-8"></i>
136
+ </div>
137
+ </div>
138
+ <h3 class="text-xl font-bold text-center text-white mb-2">Sound Design</h3>
139
+ <p class="text-gray-400 text-center">
140
+ Record, edit, and implement custom sounds with our built-in audio tools and waveform visualizer.
141
+ </p>
142
+ </div>
143
+ </div>
144
+ </div>
145
+
146
+ <!-- Editor Preview -->
147
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
148
+ <div class="editor-window border border-slate-700 rounded-xl overflow-hidden">
149
+ <div class="flex items-center bg-slate-800 px-4 py-2 border-b border-slate-700">
150
+ <div class="flex space-x-2">
151
+ <div class="w-3 h-3 rounded-full bg-red-500"></div>
152
+ <div class="w-3 h-3 rounded-full bg-yellow-500"></div>
153
+ <div class="w-3 h-3 rounded-full bg-green-500"></div>
154
+ </div>
155
+ <div class="flex-1 text-center text-gray-300 text-sm">New Entity - Zombie King</div>
156
+ </div>
157
+
158
+ <div class="grid grid-cols-1 lg:grid-cols-4">
159
+ <!-- Tools Panel -->
160
+ <div class="bg-slate-800 p-4 border-r border-slate-700">
161
+ <div class="space-y-4">
162
+ <div class="flex flex-col space-y-2">
163
+ <span class="text-gray-400 text-xs uppercase tracking-wider">Model Tools</span>
164
+ <button class="flex items-center text-gray-300 hover:text-white hover:bg-slate-700 px-2 py-1 rounded text-sm">
165
+ <i data-feather="box" class="mr-2 w-4 h-4"></i>
166
+ Cube
167
+ </button>
168
+ <button class="flex items-center text-gray-300 hover:text-white hover:bg-slate-700 px-2 py-1 rounded text-sm">
169
+ <i data-feather="circle" class="mr-2 w-4 h-4"></i>
170
+ Sphere
171
+ </button>
172
+ <button class="flex items-center text-gray-300 hover:text-white hover:bg-slate-700 px-2 py-1 rounded text-sm">
173
+ <i data-feather="triangle" class="mr-2 w-4 h-4"></i>
174
+ Mesh
175
+ </button>
176
+ </div>
177
+
178
+ <div class="flex flex-col space-y-2">
179
+ <span class="text-gray-400 text-xs uppercase tracking-wider">Animation</span>
180
+ <button class="flex items-center text-gray-300 hover:text-white hover:bg-slate-700 px-2 py-1 rounded text-sm">
181
+ <i data-feather="repeat" class="mr-2 w-4 h-4"></i>
182
+ Timeline
183
+ </button>
184
+ <button class="flex items-center text-gray-300 hover:text-white hover:bg-slate-700 px-2 py-1 rounded text-sm">
185
+ <i data-feather="key" class="mr-2 w-4 h-4"></i>
186
+ Keyframes
187
+ </button>
188
+ </div>
189
+ </div>
190
+ </div>
191
+
192
+ <!-- 3D Viewport -->
193
+ <div class="lg:col-span-3 p-4">
194
+ <div class="model-preview rounded-lg h-96 flex items-center justify-center">
195
+ <div class="text-center">
196
+ <i data-feather="box" class="w-16 h-16 mx-auto text-slate-500"></i>
197
+ <p class="text-slate-400 mt-2">3D Viewport - Entity Preview</p>
198
+ </div>
199
+ </div>
200
+
201
+ <div class="mt-4">
202
+ <div class="flex border-b border-slate-700">
203
+ <button class="px-4 py-2 text-sm font-medium tab-active">Model</button>
204
+ <button class="px-4 py-2 text-sm font-medium text-gray-400 hover:text-white">Textures</button>
205
+ <button class="px-4 py-2 text-sm font-medium text-gray-400 hover:text-white">Animations</button>
206
+ <button class="px-4 py-2 text-sm font-medium text-gray-400 hover:text-white">Sounds</button>
207
+ <button class="px-4 py-2 text-sm font-medium text-gray-400 hover:text-white">Export</button>
208
+ </div>
209
+
210
+ <div class="mt-4 grid grid-cols-1 md:grid-cols-2 gap-4">
211
+ <div>
212
+ <label class="block text-sm font-medium text-gray-300">Edition</label>
213
+ <select class="mt-1 block w-full pl-3 pr-10 py-2 text-base bg-slate-800 border border-slate-700 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
214
+ <option>Java Edition</option>
215
+ <option>Bedrock Edition</option>
216
+ <option>Cross-Platform</option>
217
+ </select>
218
+ </div>
219
+
220
+ <div>
221
+ <label class="block text-sm font-medium text-gray-300">Export Format</label>
222
+ <select class="mt-1 block w-full pl-3 pr-10 py-2 text-base bg-slate-800 border border-slate-700 focus:outline-none focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
223
+ <option>.mcaddon (Bedrock)</option>
224
+ <option>.jar (Java Mod)</option>
225
+ <option>.zip (Resource Pack)</option>
226
+ <option>.json (Model File)</option>
227
+ </select>
228
+ </div>
229
+ </div>
230
+
231
+ <div class="mt-6 flex justify-end">
232
+ <button class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-2 rounded-md text-sm font-medium">
233
+ Export Package
234
+ </button>
235
+ </div>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ </div>
241
+
242
+ <!-- Footer -->
243
+ <footer class="bg-slate-800/80 border-t border-slate-700">
244
+ <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
245
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
246
+ <div>
247
+ <h3 class="text-lg font-medium text-white">BlockCraft Studio</h3>
248
+ <p class="mt-4 text-sm text-gray-400">
249
+ The ultimate Minecraft modding tool for creators of all levels supporting both Java and Bedrock editions.
250
+ </p>
251
+ </div>
252
+
253
+ <div>
254
+ <h3 class="text-lg font-medium text-white">Resources</h3>
255
+ <ul class="mt-4 space-y-2">
256
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Documentation</a></li>
257
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Tutorials</a></li>
258
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">API Reference</a></li>
259
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Templates</a></li>
260
+ </ul>
261
+ </div>
262
+
263
+ <div>
264
+ <h3 class="text-lg font-medium text-white">Community</h3>
265
+ <ul class="mt-4 space-y-2">
266
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Discord</a></li>
267
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">GitHub</a></li>
268
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Twitter</a></li>
269
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">YouTube</a></li>
270
+ </ul>
271
+ </div>
272
+
273
+ <div>
274
+ <h3 class="text-lg font-medium text-white">Legal</h3>
275
+ <ul class="mt-4 space-y-2">
276
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Privacy Policy</a></li>
277
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Terms of Service</a></li>
278
+ <li><a href="#" class="text-sm text-gray-400 hover:text-white">Minecraft EULA</a></li>
279
+ </ul>
280
+ </div>
281
+ </div>
282
+ <div class="mt-12 pt-8 border-t border-slate-700">
283
+ <p class="text-sm text-gray-400 text-center">
284
+ &copy; 2023 BlockCraft Studio. Not affiliated with Mojang or Microsoft.
285
+ </p>
286
+ </div>
287
+ </div>
288
+ </footer>
289
+
290
+ <script>
291
+ // Initialize Vanta.js background
292
+ VANTA.GLOBE({
293
+ el: "#vanta-bg",
294
+ mouseControls: true,
295
+ touchControls: true,
296
+ gyroControls: false,
297
+ minHeight: 200.00,
298
+ minWidth: 200.00,
299
+ scale: 1.00,
300
+ scaleMobile: 1.00,
301
+ color: 0x3b82f6,
302
+ backgroundColor: 0x0f172a,
303
+ size: 1.00
304
+ });
305
+
306
+ // Initialize Feather Icons
307
+ feather.replace();
308
+ </script>
309
+ </body>
310
  </html>