-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
401 lines (346 loc) Β· 12.9 KB
/
index.html
File metadata and controls
401 lines (346 loc) Β· 12.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LUXBIN Light Language - NicheAI</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
color: #e0e0e0;
margin: 0;
padding: 20px;
min-height: 100vh;
}
.container {
max-width: 1200px;
margin: 0 auto;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.logo {
font-size: 3em;
background: linear-gradient(45deg, #ff6b35, #f7931e);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 10px;
}
.subtitle {
color: #b0b0b0;
font-size: 1.2em;
}
.demo-section {
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
padding: 25px;
margin-bottom: 30px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.input-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
color: #ff6b35;
font-weight: bold;
}
textarea, input {
width: 100%;
padding: 12px;
background: rgba(0, 0, 0, 0.3);
border: 2px solid rgba(255, 107, 53, 0.3);
border-radius: 8px;
color: #e0e0e0;
font-size: 16px;
resize: vertical;
}
textarea:focus, input:focus {
outline: none;
border-color: #ff6b35;
box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}
.light-show {
background: rgba(0, 0, 0, 0.8);
border-radius: 10px;
padding: 20px;
margin-top: 20px;
min-height: 200px;
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
justify-content: center;
}
.light-beam {
width: 20px;
height: 60px;
border-radius: 10px;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
}
.light-beam:hover {
transform: scale(1.1);
}
.wavelength-info {
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
font-size: 10px;
color: #888;
white-space: nowrap;
}
.translation-chain {
display: flex;
justify-content: space-between;
align-items: center;
margin: 20px 0;
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}
.chain-step {
text-align: center;
flex: 1;
}
.chain-arrow {
font-size: 2em;
color: #ff6b35;
margin: 0 10px;
}
.step-title {
font-weight: bold;
color: #ff6b35;
margin-bottom: 5px;
}
.step-content {
background: rgba(0, 0, 0, 0.3);
padding: 10px;
border-radius: 5px;
font-family: monospace;
word-break: break-all;
}
.physics-note {
background: rgba(255, 255, 255, 0.05);
border-left: 4px solid #ff6b35;
padding: 15px;
margin: 20px 0;
border-radius: 5px;
}
.physics-note h3 {
color: #ff6b35;
margin-top: 0;
}
.btn {
background: linear-gradient(45deg, #ff6b35, #f7931e);
border: none;
color: white;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
transition: all 0.3s ease;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}
.company-info {
text-align: center;
margin-top: 40px;
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}
.company-info h3 {
color: #ff6b35;
}
.stats {
display: flex;
justify-content: space-around;
margin: 20px 0;
flex-wrap: wrap;
}
.stat {
text-align: center;
margin: 10px;
}
.stat-number {
font-size: 2em;
font-weight: bold;
color: #ff6b35;
}
.stat-label {
color: #b0b0b0;
font-size: 0.9em;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo">π LUXBIN</div>
<div class="subtitle">Universal Photonic Communication by NicheAI</div>
</div>
<div class="stats">
<div class="stat">
<div class="stat-number">99%</div>
<div class="stat-label">Energy Reduction</div>
</div>
<div class="stat">
<div class="stat-number">77</div>
<div class="stat-label">Character Alphabet</div>
</div>
<div class="stat">
<div class="stat-number">6-7</div>
<div class="stat-label">Bits per Character</div>
</div>
<div class="stat">
<div class="stat-number">β</div>
<div class="stat-label">Quantum Ready</div>
</div>
</div>
<div class="demo-section">
<h2>π LUXBIN Light Language Translator</h2>
<p>Experience the future of communication: Transform natural language into photonic light shows that computers can understand.</p>
<div class="input-group">
<label for="natural-language">Enter Natural Language:</label>
<textarea id="natural-language" rows="3" placeholder="Type your message here... e.g., 'Hello quantum world!'"></textarea>
</div>
<button class="btn" onclick="translateToLuxbin()">β¨ Generate LUXBIN Light Show</button>
<div class="physics-note">
<h3>π¬ Physics of Translation</h3>
<p><strong>Order:</strong> Natural Language β LUXBIN Characters β Binary Code β Light Wavelengths</p>
<p><strong>Why this order?</strong> We preserve semantic meaning through LUXBIN characters, encode them efficiently as binary, then map to physical light wavelengths that photonic systems can detect and process.</p>
</div>
<div class="translation-chain" id="translation-chain" style="display: none;">
<div class="chain-step">
<div class="step-title">Natural Language</div>
<div class="step-content" id="step-1"></div>
</div>
<div class="chain-arrow">β</div>
<div class="chain-step">
<div class="step-title">LUXBIN Characters</div>
<div class="step-content" id="step-2"></div>
</div>
<div class="chain-arrow">β</div>
<div class="chain-step">
<div class="step-title">Binary Code</div>
<div class="step-content" id="step-3"></div>
</div>
<div class="chain-arrow">β</div>
<div class="chain-step">
<div class="step-title">Light Wavelengths</div>
<div class="step-content" id="step-4"></div>
</div>
</div>
<div class="light-show" id="light-show" style="display: none;">
<div style="color: #888; font-style: italic;">Your LUXBIN light show will appear here...</div>
</div>
</div>
<div class="company-info">
<h3>π’ About NicheAI Innovations</h3>
<p>Pioneering sustainable computing through diamond quantum technology and photonic communication systems.</p>
<p><a href="https://github.com/nicheai" style="color: #ff6b35;">GitHub</a> | <a href="mailto:contact@nicheai.com" style="color: #ff6b35;">Contact</a></p>
</div>
</div>
<script>
// LUXBIN Alphabet
const LUXBIN_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,!?;:-()[]{}@#$%^&*+=_~`<>\"'|\\";
function translateToLuxbin() {
const input = document.getElementById('natural-language').value.trim();
if (!input) {
alert('Please enter some text to translate!');
return;
}
// Step 1: Natural Language (input as-is)
document.getElementById('step-1').textContent = input;
// Step 2: Convert to LUXBIN characters
const luxbinText = naturalLanguageToLuxbin(input);
document.getElementById('step-2').textContent = luxbinText;
// Step 3: Convert to binary
const binary = luxbinToBinary(luxbinText);
document.getElementById('step-3').textContent = binary;
// Step 4: Create light show
const wavelengths = binaryToWavelengths(binary);
document.getElementById('step-4').textContent = wavelengths.map(w => w.toFixed(1) + 'nm').join(', ');
// Show translation chain
document.getElementById('translation-chain').style.display = 'flex';
// Generate visual light show
generateLightShow(wavelengths);
// Show light show container
document.getElementById('light-show').style.display = 'flex';
}
function naturalLanguageToLuxbin(text) {
// Simple conversion to uppercase LUXBIN characters
return text.toUpperCase().replace(/[^A-Z0-9 .,!?;:-()[\]{}@#$%^&*+=_~`<>"'\\|]/g, '');
}
function luxbinToBinary(luxbinText) {
let binary = '';
for (let char of luxbinText) {
if (LUXBIN_ALPHABET.includes(char)) {
const index = LUXBIN_ALPHABET.indexOf(char);
binary += index.toString(2).padStart(6, '0');
}
}
return binary;
}
function binaryToWavelengths(binary) {
const wavelengths = [];
// Convert binary chunks to wavelength approximations
for (let i = 0; i < binary.length; i += 6) {
const chunk = binary.substr(i, 6);
if (chunk.length === 6) {
const value = parseInt(chunk, 2);
// Map 0-63 range to visible spectrum (400-700nm)
const wavelength = 400 + (value / 63) * 300;
wavelengths.push(Math.round(wavelength * 10) / 10);
}
}
return wavelengths;
}
function generateLightShow(wavelengths) {
const lightShow = document.getElementById('light-show');
lightShow.innerHTML = '';
wavelengths.forEach((wavelength, index) => {
// Create HSL color from wavelength
const hue = ((wavelength - 400) / 300) * 360;
const hslColor = `hsl(${hue.toFixed(0)}, 70%, 60%)`;
const lightBeam = document.createElement('div');
lightBeam.className = 'light-beam';
lightBeam.style.backgroundColor = hslColor;
lightBeam.style.boxShadow = `0 0 20px ${hslColor}`;
const info = document.createElement('div');
info.className = 'wavelength-info';
info.textContent = `${wavelength}nm`;
lightBeam.appendChild(info);
lightShow.appendChild(lightBeam);
});
// Add some animation
const beams = lightShow.querySelectorAll('.light-beam');
beams.forEach((beam, index) => {
setTimeout(() => {
beam.style.animation = 'pulse 2s infinite';
}, index * 100);
});
}
// Add CSS animation
const style = document.createElement('style');
style.textContent = `
@keyframes pulse {
0% { opacity: 0.7; transform: scale(1); }
50% { opacity: 1; transform: scale(1.05); }
100% { opacity: 0.7; transform: scale(1); }
}
`;
document.head.appendChild(style);
</script>
</body>
</html>