-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
504 lines (449 loc) · 16.9 KB
/
home.html
File metadata and controls
504 lines (449 loc) · 16.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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TechnoSutra - STEM Array</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');
:root {
--cyber-primary: #ff0000;
--cyber-secondary: #ff0080;
--cyber-accent: #ffff00;
--cyber-dark: #0a0a0a;
--cyber-darker: #000000;
--cyber-purple: #00ff73;
--cyber-green: #00ff41;
--cyber-blue: #600000;
--neon-glow: 0 0 20px;
}
* {
margin: 0;
padding: 0;
border: 0;
box-sizing: border-box;
overflow: hidden;
}
html, body {
overflow: hidden;
height: 100vh;
width: 100vw;
overflow: hidden;
background: radial-gradient(ellipse at center, #1a0033 0%, #000000 100%);
font-family: 'Rajdhani', sans-serif;
}
.cyber-container {
overflow: hidden;
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.cyber-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
repeating-linear-gradient(
90deg,
transparent,
transparent 98px,
rgba(0, 255, 255, 0.02) 100px
);
pointer-events: none;
z-index: 1;
}
.fullscreen-iframe {
position: absolute;
top: -9px; /* Reduced offset to minimize content cut-off */
left: 0;
width: 100%;
height: calc(100% + 30px); /* Compensate for top offset */
border: none;
margin: 0;
padding: 0;
overflow: hidden;
z-index: 10;
filter:
contrast(1.1)
saturate(1.2)
brightness(0.95)
hue-rotate(5deg);
transition: filter 0.3s ease;
}
.fullscreen-iframe:hover {
filter:
contrast(1.15)
saturate(1.3)
brightness(1)
hue-rotate(10deg);
}
.loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, var(--cyber-darker) 70%),
linear-gradient(45deg, var(--cyber-darker) 0%, #330000 50%, var(--cyber-darker) 100%);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000000;
transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
backdrop-filter: blur(20px);
}
.loading-content {
text-align: center;
font-family: 'Orbitron', monospace;
color: var(--cyber-primary);
text-transform: uppercase;
letter-spacing: 3px;
position: relative;
}
.loading-content::before {
content: '';
position: absolute;
top: -20px;
left: -20px;
right: -20px;
bottom: -20px;
border: 2px solid transparent;
border-radius: 10px;
background:
linear-gradient(45deg, var(--cyber-primary), var(--cyber-secondary), var(--cyber-purple)) border-box;
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask-composite: exclude;
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask-composite: exclude;
animation: borderGlow 2s linear infinite;
}
.cyber-spinner {
width: 80px;
height: 80px;
margin: 0 auto 30px;
position: relative;
}
.cyber-spinner::after {
content: '';
position: absolute;
border-radius: 50%;
animation: cyberSpin 1.5s linear infinite;
}
.cyber-spinner::before {
width: 100%;
height: 100%;
border: 3px solid transparent;
border-top: 3px solid var(--cyber-primary);
border-right: 3px solid var(--cyber-secondary);
box-shadow: var(--neon-glow) var(--cyber-primary);
}
.cyber-spinner::after {
width: 60px;
height: 60px;
top: 10px;
left: 10px;
border: 2px solid transparent;
border-bottom: 2px solid var(--cyber-purple);
border-left: 2px solid var(--cyber-accent);
animation-direction: reverse;
animation-duration: 1s;
}
.loading-text {
font-size: 40px;
font-weight: 1200;
animation: textPulse 2s ease-in-out infinite;
margin-bottom: 20px;
}
.loading-subtitle {
font-size: 12px;
font-weight: 300;
color: var(--cyber-secondary);
text-shadow: 0 0 10px var(--cyber-secondary);
opacity: 0.8;
animation: subtitleFloat 3s ease-in-out infinite;
}
.cyber-grid {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
background-size: 50px 50px;
pointer-events: none;
z-index: 1;
animation: gridMove 20s linear infinite;
}
.hidden {
opacity: 0;
pointer-events: none;
transform: scale(0.95);
}
/* CSS to remove Wix elements */
.fullscreen-iframe::after {
content: '';
position: absolute;
top: 30px;
left: 0;
width: 100%;
height: 50px;
background: var(--cyber-darker);
z-index: 1000;
pointer-events: none;
}
@keyframes cyberSpin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes textPulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.8; transform: scale(1.05); }
}
@keyframes subtitleFloat {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-5px); }
}
@keyframes borderGlow {
0%, 100% { filter: hue-rotate(0deg); }
50% { filter: hue-rotate(180deg); }
}
@keyframes gridMove {
0% { transform: translate(0, 0); }
100% { transform: translate(50px, 50px); }
}
/* Responsive Design */
@media (max-width: 768px) {
.loading-text {
font-size: 16px;
}
.cyber-spinner {
width: 60px;
height: 60px;
}
.cyber-spinner::after {
width: 40px;
height: 40px;
top: 10px;
left: 10px;
}
}
@media (max-width: 480px) {
.loading-content {
letter-spacing: 2px;
}
.loading-text {
font-size: 14px;
}
}
/* Desktop Back Button */
.desktop-back-btn {
position: fixed;
top: 0.4%;
left: 17%;
z-index: 2000;
background: rgba(15, 15, 15, 0.9);
border: 2px solid var(--cyber-primary);
color: var(--cyber-primary);
padding: 12px 16px;
border-radius: 8px;
font-size: 0.7rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(20px);
display: flex;
align-items: center;
gap: 8px;
letter-spacing: 0.1em;
text-decoration: none;
text-transform: uppercase;
text-shadow: 0 0 10px var(--cyber-primary);
box-shadow: var(--neon-glow) var(--cyber-primary);
}
.desktop-back-btn:hover {
background: rgba(255, 0, 0, 0.1);
border-color: var(--cyber-secondary);
color: var(--cyber-secondary);
transform: translateY(-2px) scale(1.05);
text-shadow: 0 0 15px var(--cyber-secondary);
box-shadow: var(--neon-glow) var(--cyber-secondary);
}
/* Hide back button on mobile */
@media (max-width: 768px) {
.desktop-back-btn {
display: none;
}
}
</style>
</head>
<body>
<!-- Desktop Back Button -->
<a href="index.html" class="desktop-back-btn">
← voltar
</a>
<div class="cyber-container">
<div class="cyber-grid"></div>
<!-- Loading Screen -->
<div id="loadingScreen" class="loading-screen">
<div class="loading-content">
<div class="cyber-spinner"></div>
<div class="loading-text">Iniciando TechnoSutra</div>
<div class="loading-subtitle">Conectando ao Dharma Digital...</div>
</div>
</div>
<!-- Full-page iframe -->
<iframe
id="mainFrame"
class="fullscreen-iframe"
src="https://technosutra84.wixstudio.com/stem-array"
title="TechnoSutra - STEM Array"
allowfullscreen
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-downloads allow-modals allow-top-navigation"
onload="hideLoading()">
</iframe>
</div>
<script>
// Hide loading screen when iframe loads
function hideLoading() {
const loadingScreen = document.getElementById('loadingScreen');
loadingScreen.classList.add('hidden');
// Remove loading screen from DOM after transition
setTimeout(() => {
loadingScreen.style.display = 'none';
}, 800);
// Remove Wix ads and unwanted elements after iframe loads
setTimeout(() => {
removeWixElements();
}, 1500);
}
// Function to remove Wix ads and unwanted elements
function removeWixElements() {
const iframe = document.getElementById('mainFrame');
try {
// Try to access iframe content (may fail due to CORS)
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
// Remove Wix ads banner
const wixAds = iframeDoc.querySelectorAll('[id*="WIX_ADS"], [class*="wix-ads"], [data-wix-ads], .NI6sSq, [class*="freemium"]');
wixAds.forEach(ad => {
ad.style.display = 'none !important';
ad.remove();
});
// Remove white canvas/background elements
const whiteElements = iframeDoc.querySelectorAll('[style*="background-color: rgb(255, 255, 255)"], [style*="background: white"], [style*="background: #fff"], [style*="background: #ffffff"]');
whiteElements.forEach(el => {
el.style.background = 'transparent !important';
el.style.backgroundColor = 'transparent !important';
});
// Adjust body and html background
if (iframeDoc.body) {
iframeDoc.body.style.background = 'transparent !important';
iframeDoc.body.style.backgroundColor = 'transparent !important';
}
if (iframeDoc.documentElement) {
iframeDoc.documentElement.style.background = 'transparent !important';
iframeDoc.documentElement.style.backgroundColor = 'transparent !important';
}
} catch (e) {
// CORS prevention - inject CSS instead
console.log('Using CSS injection method for Wix removal');
injectRemovalCSS();
}
}
// Inject CSS to remove Wix elements (CORS-safe method)
function injectRemovalCSS() {
const style = document.createElement('style');
style.textContent = `
iframe {
margin-top: -30px !important;
height: calc(100% + 30px) !important;
}
`;
document.head.appendChild(style);
}
// Fallback: hide loading screen after 8 seconds if iframe doesn't load
setTimeout(() => {
const loadingScreen = document.getElementById('loadingScreen');
if (!loadingScreen.classList.contains('hidden')) {
hideLoading();
}
}, 8000);
// Handle iframe errors with cyberpunk styling
document.getElementById('mainFrame').onerror = function() {
const loadingScreen = document.getElementById('loadingScreen');
const loadingContent = loadingScreen.querySelector('.loading-content');
loadingContent.innerHTML = `
<div class="loading-text" style="color: var(--cyber-secondary);">CONEXÃO PERDIDA</div>
<div class="loading-subtitle">Sistema Offline - <a href="https://technosutra84.wixstudio.com/stem-array" target="_blank" style="color: var(--cyber-primary); text-decoration: none;">Acesso Direto</a></div>
`;
};
// Enhanced context menu prevention
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
});
// Handle window resize with enhanced responsiveness
window.addEventListener('resize', function() {
const iframe = document.getElementById('mainFrame');
iframe.style.width = '100%';
iframe.style.height = 'calc(100% + 30px)';
iframe.style.top = '-30px';
});
// Periodic cleanup of Wix elements
setInterval(() => {
removeWixElements();
}, 5000);
// Add cyberpunk visual effects
function addCyberEffects() {
// Create floating particles
for (let i = 0; i < 20; i++) {
createFloatingParticle();
}
}
function createFloatingParticle() {
const particle = document.createElement('div');
particle.style.cssText = `
position: fixed;
width: 2px;
height: 2px;
background: var(--cyber-primary);
border-radius: 50%;
pointer-events: none;
z-index: 5;
animation: float ${Math.random() * 10 + 5}s linear infinite;
left: ${Math.random() * 100}%;
top: ${Math.random() * 100}%;
box-shadow: 0 0 6px var(--cyber-primary);
`;
document.body.appendChild(particle);
// Remove particle after animation
setTimeout(() => {
if (particle.parentNode) {
particle.parentNode.removeChild(particle);
}
}, 15000);
}
// Add CSS animation for particles
const particleStyle = document.createElement('style');
particleStyle.textContent = `
@keyframes float {
0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
`;
document.head.appendChild(particleStyle);
// Initialize effects after page load
window.addEventListener('load', () => {
setTimeout(addCyberEffects, 2000);
});
</script>
</body>
</html>