Snidde commited on
Commit
6445d36
Β·
verified Β·
1 Parent(s): bb3ca49

script should be mainly handlebars just Astic scripting. do a web research

Browse files
Files changed (4) hide show
  1. README.md +9 -5
  2. as-scripting.html +371 -0
  3. index.html +315 -18
  4. lcd-editor.html +279 -0
README.md CHANGED
@@ -1,10 +1,14 @@
1
  ---
2
- title: Astic Script Cosmos Navigator
3
- emoji: πŸƒ
4
- colorFrom: blue
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: Astic Script Cosmos Navigator πŸš€
3
+ colorFrom: purple
4
+ colorTo: green
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
+
as-scripting.html ADDED
@@ -0,0 +1,371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>AS Scripting | Empyrion Reforged Nexus</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/vanta@latest/dist/vanta.net.min.js"></script>
12
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.js"></script>
13
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/mode/clike/clike.min.js"></script>
14
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/codemirror.min.css">
15
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.2/theme/dracula.min.css">
16
+ <style>
17
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Exo+2:wght@300;600&display=swap');
18
+ :root {
19
+ --space-blue: #0a192f;
20
+ --star-yellow: #f8e16c;
21
+ --nebula-purple: #7b2d8f;
22
+ --planet-teal: #6bd6e1;
23
+ --danger-red: #e63946;
24
+ }
25
+ body {
26
+ font-family: 'Exo 2', sans-serif;
27
+ overflow-x: hidden;
28
+ }
29
+ .title-font {
30
+ font-family: 'Orbitron', sans-serif;
31
+ }
32
+ .gradient-bg {
33
+ background: linear-gradient(135deg, var(--space-blue) 0%, #172a45 100%);
34
+ }
35
+ .active-tab {
36
+ border-bottom: 3px solid var(--planet-teal);
37
+ color: white;
38
+ }
39
+ .terminal-box {
40
+ background: rgba(10, 25, 47, 0.7);
41
+ border: 1px solid rgba(123, 45, 143, 0.5);
42
+ box-shadow: 0 0 15px rgba(123, 45, 143, 0.3);
43
+ }
44
+ .CodeMirror {
45
+ height: 400px !important;
46
+ font-family: 'Courier New', monospace;
47
+ font-size: 14px;
48
+ border-radius: 4px;
49
+ }
50
+ .function-chip {
51
+ background: rgba(123, 45, 143, 0.3);
52
+ border: 1px solid rgba(123, 45, 143, 0.5);
53
+ }
54
+ </style>
55
+ </head>
56
+ <body class="gradient-bg text-gray-200 min-h-screen">
57
+ <div id="vanta-bg"></div>
58
+
59
+ <div class="container mx-auto px-4 relative z-10">
60
+ <!-- Header -->
61
+ <header class="py-6 flex flex-col md:flex-row justify-between items-center border-b border-nebula-purple/30">
62
+ <div class="flex items-center space-x-3 mb-4 md:mb-0">
63
+ <i data-feather="globe" class="text-planet-teal w-10 h-10"></i>
64
+ <h1 class="title-font text-2xl md:text-3xl bg-clip-text text-transparent bg-gradient-to-r from-planet-teal to-star-yellow">
65
+ ASCRIBE SCRIPTING HELPER
66
+ </h1>
67
+ </div>
68
+ <nav class="flex space-x-1">
69
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
70
+ <i data-feather="compass" class="inline mr-2"></i> Navigator
71
+ </button>
72
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
73
+ <i data-feather="monitor" class="inline mr-2"></i> LCD Editor
74
+ </button>
75
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/50 hover:bg-space-blue/70 transition-colors duration-300 active-tab">
76
+ <i data-feather="code" class="inline mr-2"></i> AS Scripting
77
+ </button>
78
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
79
+ <i data-feather="book-open" class="inline mr-2"></i> Strategies
80
+ </button>
81
+ </nav>
82
+ </header>
83
+
84
+ <!-- Main Content -->
85
+ <main class="my-8 grid grid-cols-1 lg:grid-cols-3 gap-6">
86
+ <!-- Editor Panel -->
87
+ <div class="lg:col-span-2 terminal-box rounded-lg p-6">
88
+ <div class="flex justify-between items-center mb-6">
89
+ <h2 class="title-font text-xl text-planet-teal">
90
+ <i data-feather="terminal" class="inline mr-2"></i> Script Editor
91
+ </h2>
92
+ <div class="flex space-x-2">
93
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
94
+ <i data-feather="save" class="mr-1"></i> Save
95
+ </button>
96
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
97
+ <i data-feather="play" class="mr-1"></i> Run
98
+ </button>
99
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
100
+ <i data-feather="share-2" class="mr-1"></i> Export
101
+ </button>
102
+ </div>
103
+ </div>
104
+
105
+ <div class="mb-4">
106
+ <label class="block text-sm text-star-yellow mb-1">Script Name</label>
107
+ <input type="text" class="w-full bg-space-blue/70 border border-nebula-purple/50 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-planet-teal" placeholder="e.g. Auto Mining Script" value="Shield Management">
108
+ </div>
109
+
110
+ <textarea id="code-editor">// ASTIC Script Example for Empyrion
111
+ // Handlebars-style templating with ASTIC-specific extensions
112
+
113
+ {{!-- Main template with ship status --}}
114
+ {{#ship}}
115
+ {{#if isActive}}
116
+ <template name="ShipStatus">
117
+ <container name="MainPanel" size="100%,100%">
118
+ {{!-- Header with ship name --}}
119
+ <panel pos="0,0" size="100%,50" color="0,0,0,200">
120
+ <text pos="10,10" size="300,30" color="0,255,255" fontsize="24">
121
+ {{name}} - {{class}} Class
122
+ </text>
123
+ <text pos="320,10" size="200,30" color="{{#if (gte fuel 0.3)}}0,255,0{{else}}255,100,0{{/if}}" fontsize="20">
124
+ Fuel: {{percent fuel}}%
125
+ </text>
126
+ </panel>
127
+
128
+ {{!-- Status indicators --}}
129
+ <panel pos="10,60" size="300,200" color="20,20,20,200">
130
+ {{#each systems}}
131
+ <indicator
132
+ pos="10,{{multiply @index 30}}"
133
+ size="280,25"
134
+ label="{{name}}"
135
+ value="{{percent health}}"
136
+ colors="0,255,0:255,255,0:255,0,0"
137
+ thresholds="60,30"
138
+ />
139
+ {{/each}}
140
+ </panel>
141
+
142
+ {{!-- Navigation section --}}
143
+ {{#if navigation}}
144
+ <panel pos="320,60" size="400,150" color="20,20,20,200">
145
+ <text pos="10,10" size="380,30" color="255,255,0" fontsize="20">
146
+ Navigation: {{navigation.target}}
147
+ </text>
148
+ <progressbar
149
+ pos="10,50"
150
+ size="380,20"
151
+ value="{{navigation.progress}}"
152
+ color="0,150,255"
153
+ />
154
+ <text pos="10,80" size="380,20" color="200,200,200" fontsize="16">
155
+ Distance: {{formatDistance navigation.distance}}
156
+ </text>
157
+ {{#if navigation.warning}}
158
+ <text pos="10,110" size="380,20" color="255,100,0" fontsize="16">
159
+ Warning: {{navigation.warning}}
160
+ </text>
161
+ {{/if}}
162
+ </panel>
163
+ {{/if}}
164
+
165
+ {{!-- Custom actions --}}
166
+ <panel pos="10,270" size="710,80" color="20,20,20,200">
167
+ {{#each actions}}
168
+ <button
169
+ pos="{{multiply @index 140}},10"
170
+ size="130,60"
171
+ label="{{label}}"
172
+ command="{{command}}"
173
+ {{#unless enabled}}disabled="true"{{/unless}}
174
+ />
175
+ {{/each}}
176
+ </panel>
177
+ </container>
178
+ </template>
179
+ {{else}}
180
+ <text pos="50%,50%" anchor="0.5,0.5" color="255,0,0" fontsize="24">
181
+ SHIP OFFLINE
182
+ </text>
183
+ {{/if}}
184
+ {{/ship}}
185
+
186
+ {{!-- ASTIC Helper Functions --}}
187
+ {{#*inline "percent"}}
188
+ {{math (multiply (divide value 1) 100) 0}}
189
+ {{/inline}}
190
+
191
+ {{#*inline "formatDistance"}}
192
+ {{#if (gte value 1000000)}}
193
+ {{math (divide value 1000000) 2}} M km
194
+ {{else if (gte value 1000)}}
195
+ {{math (divide value 1000) 1}} K km
196
+ {{else}}
197
+ {{value}} km
198
+ {{/if}}
199
+ {{/inline}}</textarea>
200
+
201
+ <div class="mt-4 flex space-x-3">
202
+ <button class="px-4 py-2 rounded bg-nebula-purple hover:bg-nebula-purple/90 transition-colors flex items-center">
203
+ <i data-feather="check" class="mr-2"></i> Validate ASTIC
204
+ </button>
205
+ <button class="px-4 py-2 rounded bg-space-blue/70 hover:bg-space-blue/90 transition-colors flex items-center">
206
+ <i data-feather="eye" class="mr-2"></i> Preview LCD
207
+ </button>
208
+ <button class="px-4 py-2 rounded bg-space-blue/70 hover:bg-space-blue/90 transition-colors flex items-center">
209
+ <i data-feather="download" class="mr-2"></i> Export to BP
210
+ </button>
211
+ </div>
212
+
213
+ <div class="mt-6 terminal-box rounded p-4">
214
+ <div class="flex items-center text-sm text-star-yellow mb-2">
215
+ <i data-feather="activity" class="mr-2"></i> ASTIC Preview
216
+ </div>
217
+ <div class="bg-black/50 p-3 rounded font-mono text-xs h-32 overflow-y-auto">
218
+ <div class="text-green-400">> ASTIC template validated (23 elements)</div>
219
+ <div class="text-gray-400">> Found 1 template container: "ShipStatus"</div>
220
+ <div class="text-gray-400">> Detected 3 custom helpers: percent, formatDistance</div>
221
+ <div class="text-gray-400">> 4 conditional blocks processed</div>
222
+ <div class="text-planet-teal">> Ready for LCD deployment</div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+
227
+ <!-- Reference Panel -->
228
+ <div class="terminal-box rounded-lg p-6">
229
+ <div class="flex justify-between items-center mb-6">
230
+ <h2 class="title-font text-xl text-star-yellow">
231
+ <i data-feather="book" class="inline mr-2"></i> AScript Reference
232
+ </h2>
233
+ <div class="flex space-x-2">
234
+ <button class="icon-btn p-2 rounded bg-space-blue/50 hover:bg-space-blue/70">
235
+ <i data-feather="search"></i>
236
+ </button>
237
+ </div>
238
+ </div>
239
+
240
+ <div class="mb-6">
241
+ <h3 class="text-sm text-star-yellow mb-2">Common Functions</h3>
242
+ <div class="grid grid-cols-1 gap-2">
243
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
244
+ <div class="font-bold">GetBlock()</div>
245
+ <div class="text-xs text-gray-400">Retrieves a block by name</div>
246
+ </div>
247
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
248
+ <div class="font-bold">Echo()</div>
249
+ <div class="text-xs text-gray-400">Outputs text to console</div>
250
+ </div>
251
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
252
+ <div class="font-bold">SetValue()</div>
253
+ <div class="text-xs text-gray-400">Sets a property value</div>
254
+ </div>
255
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
256
+ <div class="font-bold">GetInventory()</div>
257
+ <div class="text-xs text-gray-400">Accesses inventory items</div>
258
+ </div>
259
+ </div>
260
+ </div>
261
+
262
+ <div class="mb-6">
263
+ <h3 class="text-sm text-star-yellow mb-2">ASTIC-Specific Helpers</h3>
264
+ <div class="grid grid-cols-1 gap-2">
265
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
266
+ <div class="font-bold">{{math}}</div>
267
+ <div class="text-xs text-gray-400">Perform calculations: {{math a '+' b}}</div>
268
+ </div>
269
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
270
+ <div class="font-bold">{{#if}}</div>
271
+ <div class="text-xs text-gray-400">Conditional blocks with comparisons</div>
272
+ </div>
273
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
274
+ <div class="font-bold">{{#each}}</div>
275
+ <div class="text-xs text-gray-400">Loop through arrays/objects</div>
276
+ </div>
277
+ <div class="function-chip px-3 py-2 rounded text-sm cursor-pointer hover:bg-nebula-purple/50">
278
+ <div class="font-bold">{{#*inline}}</div>
279
+ <div class="text-xs text-gray-400">Create reusable partial templates</div>
280
+ </div>
281
+ </div>
282
+ </div>
283
+
284
+ <div>
285
+ <h3 class="text-sm text-star-yellow mb-2">ASTIC Templates</h3>
286
+ <div class="space-y-2">
287
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
288
+ <span>Ship Status Dashboard</span>
289
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
290
+ </div>
291
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
292
+ <span>Cargo Management</span>
293
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
294
+ </div>
295
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
296
+ <span>Factory Control Panel</span>
297
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
298
+ </div>
299
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
300
+ <span>Navigation Waypoints</span>
301
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ </div>
306
+ </main>
307
+
308
+ <!-- Status Bar -->
309
+ <footer class="py-3 border-t border-nebula-purple/30 text-xs text-gray-400 flex justify-between items-center">
310
+ <div>Empyrion Reforged Nexus v1.0.0</div>
311
+ <div class="flex items-center space-x-4">
312
+ <div class="flex items-center space-x-1">
313
+ <div class="w-2 h-2 rounded-full bg-green-500 animate-pulse"></div>
314
+ <span>API Connected</span>
315
+ </div>
316
+ <div>Editing: Shield Management.as</div>
317
+ <button class="text-planet-teal hover:text-star-yellow transition-colors">
318
+ <i data-feather="refresh-cw" class="w-4 h-4"></i>
319
+ </button>
320
+ </div>
321
+ </footer>
322
+ </div>
323
+
324
+ <script>
325
+ // Initialize Vanta.js background
326
+ VANTA.NET({
327
+ el: "#vanta-bg",
328
+ mouseControls: true,
329
+ touchControls: true,
330
+ gyroControls: false,
331
+ minHeight: 200.00,
332
+ minWidth: 200.00,
333
+ scale: 1.00,
334
+ scaleMobile: 1.00,
335
+ color: 0x7b2d8f,
336
+ backgroundColor: 0xa192f,
337
+ points: 12.00,
338
+ maxDistance: 22.00,
339
+ spacing: 17.00
340
+ });
341
+ // Initialize CodeMirror for ASTIC syntax
342
+ document.addEventListener('DOMContentLoaded', () => {
343
+ feather.replace();
344
+
345
+ var editor = CodeMirror.fromTextArea(document.getElementById('code-editor'), {
346
+ mode: {
347
+ name: 'handlebars',
348
+ base: 'text/html',
349
+ helperLanguages: ['javascript']
350
+ },
351
+ theme: 'dracula',
352
+ lineNumbers: true,
353
+ indentUnit: 2,
354
+ tabSize: 2,
355
+ extraKeys: {
356
+ "Ctrl-Space": "autocomplete",
357
+ "'>'": function(cm) {
358
+ cm.replaceSelection('}}');
359
+ },
360
+ "'{'": function(cm) {
361
+ cm.replaceSelection('{{');
362
+ }
363
+ }
364
+ });
365
+
366
+ // Set editor size
367
+ editor.setSize('100%', '400px');
368
+ });
369
+ </script>
370
+ </body>
371
+ </html>
index.html CHANGED
@@ -1,19 +1,316 @@
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>Empyrion Reforged Nexus</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/vanta@latest/dist/vanta.net.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
13
+ <style>
14
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Exo+2:wght@300;600&display=swap');
15
+ :root {
16
+ --space-blue: #0a192f;
17
+ --star-yellow: #f8e16c;
18
+ --nebula-purple: #7b2d8f;
19
+ --planet-teal: #6bd6e1;
20
+ --danger-red: #e63946;
21
+ }
22
+ body {
23
+ font-family: 'Exo 2', sans-serif;
24
+ overflow-x: hidden;
25
+ }
26
+ .title-font {
27
+ font-family: 'Orbitron', sans-serif;
28
+ }
29
+ .gradient-bg {
30
+ background: linear-gradient(135deg, var(--space-blue) 0%, #172a45 100%);
31
+ }
32
+ .active-tab {
33
+ border-bottom: 3px solid var(--planet-teal);
34
+ color: white;
35
+ }
36
+ .terminal-box {
37
+ background: rgba(10, 25, 47, 0.7);
38
+ border: 1px solid rgba(123, 45, 143, 0.5);
39
+ box-shadow: 0 0 15px rgba(123, 45, 143, 0.3);
40
+ }
41
+ .glow-effect {
42
+ box-shadow: 0 0 10px rgba(107, 214, 225, 0.5);
43
+ }
44
+ .icon-btn {
45
+ transition: all 0.3s ease;
46
+ }
47
+ .icon-btn:hover {
48
+ transform: translateY(-3px);
49
+ color: var(--planet-teal);
50
+ }
51
+ </style>
52
+ </head>
53
+ <body class="gradient-bg text-gray-200 min-h-screen">
54
+ <div id="vanta-bg"></div>
55
+
56
+ <div class="container mx-auto px-4 relative z-10">
57
+ <!-- Header -->
58
+ <header class="py-6 flex flex-col md:flex-row justify-between items-center border-b border-nebula-purple/30">
59
+ <div class="flex items-center space-x-3 mb-4 md:mb-0">
60
+ <i data-feather="globe" class="text-planet-teal w-10 h-10"></i>
61
+ <h1 class="title-font text-2xl md:text-3xl bg-clip-text text-transparent bg-gradient-to-r from-planet-teal to-star-yellow">
62
+ EMPYRION REFORGED NEXUS
63
+ </h1>
64
+ </div>
65
+ <nav class="flex space-x-1">
66
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/50 hover:bg-space-blue/70 transition-colors duration-300 active-tab">
67
+ <i data-feather="compass" class="inline mr-2"></i> Navigator
68
+ </button>
69
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
70
+ <i data-feather="monitor" class="inline mr-2"></i> LCD Editor
71
+ </button>
72
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
73
+ <i data-feather="code" class="inline mr-2"></i> AS Scripting
74
+ </button>
75
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
76
+ <i data-feather="book-open" class="inline mr-2"></i> Strategies
77
+ </button>
78
+ </nav>
79
+ </header>
80
+
81
+ <!-- Main Content -->
82
+ <main class="my-8 grid grid-cols-1 lg:grid-cols-3 gap-6">
83
+ <!-- Navigator Panel -->
84
+ <div class="lg:col-span-2 terminal-box rounded-lg p-6">
85
+ <div class="flex justify-between items-center mb-6">
86
+ <h2 class="title-font text-xl text-planet-teal">
87
+ <i data-feather="compass" class="inline mr-2"></i> Galactic Navigator
88
+ </h2>
89
+ <div class="flex space-x-2">
90
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
91
+ <i data-feather="save"></i>
92
+ </button>
93
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
94
+ <i data-feather="share-2"></i>
95
+ </button>
96
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
97
+ <i data-feather="settings"></i>
98
+ </button>
99
+ </div>
100
+ </div>
101
+
102
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
103
+ <div>
104
+ <label class="block text-sm text-star-yellow mb-1">Current System</label>
105
+ <select class="w-full bg-space-blue/70 border border-nebula-purple/50 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-planet-teal">
106
+ <option>Alpha Centauri</option>
107
+ <option>Sirius</option>
108
+ <option>Vega</option>
109
+ <option>Procyon</option>
110
+ </select>
111
+ </div>
112
+ <div>
113
+ <label class="block text-sm text-star-yellow mb-1">Destination</label>
114
+ <select class="w-full bg-space-blue/70 border border-nebula-purple/50 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-planet-teal">
115
+ <option>Select Destination</option>
116
+ <option>Omicron Persei</option>
117
+ <option>Arcturus</option>
118
+ <option>Betelgeuse</option>
119
+ </select>
120
+ </div>
121
+ </div>
122
+
123
+ <div class="mt-6">
124
+ <div class="flex justify-between items-center mb-2">
125
+ <h3 class="text-star-yellow">Navigation Path</h3>
126
+ <span class="text-xs text-planet-teal">Estimated: 3.7 LY</span>
127
+ </div>
128
+ <div class="bg-space-blue/50 rounded p-4 glow-effect">
129
+ <div class="flex items-center space-x-2">
130
+ <div class="w-3 h-3 rounded-full bg-star-yellow"></div>
131
+ <span>Alpha Centauri (Current)</span>
132
+ </div>
133
+ <div class="ml-6 border-l border-nebula-purple/50 h-8"></div>
134
+ <div class="flex items-center space-x-2">
135
+ <div class="w-3 h-3 rounded-full bg-danger-red"></div>
136
+ <span>Warp through Borg Space (Danger!)</span>
137
+ </div>
138
+ <div class="ml-6 border-l border-nebula-purple/50 h-8"></div>
139
+ <div class="flex items-center space-x-2">
140
+ <div class="w-3 h-3 rounded-full bg-planet-teal"></div>
141
+ <span>Omicron Persei (Destination)</span>
142
+ </div>
143
+ </div>
144
+ </div>
145
+
146
+ <div class="mt-6 grid grid-cols-2 md:grid-cols-4 gap-4">
147
+ <button class="flex flex-col items-center p-3 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
148
+ <i data-feather="map" class="w-6 h-6 mb-1 text-star-yellow"></i>
149
+ <span class="text-xs">Sector Map</span>
150
+ </button>
151
+ <button class="flex flex-col items-center p-3 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
152
+ <i data-feather="alert-triangle" class="w-6 h-6 mb-1 text-danger-red"></i>
153
+ <span class="text-xs">Danger Zones</span>
154
+ </button>
155
+ <button class="flex flex-col items-center p-3 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
156
+ <i data-feather="anchor" class="w-6 h-6 mb-1 text-planet-teal"></i>
157
+ <span class="text-xs">POI Finder</span>
158
+ </button>
159
+ <button class="flex flex-col items-center p-3 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
160
+ <i data-feather="database" class="w-6 h-6 mb-1 text-nebula-purple"></i>
161
+ <span class="text-xs">Resources</span>
162
+ </button>
163
+ </div>
164
+ </div>
165
+
166
+ <!-- Quick Access Panel -->
167
+ <div class="terminal-box rounded-lg p-6">
168
+ <h2 class="title-font text-xl text-star-yellow mb-6">
169
+ <i data-feather="zap" class="inline mr-2"></i> Quick Access
170
+ </h2>
171
+
172
+ <div class="space-y-4">
173
+ <div class="p-4 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors cursor-pointer glow-effect">
174
+ <div class="flex items-center space-x-3">
175
+ <div class="p-2 rounded-full bg-nebula-purple/30">
176
+ <i data-feather="clock" class="text-nebula-purple"></i>
177
+ </div>
178
+ <div>
179
+ <h3 class="font-medium">Recent Coordinates</h3>
180
+ <p class="text-sm text-gray-400">Last visited locations</p>
181
+ </div>
182
+ </div>
183
+ </div>
184
+
185
+ <div class="p-4 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors cursor-pointer">
186
+ <div class="flex items-center space-x-3">
187
+ <div class="p-2 rounded-full bg-planet-teal/30">
188
+ <i data-feather="box" class="text-planet-teal"></i>
189
+ </div>
190
+ <div>
191
+ <h3 class="font-medium">Blueprint Library</h3>
192
+ <p class="text-sm text-gray-400">Your saved designs</p>
193
+ </div>
194
+ </div>
195
+ </div>
196
+
197
+ <div class="p-4 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors cursor-pointer">
198
+ <div class="flex items-center space-x-3">
199
+ <div class="p-2 rounded-full bg-star-yellow/30">
200
+ <i data-feather="trending-up" class="text-star-yellow"></i>
201
+ </div>
202
+ <div>
203
+ <h3 class="font-medium">RE Meta Guide</h3>
204
+ <p class="text-sm text-gray-400">Current strategies</p>
205
+ </div>
206
+ </div>
207
+ </div>
208
+
209
+ <div class="p-4 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors cursor-pointer">
210
+ <div class="flex items-center space-x-3">
211
+ <div class="p-2 rounded-full bg-danger-red/30">
212
+ <i data-feather="alert-octagon" class="text-danger-red"></i>
213
+ </div>
214
+ <div>
215
+ <h3 class="font-medium">Known Issues</h3>
216
+ <p class="text-sm text-gray-400">Update 1.9.5 issues</p>
217
+ </div>
218
+ </div>
219
+ </div>
220
+ </div>
221
+
222
+ <div class="mt-8">
223
+ <h3 class="text-sm text-star-yellow mb-3">Quick Commands</h3>
224
+ <div class="space-y-2">
225
+ <div class="flex items-center justify-between text-xs bg-space-blue/70 px-3 py-2 rounded">
226
+ <span>/waypoint add 4567 1234</span>
227
+ <i data-feather="copy" class="w-4 h-4 text-gray-400 hover:text-planet-teal cursor-pointer"></i>
228
+ </div>
229
+ <div class="flex items-center justify-between text-xs bg-space-blue/70 px-3 py-2 rounded">
230
+ <span>/trade route Vega-Procyon</span>
231
+ <i data-feather="copy" class="w-4 h-4 text-gray-400 hover:text-planet-teal cursor-pointer"></i>
232
+ </div>
233
+ <div class="flex items-center justify-between text-xs bg-space-blue/70 px-3 py-2 rounded">
234
+ <span>/resource find Pentaxid</span>
235
+ <i data-feather="copy" class="w-4 h-4 text-gray-400 hover:text-planet-teal cursor-pointer"></i>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ </main>
241
+
242
+ <!-- Status Bar -->
243
+ <footer class="py-3 border-t border-nebula-purple/30 text-xs text-gray-400 flex justify-between items-center">
244
+ <div>Empyrion Reforged Nexus v1.0.0</div>
245
+ <div class="flex items-center space-x-4">
246
+ <div class="flex items-center space-x-1">
247
+ <div class="w-2 h-2 rounded-full bg-green-500 animate-pulse"></div>
248
+ <span>API Connected</span>
249
+ </div>
250
+ <div>Last Sync: Just now</div>
251
+ <button class="text-planet-teal hover:text-star-yellow transition-colors">
252
+ <i data-feather="refresh-cw" class="w-4 h-4"></i>
253
+ </button>
254
+ </div>
255
+ </footer>
256
+ </div>
257
+
258
+ <script>
259
+ // Initialize Vanta.js background
260
+ VANTA.NET({
261
+ el: "#vanta-bg",
262
+ mouseControls: true,
263
+ touchControls: true,
264
+ gyroControls: false,
265
+ minHeight: 200.00,
266
+ minWidth: 200.00,
267
+ scale: 1.00,
268
+ scaleMobile: 1.00,
269
+ color: 0x7b2d8f,
270
+ backgroundColor: 0xa192f,
271
+ points: 12.00,
272
+ maxDistance: 22.00,
273
+ spacing: 17.00
274
+ });
275
+
276
+ // Tab switching functionality
277
+ const tabs = document.querySelectorAll('nav button');
278
+ tabs.forEach(tab => {
279
+ tab.addEventListener('click', () => {
280
+ tabs.forEach(t => t.classList.remove('active-tab'));
281
+ tab.classList.add('active-tab');
282
+ // Here would be logic to switch between different panels
283
+ });
284
+ });
285
+
286
+ // Initialize feather icons
287
+ document.addEventListener('DOMContentLoaded', () => {
288
+ feather.replace();
289
+
290
+ // Simple animation for buttons
291
+ anime({
292
+ targets: '.icon-btn',
293
+ scale: [1, 1.05],
294
+ duration: 1000,
295
+ direction: 'alternate',
296
+ loop: true,
297
+ easing: 'easeInOutSine',
298
+ delay: anime.stagger(100)
299
+ });
300
+
301
+ // Glow effect for main panel
302
+ anime({
303
+ targets: '.glow-effect',
304
+ boxShadow: [
305
+ '0 0 10px rgba(107, 214, 225, 0.5)',
306
+ '0 0 20px rgba(107, 214, 225, 0.8)',
307
+ '0 0 10px rgba(107, 214, 225, 0.5)'
308
+ ],
309
+ duration: 3000,
310
+ loop: true,
311
+ easing: 'easeInOutSine'
312
+ });
313
+ });
314
+ </script>
315
+ </body>
316
  </html>
lcd-editor.html ADDED
@@ -0,0 +1,279 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>LCD Editor | Empyrion Reforged Nexus</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/vanta@latest/dist/vanta.net.min.js"></script>
12
+ <style>
13
+ @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Exo+2:wght@300;600&display=swap');
14
+ :root {
15
+ --space-blue: #0a192f;
16
+ --star-yellow: #f8e16c;
17
+ --nebula-purple: #7b2d8f;
18
+ --planet-teal: #6bd6e1;
19
+ --danger-red: #e63946;
20
+ }
21
+ body {
22
+ font-family: 'Exo 2', sans-serif;
23
+ overflow-x: hidden;
24
+ }
25
+ .title-font {
26
+ font-family: 'Orbitron', sans-serif;
27
+ }
28
+ .gradient-bg {
29
+ background: linear-gradient(135deg, var(--space-blue) 0%, #172a45 100%);
30
+ }
31
+ .active-tab {
32
+ border-bottom: 3px solid var(--planet-teal);
33
+ color: white;
34
+ }
35
+ .terminal-box {
36
+ background: rgba(10, 25, 47, 0.7);
37
+ border: 1px solid rgba(123, 45, 143, 0.5);
38
+ box-shadow: 0 0 15px rgba(123, 45, 143, 0.3);
39
+ }
40
+ .glow-effect {
41
+ box-shadow: 0 0 10px rgba(107, 214, 225, 0.5);
42
+ }
43
+ .code-editor {
44
+ font-family: 'Courier New', monospace;
45
+ background: rgba(0, 0, 0, 0.3);
46
+ border-left: 3px solid var(--nebula-purple);
47
+ }
48
+ .preview-screen {
49
+ background: #000;
50
+ border: 2px solid var(--planet-teal);
51
+ box-shadow: inset 0 0 20px rgba(107, 214, 225, 0.3);
52
+ }
53
+ </style>
54
+ </head>
55
+ <body class="gradient-bg text-gray-200 min-h-screen">
56
+ <div id="vanta-bg"></div>
57
+
58
+ <div class="container mx-auto px-4 relative z-10">
59
+ <!-- Header -->
60
+ <header class="py-6 flex flex-col md:flex-row justify-between items-center border-b border-nebula-purple/30">
61
+ <div class="flex items-center space-x-3 mb-4 md:mb-0">
62
+ <i data-feather="globe" class="text-planet-teal w-10 h-10"></i>
63
+ <h1 class="title-font text-2xl md:text-3xl bg-clip-text text-transparent bg-gradient-to-r from-planet-teal to-star-yellow">
64
+ EMPYRION LCD EDITOR
65
+ </h1>
66
+ </div>
67
+ <nav class="flex space-x-1">
68
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
69
+ <i data-feather="compass" class="inline mr-2"></i> Navigator
70
+ </button>
71
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/50 hover:bg-space-blue/70 transition-colors duration-300 active-tab">
72
+ <i data-feather="monitor" class="inline mr-2"></i> LCD Editor
73
+ </button>
74
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
75
+ <i data-feather="code" class="inline mr-2"></i> AS Scripting
76
+ </button>
77
+ <button class="px-4 py-2 rounded-t-lg bg-space-blue/30 hover:bg-space-blue/50 transition-colors duration-300">
78
+ <i data-feather="book-open" class="inline mr-2"></i> Strategies
79
+ </button>
80
+ </nav>
81
+ </header>
82
+
83
+ <!-- Main Content -->
84
+ <main class="my-8 grid grid-cols-1 lg:grid-cols-3 gap-6">
85
+ <!-- Editor Panel -->
86
+ <div class="lg:col-span-2 terminal-box rounded-lg p-6">
87
+ <div class="flex justify-between items-center mb-6">
88
+ <h2 class="title-font text-xl text-planet-teal">
89
+ <i data-feather="edit-3" class="inline mr-2"></i> LCD Screen Builder
90
+ </h2>
91
+ <div class="flex space-x-2">
92
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
93
+ <i data-feather="save"></i> Save
94
+ </button>
95
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
96
+ <i data-feather="folder"></i> Templates
97
+ </button>
98
+ <button class="icon-btn px-3 py-1 rounded bg-nebula-purple/30 hover:bg-nebula-purple/50">
99
+ <i data-feather="share-2"></i> Export
100
+ </button>
101
+ </div>
102
+ </div>
103
+
104
+ <div class="mb-4">
105
+ <label class="block text-sm text-star-yellow mb-1">LCD Type</label>
106
+ <div class="flex space-x-4">
107
+ <button class="px-4 py-2 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
108
+ <i data-feather="monitor" class="inline mr-2"></i> Standard
109
+ </button>
110
+ <button class="px-4 py-2 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
111
+ <i data-feather="cpu" class="inline mr-2"></i> Cockpit
112
+ </button>
113
+ <button class="px-4 py-2 rounded bg-space-blue/50 hover:bg-space-blue/70 transition-colors">
114
+ <i data-feather="tablet" class="inline mr-2"></i> HUD
115
+ </button>
116
+ </div>
117
+ </div>
118
+
119
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
120
+ <div>
121
+ <label class="block text-sm text-star-yellow mb-1">Screen Name</label>
122
+ <input type="text" class="w-full bg-space-blue/70 border border-nebula-purple/50 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-planet-teal" placeholder="e.g. Status Panel" value="Ship Status LCD">
123
+ </div>
124
+ <div>
125
+ <label class="block text-sm text-star-yellow mb-1">Resolution</label>
126
+ <select class="w-full bg-space-blue/70 border border-nebula-purple/50 rounded px-3 py-2 focus:outline-none focus:ring-1 focus:ring-planet-teal">
127
+ <option>512x512 (Standard)</option>
128
+ <option>1024x512 (Wide)</option>
129
+ <option>256x1024 (Tall)</option>
130
+ <option>Custom...</option>
131
+ </select>
132
+ </div>
133
+ </div>
134
+
135
+ <div class="mb-4">
136
+ <label class="block text-sm text-star-yellow mb-1">LCD Content</label>
137
+ <div class="code-editor p-4 rounded text-sm h-64 overflow-auto">
138
+ <div class="text-planet-teal"># LCD Configuration</div>
139
+ <div class="text-gray-400">Name: <span class="text-white">"Ship Status LCD"</span></div>
140
+ <div class="text-gray-400">Size: <span class="text-white">512,512</span></div>
141
+ <div class="text-gray-400">Background: <span class="text-white">#0a192f</span></div>
142
+ <br>
143
+ <div class="text-planet-teal"># Content Blocks</div>
144
+ <div class="text-gray-400">[Header]</div>
145
+ <div class="text-white ml-4">Text: "VESSEL STATUS"</div>
146
+ <div class="text-white ml-4">Position: 50,30</div>
147
+ <div class="text-white ml-4">Color: #f8e16c</div>
148
+ <div class="text-white ml-4">Size: 24</div>
149
+ <br>
150
+ <div class="text-gray-400">[Fuel Gauge]</div>
151
+ <div class="text-white ml-4">Type: progress_bar</div>
152
+ <div class="text-white ml-4">Position: 50,80</div>
153
+ <div class="text-white ml-4">Size: 400,20</div>
154
+ <div class="text-white ml-4">Variable: fuel_level</div>
155
+ <div class="text-white ml-4">Color: #6bd6e1</div>
156
+ </div>
157
+ </div>
158
+
159
+ <div class="flex space-x-3">
160
+ <button class="px-4 py-2 rounded bg-nebula-purple hover:bg-nebula-purple/90 transition-colors flex items-center">
161
+ <i data-feather="plus" class="mr-2"></i> Add Element
162
+ </button>
163
+ <button class="px-4 py-2 rounded bg-space-blue/70 hover:bg-space-blue/90 transition-colors flex items-center">
164
+ <i data-feather="image" class="mr-2"></i> Insert Image
165
+ </button>
166
+ <button class="px-4 py-2 rounded bg-space-blue/70 hover:bg-space-blue/90 transition-colors flex items-center">
167
+ <i data-feather="code" class="mr-2"></i> Script Block
168
+ </button>
169
+ </div>
170
+ </div>
171
+
172
+ <!-- Preview Panel -->
173
+ <div class="terminal-box rounded-lg p-6">
174
+ <div class="flex justify-between items-center mb-6">
175
+ <h2 class="title-font text-xl text-star-yellow">
176
+ <i data-feather="eye" class="inline mr-2"></i> Live Preview
177
+ </h2>
178
+ <div class="flex space-x-2">
179
+ <button class="icon-btn p-2 rounded bg-space-blue/50 hover:bg-space-blue/70">
180
+ <i data-feather="maximize"></i>
181
+ </button>
182
+ <button class="icon-btn p-2 rounded bg-space-blue/50 hover:bg-space-blue/70">
183
+ <i data-feather="refresh-cw"></i>
184
+ </button>
185
+ </div>
186
+ </div>
187
+
188
+ <div class="preview-screen mx-auto p-4 rounded" style="width: 256px; height: 256px;">
189
+ <div class="text-star-yellow text-center text-lg font-bold mb-4">VESSEL STATUS</div>
190
+ <div class="mb-2 text-sm">Fuel: 87%</div>
191
+ <div class="h-3 w-full bg-space-blue/50 rounded overflow-hidden mb-4">
192
+ <div class="h-full bg-planet-teal" style="width: 87%;"></div>
193
+ </div>
194
+ <div class="mb-2 text-sm">Hull: 100%</div>
195
+ <div class="h-3 w-full bg-space-blue/50 rounded overflow-hidden mb-4">
196
+ <div class="h-full bg-green-500" style="width: 100%;"></div>
197
+ </div>
198
+ <div class="mb-2 text-sm">Shields: 64%</div>
199
+ <div class="h-3 w-full bg-space-blue/50 rounded overflow-hidden mb-4">
200
+ <div class="h-full bg-nebula-purple" style="width: 64%;"></div>
201
+ </div>
202
+ <div class="text-xs text-gray-400 mt-6">Last updated: 23:42:15</div>
203
+ </div>
204
+
205
+ <div class="mt-6">
206
+ <h3 class="text-sm text-star-yellow mb-2">Available Variables</h3>
207
+ <div class="grid grid-cols-2 gap-2 text-xs">
208
+ <div class="bg-space-blue/70 px-2 py-1 rounded">fuel_level</div>
209
+ <div class="bg-space-blue/70 px-2 py-1 rounded">hull_integrity</div>
210
+ <div class="bg-space-blue/70 px-2 py-1 rounded">shield_strength</div>
211
+ <div class="bg-space-blue/70 px-2 py-1 rounded">energy_level</div>
212
+ <div class="bg-space-blue/70 px-2 py-1 rounded">oxygen_level</div>
213
+ <div class="bg-space-blue/70 px-2 py-1 rounded">current_speed</div>
214
+ <div class="bg-space-blue/70 px-2 py-1 rounded">target_distance</div>
215
+ <div class="bg-space-blue/70 px-2 py-1 rounded">system_time</div>
216
+ </div>
217
+ </div>
218
+
219
+ <div class="mt-6">
220
+ <h3 class="text-sm text-star-yellow mb-2">Recent Designs</h3>
221
+ <div class="space-y-2">
222
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
223
+ <span>Ship Dashboard</span>
224
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
225
+ </div>
226
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
227
+ <span>Base Status</span>
228
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
229
+ </div>
230
+ <div class="flex items-center justify-between bg-space-blue/50 px-3 py-2 rounded text-sm cursor-pointer hover:bg-space-blue/70">
231
+ <span>Cargo Monitor</span>
232
+ <i data-feather="chevron-right" class="w-4 h-4"></i>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ </div>
237
+ </main>
238
+
239
+ <!-- Status Bar -->
240
+ <footer class="py-3 border-t border-nebula-purple/30 text-xs text-gray-400 flex justify-between items-center">
241
+ <div>Empyrion Reforged Nexus v1.0.0</div>
242
+ <div class="flex items-center space-x-4">
243
+ <div class="flex items-center space-x-1">
244
+ <div class="w-2 h-2 rounded-full bg-green-500 animate-pulse"></div>
245
+ <span>API Connected</span>
246
+ </div>
247
+ <div>Editing: Ship Status LCD</div>
248
+ <button class="text-planet-teal hover:text-star-yellow transition-colors">
249
+ <i data-feather="refresh-cw" class="w-4 h-4"></i>
250
+ </button>
251
+ </div>
252
+ </footer>
253
+ </div>
254
+
255
+ <script>
256
+ // Initialize Vanta.js background
257
+ VANTA.NET({
258
+ el: "#vanta-bg",
259
+ mouseControls: true,
260
+ touchControls: true,
261
+ gyroControls: false,
262
+ minHeight: 200.00,
263
+ minWidth: 200.00,
264
+ scale: 1.00,
265
+ scaleMobile: 1.00,
266
+ color: 0x7b2d8f,
267
+ backgroundColor: 0xa192f,
268
+ points: 12.00,
269
+ maxDistance: 22.00,
270
+ spacing: 17.00
271
+ });
272
+
273
+ // Initialize feather icons
274
+ document.addEventListener('DOMContentLoaded', () => {
275
+ feather.replace();
276
+ });
277
+ </script>
278
+ </body>
279
+ </html>