Update templates/index.html
Browse files- templates/index.html +103 -37
templates/index.html
CHANGED
@@ -18,20 +18,24 @@
|
|
18 |
display: flex;
|
19 |
height: 100%;
|
20 |
position: relative;
|
21 |
-
z-index:
|
22 |
}
|
23 |
.terminal {
|
24 |
flex: 1;
|
25 |
padding: 20px;
|
26 |
overflow-y: auto;
|
27 |
box-sizing: border-box;
|
|
|
|
|
|
|
28 |
}
|
29 |
.file-explorer {
|
30 |
width: 200px;
|
31 |
-
background-color:
|
32 |
padding: 10px;
|
33 |
overflow-y: auto;
|
34 |
display: none;
|
|
|
35 |
}
|
36 |
#output {
|
37 |
margin-bottom: 20px;
|
@@ -56,10 +60,11 @@
|
|
56 |
.file-item {
|
57 |
cursor: pointer;
|
58 |
padding: 5px;
|
59 |
-
transition: background-color 0.3s;
|
60 |
}
|
61 |
.file-item:hover {
|
62 |
-
background-color: #
|
|
|
63 |
}
|
64 |
#file-editor {
|
65 |
display: none;
|
@@ -69,16 +74,16 @@
|
|
69 |
transform: translate(-50%, -50%);
|
70 |
width: 80%;
|
71 |
height: 80%;
|
72 |
-
background-color:
|
73 |
border: 1px solid #0f0;
|
74 |
padding: 20px;
|
75 |
-
box-shadow: 0 0
|
76 |
z-index: 1000;
|
77 |
}
|
78 |
#editor-textarea {
|
79 |
width: 100%;
|
80 |
height: calc(100% - 40px);
|
81 |
-
background-color:
|
82 |
color: #0f0;
|
83 |
border: none;
|
84 |
resize: none;
|
@@ -92,6 +97,11 @@
|
|
92 |
color: #000;
|
93 |
border: none;
|
94 |
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
95 |
}
|
96 |
.ai-executed {
|
97 |
color: #ff00ff;
|
@@ -136,7 +146,7 @@
|
|
136 |
width: 100%;
|
137 |
height: 100%;
|
138 |
z-index: 0;
|
139 |
-
opacity: 0.
|
140 |
pointer-events: none;
|
141 |
}
|
142 |
@keyframes codeFlow {
|
@@ -149,21 +159,15 @@
|
|
149 |
color: #0f0;
|
150 |
white-space: nowrap;
|
151 |
animation: codeFlow 20s linear infinite;
|
|
|
152 |
}
|
153 |
-
#ai-text
|
154 |
position: fixed;
|
155 |
top: 50%;
|
156 |
left: 50%;
|
157 |
transform: translate(-50%, -50%);
|
158 |
font-size: 200px;
|
159 |
font-weight: bold;
|
160 |
-
z-index: 0;
|
161 |
-
opacity: 0.3;
|
162 |
-
pointer-events: none;
|
163 |
-
overflow: hidden;
|
164 |
-
}
|
165 |
-
#ai-text {
|
166 |
-
position: relative;
|
167 |
color: transparent;
|
168 |
background: repeating-linear-gradient(
|
169 |
0deg,
|
@@ -177,25 +181,17 @@
|
|
177 |
-webkit-background-clip: text;
|
178 |
background-clip: text;
|
179 |
animation: gradientFlow 10s linear infinite;
|
|
|
|
|
|
|
180 |
}
|
181 |
@keyframes gradientFlow {
|
182 |
0% { background-position: 0 0; }
|
183 |
100% { background-position: 0 -200%; }
|
184 |
}
|
185 |
-
.ai-code-text {
|
186 |
-
position: absolute;
|
187 |
-
font-size: 16px;
|
188 |
-
color: #0f0;
|
189 |
-
white-space: nowrap;
|
190 |
-
animation: aiCodeFlow 15s linear infinite;
|
191 |
-
}
|
192 |
-
@keyframes aiCodeFlow {
|
193 |
-
0% { transform: translateY(-100%); }
|
194 |
-
100% { transform: translateY(100%); }
|
195 |
-
}
|
196 |
#ai-sleep {
|
197 |
position: fixed;
|
198 |
-
top:
|
199 |
left: 50%;
|
200 |
transform: translateX(-50%);
|
201 |
font-size: 48px;
|
@@ -215,13 +211,59 @@
|
|
215 |
#ai-sleep span:nth-child(2) { animation-delay: 0.2s; }
|
216 |
#ai-sleep span:nth-child(3) { animation-delay: 0.4s; }
|
217 |
#ai-sleep span:nth-child(4) { animation-delay: 0.6s; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
</style>
|
219 |
</head>
|
220 |
<body>
|
221 |
<div id="ai-background"></div>
|
222 |
-
<div id="ai-text
|
223 |
-
<div id="ai-text">AI</div>
|
224 |
-
</div>
|
225 |
<div id="ai-sleep" aria-live="polite">
|
226 |
<span>z</span><span>z</span><span>z</span><span>z</span>
|
227 |
</div>
|
@@ -251,7 +293,6 @@
|
|
251 |
const editorTextarea = document.getElementById('editor-textarea');
|
252 |
const saveButton = document.getElementById('save-button');
|
253 |
const aiBackground = document.getElementById('ai-background');
|
254 |
-
const aiTextContainer = document.getElementById('ai-text-container');
|
255 |
const aiSleep = document.getElementById('ai-sleep');
|
256 |
|
257 |
let currentEditingFile = '';
|
@@ -300,6 +341,7 @@
|
|
300 |
});
|
301 |
|
302 |
codeInput.value = '';
|
|
|
303 |
}
|
304 |
|
305 |
function updateFileList() {
|
@@ -369,13 +411,13 @@
|
|
369 |
" train(model, data[i])"
|
370 |
];
|
371 |
|
372 |
-
function createCodeLine(
|
373 |
const codeLine = document.createElement('div');
|
374 |
-
codeLine.className =
|
375 |
codeLine.style.left = `${Math.random() * 100}%`;
|
376 |
codeLine.style.animationDuration = `${15 + Math.random() * 10}s`;
|
377 |
codeLine.textContent = codeSnippets[Math.floor(Math.random() * codeSnippets.length)];
|
378 |
-
|
379 |
|
380 |
codeLine.addEventListener('animationiteration', () => {
|
381 |
codeLine.style.left = `${Math.random() * 100}%`;
|
@@ -384,8 +426,32 @@
|
|
384 |
}
|
385 |
|
386 |
for (let i = 0; i < 20; i++) {
|
387 |
-
createCodeLine(
|
388 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
}
|
390 |
|
391 |
// Initial message
|
|
|
18 |
display: flex;
|
19 |
height: 100%;
|
20 |
position: relative;
|
21 |
+
z-index: 2;
|
22 |
}
|
23 |
.terminal {
|
24 |
flex: 1;
|
25 |
padding: 20px;
|
26 |
overflow-y: auto;
|
27 |
box-sizing: border-box;
|
28 |
+
background-color: rgba(0, 0, 0, 0.7);
|
29 |
+
border: 1px solid #0f0;
|
30 |
+
box-shadow: 0 0 20px #0f0;
|
31 |
}
|
32 |
.file-explorer {
|
33 |
width: 200px;
|
34 |
+
background-color: rgba(17, 17, 17, 0.8);
|
35 |
padding: 10px;
|
36 |
overflow-y: auto;
|
37 |
display: none;
|
38 |
+
border-left: 1px solid #0f0;
|
39 |
}
|
40 |
#output {
|
41 |
margin-bottom: 20px;
|
|
|
60 |
.file-item {
|
61 |
cursor: pointer;
|
62 |
padding: 5px;
|
63 |
+
transition: background-color 0.3s, color 0.3s;
|
64 |
}
|
65 |
.file-item:hover {
|
66 |
+
background-color: #0f0;
|
67 |
+
color: #000;
|
68 |
}
|
69 |
#file-editor {
|
70 |
display: none;
|
|
|
74 |
transform: translate(-50%, -50%);
|
75 |
width: 80%;
|
76 |
height: 80%;
|
77 |
+
background-color: rgba(17, 17, 17, 0.9);
|
78 |
border: 1px solid #0f0;
|
79 |
padding: 20px;
|
80 |
+
box-shadow: 0 0 30px #0f0;
|
81 |
z-index: 1000;
|
82 |
}
|
83 |
#editor-textarea {
|
84 |
width: 100%;
|
85 |
height: calc(100% - 40px);
|
86 |
+
background-color: rgba(0, 0, 0, 0.8);
|
87 |
color: #0f0;
|
88 |
border: none;
|
89 |
resize: none;
|
|
|
97 |
color: #000;
|
98 |
border: none;
|
99 |
cursor: pointer;
|
100 |
+
transition: background-color 0.3s, color 0.3s;
|
101 |
+
}
|
102 |
+
#save-button:hover {
|
103 |
+
background-color: #000;
|
104 |
+
color: #0f0;
|
105 |
}
|
106 |
.ai-executed {
|
107 |
color: #ff00ff;
|
|
|
146 |
width: 100%;
|
147 |
height: 100%;
|
148 |
z-index: 0;
|
149 |
+
opacity: 0.2;
|
150 |
pointer-events: none;
|
151 |
}
|
152 |
@keyframes codeFlow {
|
|
|
159 |
color: #0f0;
|
160 |
white-space: nowrap;
|
161 |
animation: codeFlow 20s linear infinite;
|
162 |
+
text-shadow: 0 0 5px #0f0;
|
163 |
}
|
164 |
+
#ai-text {
|
165 |
position: fixed;
|
166 |
top: 50%;
|
167 |
left: 50%;
|
168 |
transform: translate(-50%, -50%);
|
169 |
font-size: 200px;
|
170 |
font-weight: bold;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
color: transparent;
|
172 |
background: repeating-linear-gradient(
|
173 |
0deg,
|
|
|
181 |
-webkit-background-clip: text;
|
182 |
background-clip: text;
|
183 |
animation: gradientFlow 10s linear infinite;
|
184 |
+
z-index: 1;
|
185 |
+
opacity: 0.2;
|
186 |
+
pointer-events: none;
|
187 |
}
|
188 |
@keyframes gradientFlow {
|
189 |
0% { background-position: 0 0; }
|
190 |
100% { background-position: 0 -200%; }
|
191 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
#ai-sleep {
|
193 |
position: fixed;
|
194 |
+
top: 10%;
|
195 |
left: 50%;
|
196 |
transform: translateX(-50%);
|
197 |
font-size: 48px;
|
|
|
211 |
#ai-sleep span:nth-child(2) { animation-delay: 0.2s; }
|
212 |
#ai-sleep span:nth-child(3) { animation-delay: 0.4s; }
|
213 |
#ai-sleep span:nth-child(4) { animation-delay: 0.6s; }
|
214 |
+
.particle {
|
215 |
+
position: absolute;
|
216 |
+
width: 5px;
|
217 |
+
height: 5px;
|
218 |
+
background-color: #0f0;
|
219 |
+
border-radius: 50%;
|
220 |
+
pointer-events: none;
|
221 |
+
opacity: 0.5;
|
222 |
+
}
|
223 |
+
@keyframes particleFloat {
|
224 |
+
0% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
|
225 |
+
100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
|
226 |
+
}
|
227 |
+
.hexagon {
|
228 |
+
position: absolute;
|
229 |
+
width: 100px;
|
230 |
+
height: 57.74px;
|
231 |
+
background-color: rgba(0, 255, 0, 0.1);
|
232 |
+
margin: 28.87px 0;
|
233 |
+
border-left: solid 2px #0f0;
|
234 |
+
border-right: solid 2px #0f0;
|
235 |
+
pointer-events: none;
|
236 |
+
}
|
237 |
+
.hexagon:before,
|
238 |
+
.hexagon:after {
|
239 |
+
content: "";
|
240 |
+
position: absolute;
|
241 |
+
z-index: 1;
|
242 |
+
width: 70.71px;
|
243 |
+
height: 70.71px;
|
244 |
+
transform: scaleY(0.5774) rotate(-45deg);
|
245 |
+
background-color: inherit;
|
246 |
+
left: 13.64px;
|
247 |
+
}
|
248 |
+
.hexagon:before {
|
249 |
+
top: -35.3553px;
|
250 |
+
border-top: solid 2.8284px #0f0;
|
251 |
+
border-right: solid 2.8284px #0f0;
|
252 |
+
}
|
253 |
+
.hexagon:after {
|
254 |
+
bottom: -35.3553px;
|
255 |
+
border-bottom: solid 2.8284px #0f0;
|
256 |
+
border-left: solid 2.8284px #0f0;
|
257 |
+
}
|
258 |
+
@keyframes hexRotate {
|
259 |
+
0% { transform: rotate(0deg); }
|
260 |
+
100% { transform: rotate(360deg); }
|
261 |
+
}
|
262 |
</style>
|
263 |
</head>
|
264 |
<body>
|
265 |
<div id="ai-background"></div>
|
266 |
+
<div id="ai-text">AI</div>
|
|
|
|
|
267 |
<div id="ai-sleep" aria-live="polite">
|
268 |
<span>z</span><span>z</span><span>z</span><span>z</span>
|
269 |
</div>
|
|
|
293 |
const editorTextarea = document.getElementById('editor-textarea');
|
294 |
const saveButton = document.getElementById('save-button');
|
295 |
const aiBackground = document.getElementById('ai-background');
|
|
|
296 |
const aiSleep = document.getElementById('ai-sleep');
|
297 |
|
298 |
let currentEditingFile = '';
|
|
|
341 |
});
|
342 |
|
343 |
codeInput.value = '';
|
344 |
+
createParticles(10);
|
345 |
}
|
346 |
|
347 |
function updateFileList() {
|
|
|
411 |
" train(model, data[i])"
|
412 |
];
|
413 |
|
414 |
+
function createCodeLine() {
|
415 |
const codeLine = document.createElement('div');
|
416 |
+
codeLine.className = 'code-line';
|
417 |
codeLine.style.left = `${Math.random() * 100}%`;
|
418 |
codeLine.style.animationDuration = `${15 + Math.random() * 10}s`;
|
419 |
codeLine.textContent = codeSnippets[Math.floor(Math.random() * codeSnippets.length)];
|
420 |
+
aiBackground.appendChild(codeLine);
|
421 |
|
422 |
codeLine.addEventListener('animationiteration', () => {
|
423 |
codeLine.style.left = `${Math.random() * 100}%`;
|
|
|
426 |
}
|
427 |
|
428 |
for (let i = 0; i < 20; i++) {
|
429 |
+
createCodeLine();
|
430 |
+
}
|
431 |
+
|
432 |
+
function createParticles(num) {
|
433 |
+
for (let i = 0; i < num; i++) {
|
434 |
+
const particle = document.createElement('div');
|
435 |
+
particle.className = 'particle';
|
436 |
+
particle.style.left = `${Math.random() * 100}%`;
|
437 |
+
particle.style.top = `${Math.random() * 100}%`;
|
438 |
+
particle.style.animation = `particleFloat ${2 + Math.random() * 3}s linear forwards`;
|
439 |
+
document.body.appendChild(particle);
|
440 |
+
setTimeout(() => particle.remove(), 5000);
|
441 |
+
}
|
442 |
+
}
|
443 |
+
|
444 |
+
function createHexagon() {
|
445 |
+
const hexagon = document.createElement('div');
|
446 |
+
hexagon.className = 'hexagon';
|
447 |
+
hexagon.style.left = `${Math.random() * 100}%`;
|
448 |
+
hexagon.style.top = `${Math.random() * 100}%`;
|
449 |
+
hexagon.style.animation = `hexRotate ${10 + Math.random() * 10}s linear infinite`;
|
450 |
+
document.body.appendChild(hexagon);
|
451 |
+
}
|
452 |
+
|
453 |
+
for (let i = 0; i < 5; i++) {
|
454 |
+
createHexagon();
|
455 |
}
|
456 |
|
457 |
// Initial message
|