-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
633 lines (562 loc) · 24.6 KB
/
index.html
File metadata and controls
633 lines (562 loc) · 24.6 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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Stratum - Multi-Signature Stellar Transactions</title>
<meta name="description" content="Stellar's threshold-based authorization system. Configure signature weights, manage signer permissions, and execute secure multi-signature transactions." />
<meta name="author" content="Consulting Manao GmbH" />
<meta name="keywords" content="stellar, multisig, multi-signature, transactions, blockchain, cryptocurrency, stellar lumens, threshold, authorization" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="https://stratum.app/" />
<!-- Open Graph / Social Media Meta Tags -->
<meta property="og:type" content="website" />
<meta property="og:title" content="Stratum - Multi-Signature Stellar Transactions" />
<meta property="og:description" content="Stellar's threshold-based authorization system. Configure signature weights, manage signer permissions, and execute secure multi-signature transactions." />
<meta property="og:url" content="https://stratum.app/" />
<meta property="og:image" content="/social-card.png" />
<meta property="og:site_name" content="Stratum" />
<meta property="og:locale" content="en_US" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Stratum - Multi-Signature Stellar Transactions" />
<meta name="twitter:description" content="Stellar's threshold-based authorization system. Configure signature weights, manage signer permissions, and execute secure multi-signature transactions." />
<meta name="twitter:image" content="/social-card.png" />
<!-- Mobile Meta Tags -->
<meta name="theme-color" content="hsl(48, 96%, 53%)" />
<link rel="icon" href="/favicon.png" type="image/png">
<link rel="icon" sizes="16x16" href="/favicon-16x16.png" type="image/png">
<link rel="icon" sizes="32x32" href="/favicon-32x32.png" type="image/png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" sizes="192x192" href="/android-chrome-192x192.png" type="image/png">
<link rel="icon" sizes="512x512" href="/android-chrome-512x512.png" type="image/png">
<link rel="manifest" href="/manifest.json">
<!-- Performance optimizations for TTI -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://horizon.stellar.org" />
<link rel="preconnect" href="https://horizon-testnet.stellar.org" />
<link rel="preconnect" href="https://rpc.lightsail.network" />
<link rel="dns-prefetch" href="https://soroban-domains.nftkey.app" />
<!-- Preload critical fonts -->
<link rel="preload" href="https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7W0Q5nw.woff2" as="font" type="font/woff2" crossorigin />
<!-- Load fonts with optimized loading -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Source+Code+Pro:wght@400;500;600;700&display=swap" rel="stylesheet" />
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "Stratum",
"description": "Stellar's threshold-based authorization system for multi-signature transactions",
"url": "https://stratum.app/",
"logo": "/social-card.png",
"applicationCategory": "FinanceApplication",
"operatingSystem": "Web",
"creator": {
"@type": "Organization",
"name": "Consulting Manao GmbH",
"url": "https://consulting-manao.com/",
"sameAs": [
"/"
]
},
"keywords": "stellar, multisig, multi-signature, transactions, blockchain, cryptocurrency"
}
</script>
<!-- Critical CSS optimized for LCP -->
<style>
/* Critical loading styles - matches design system */
:root {
--background: 220 13% 9%;
--foreground: 210 40% 98%;
--primary: 48 96% 53%;
--muted: 220 13% 15%;
--muted-foreground: 217 12% 72%;
--border: 220 13% 26%;
--stellar-yellow: 45 100% 60%;
}
body {
margin: 0;
background: hsl(var(--background));
color: hsl(var(--foreground));
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
font-display: swap;
text-rendering: optimizeSpeed;
}
/* Critical hero styles optimized for LCP */
.hero-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: hsl(var(--background));
padding: 1.5rem;
position: relative;
overflow: hidden;
}
.hero-content {
text-align: center;
max-width: 1152px;
width: 100%;
margin: 0 auto;
}
.hero-title {
font-size: clamp(3rem, 8vw, 7rem);
font-weight: 900;
line-height: 0.9;
margin: 0 0 2rem 0;
letter-spacing: -0.025em;
color: hsl(var(--foreground));
}
.hero-title-accent {
color: hsl(var(--primary));
}
.hero-subtitle {
font-size: clamp(1.125rem, 2vw, 1.5rem);
color: hsl(var(--muted-foreground));
max-width: 64rem;
margin: 0 auto 4rem;
line-height: 1.6;
}
.hero-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 4rem;
padding: 0 3rem;
font-size: 1.125rem;
font-weight: 600;
background: hsl(var(--primary));
color: hsl(220 13% 9%);
border: none;
border-radius: 0.5rem;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
}
.hero-button:hover {
background: hsl(48 96% 48%);
transform: scale(1.05);
}
/* Text glow effect for logo */
.text-glow-yellow {
text-shadow: 0 0 10px hsl(var(--stellar-yellow)), 0 0 20px hsl(var(--stellar-yellow));
}
/* Loading states - Fixed positioning to prevent CLS */
#app-loader {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: hsl(var(--background));
z-index: 9999;
pointer-events: auto;
}
#app-loader.hidden {
pointer-events: none;
opacity: 0;
transform: translateZ(0);
transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.loader-content {
text-align: center;
max-width: 600px;
width: 100%;
padding: 2rem;
position: relative;
}
.loader-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
color: hsl(var(--primary));
}
.loader-subtitle {
font-size: 1.125rem;
color: hsl(var(--foreground) / 0.7);
margin-bottom: 3rem;
}
/* Essential node network styles */
.node-network {
position: relative;
width: min(400px, 85vw);
height: min(300px, 60vh);
margin: 0 auto 2rem auto;
}
.node {
position: absolute;
width: 12px;
height: 12px;
border-radius: 50%;
background: hsl(var(--muted-foreground));
border: 2px solid hsl(var(--border));
transition: all 0.6s ease;
}
.node.center {
width: 20px;
height: 20px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background: hsl(var(--primary));
border-color: hsl(var(--primary));
z-index: 10;
}
.node.connected {
background: hsl(var(--primary));
border-color: hsl(var(--primary));
box-shadow: 0 0 20px hsl(var(--primary) / 0.6);
}
.connection {
position: absolute;
height: 2px;
background: hsl(var(--border));
opacity: 0;
transition: background 0.4s ease, opacity 0.4s ease;
z-index: 5;
transform-origin: 0 50%;
will-change: transform, width, left, top;
}
.connection.active {
background: hsl(var(--primary));
opacity: 1;
box-shadow: 0 0 8px hsl(var(--primary) / 0.4);
}
/* Hide loader once React loads */
.app-loaded #app-loader {
pointer-events: none !important;
}
/* Node positioning and animations */
.node:nth-child(1):not(.connected) { left: 15%; top: 15%; animation: bigOscillate1 3.2s ease-in-out infinite; }
.node:nth-child(2):not(.connected) { left: 85%; top: 18%; animation: bigOscillate2 2.8s ease-in-out infinite; }
.node:nth-child(3):not(.connected) { left: 8%; top: 52%; animation: bigOscillate3 3.6s ease-in-out infinite; }
.node:nth-child(4):not(.connected) { left: 92%; top: 58%; animation: bigOscillate4 2.9s ease-in-out infinite; }
.node:nth-child(5):not(.connected) { left: 25%; top: 88%; animation: bigOscillate5 3.4s ease-in-out infinite; }
.node:nth-child(6):not(.connected) { left: 75%; top: 85%; animation: bigOscillate6 3.1s ease-in-out infinite; }
.node:nth-child(7):not(.connected) { left: 48%; top: 8%; animation: bigOscillate7 2.7s ease-in-out infinite; }
.node:nth-child(8):not(.connected) { left: 12%; top: 35%; animation: bigOscillate8 3.5s ease-in-out infinite; }
.node:nth-child(9):not(.connected) { left: 88%; top: 38%; animation: bigOscillate9 2.6s ease-in-out infinite; }
/* Static positions when connected */
.node:nth-child(1).connected { left: 15%; top: 15%; }
.node:nth-child(2).connected { left: 85%; top: 18%; }
.node:nth-child(3).connected { left: 8%; top: 52%; }
.node:nth-child(4).connected { left: 92%; top: 58%; }
.node:nth-child(5).connected { left: 25%; top: 88%; }
.node:nth-child(6).connected { left: 75%; top: 85%; }
.node:nth-child(7).connected { left: 48%; top: 8%; }
.node:nth-child(8).connected { left: 12%; top: 35%; }
.node:nth-child(9).connected { left: 88%; top: 38%; }
/* Center node pulse animation */
@keyframes centerPulse {
0%, 100% {
transform: translate(-50%, -50%) scale(1);
box-shadow: 0 0 20px hsl(var(--primary) / 0.6);
}
50% {
transform: translate(-50%, -50%) scale(1.3);
box-shadow: 0 0 30px hsl(var(--primary) / 0.8);
}
}
.node.center {
animation: centerPulse 2s ease-in-out infinite;
}
/* Neon yellow effect for completed network */
.node-network.neon-yellow .node {
background: hsl(var(--primary));
border-color: hsl(var(--primary));
box-shadow: 0 0 14px hsl(var(--primary) / 0.95), 0 0 34px hsl(var(--primary) / 0.6), 0 0 60px hsl(var(--primary) / 0.35);
}
.node-network.neon-yellow .node.center {
width: 22px;
height: 22px;
box-shadow: 0 0 20px hsl(var(--primary) / 1), 0 0 40px hsl(var(--primary) / 0.7), 0 0 80px hsl(var(--primary) / 0.45);
}
/* Animation keyframes */
@keyframes bigOscillate1 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
20% { transform: translate3d(min(15px, 3vw), min(-12px, -2.5vw), 0) rotate(8deg); }
40% { transform: translate3d(min(-8px, -1.5vw), min(18px, 3.5vw), 0) rotate(-6deg); }
60% { transform: translate3d(min(12px, 2.5vw), min(-6px, -1vw), 0) rotate(10deg); }
80% { transform: translate3d(min(-10px, -2vw), min(14px, 3vw), 0) rotate(-4deg); }
}
@keyframes bigOscillate2 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
25% { transform: translate3d(min(-14px, -3vw), min(10px, 2vw), 0) rotate(-8deg); }
50% { transform: translate3d(min(6px, 1vw), min(-16px, -3vw), 0) rotate(12deg); }
75% { transform: translate3d(min(-4px, -1vw), min(8px, 1.5vw), 0) rotate(-10deg); }
}
@keyframes bigOscillate3 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
15% { transform: translate3d(min(10px, 2vw), min(8px, 1.5vw), 0) rotate(6deg); }
35% { transform: translate3d(min(-12px, -2.5vw), min(-14px, -3vw), 0) rotate(-12deg); }
55% { transform: translate3d(min(-6px, -1vw), min(4px, 1vw), 0) rotate(4deg); }
75% { transform: translate3d(min(14px, 3vw), min(12px, 2.5vw), 0) rotate(8deg); }
}
@keyframes bigOscillate4 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
30% { transform: translate3d(min(-10px, -2vw), min(-8px, -1.5vw), 0) rotate(-6deg); }
60% { transform: translate3d(min(16px, 3vw), min(4px, 1vw), 0) rotate(10deg); }
80% { transform: translate3d(min(-4px, -1vw), min(12px, 2.5vw), 0) rotate(-8deg); }
}
@keyframes bigOscillate5 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
20% { transform: translate3d(min(8px, 1.5vw), min(-10px, -2vw), 0) rotate(4deg); }
45% { transform: translate3d(min(-14px, -3vw), min(6px, 1vw), 0) rotate(-10deg); }
70% { transform: translate3d(min(4px, 1vw), min(14px, 3vw), 0) rotate(6deg); }
}
@keyframes bigOscillate6 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
35% { transform: translate3d(min(-6px, -1vw), min(12px, 2.5vw), 0) rotate(-4deg); }
65% { transform: translate3d(min(12px, 2.5vw), min(-8px, -1.5vw), 0) rotate(8deg); }
85% { transform: translate3d(min(-16px, -3vw), min(-4px, -1vw), 0) rotate(-12deg); }
}
@keyframes bigOscillate7 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
25% { transform: translate3d(min(4px, 1vw), min(16px, 3vw), 0) rotate(2deg); }
50% { transform: translate3d(min(-10px, -2vw), min(-6px, -1vw), 0) rotate(-8deg); }
75% { transform: translate3d(min(14px, 3vw), min(2px, 0.5vw), 0) rotate(10deg); }
}
@keyframes bigOscillate8 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
18% { transform: translate3d(min(18px, 3.5vw), min(4px, 1vw), 0) rotate(12deg); }
42% { transform: translate3d(min(-8px, -1.5vw), min(-12px, -2.5vw), 0) rotate(-6deg); }
68% { transform: translate3d(min(2px, 0.5vw), min(16px, 3vw), 0) rotate(4deg); }
88% { transform: translate3d(min(-14px, -3vw), min(-2px, -0.5vw), 0) rotate(-10deg); }
}
@keyframes bigOscillate9 {
0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
22% { transform: translate3d(min(-4px, -1vw), min(-14px, -3vw), 0) rotate(-8deg); }
44% { transform: translate3d(min(12px, 2.5vw), min(8px, 1.5vw), 0) rotate(6deg); }
66% { transform: translate3d(min(-16px, -3vw), min(2px, 0.5vw), 0) rotate(-12deg); }
88% { transform: translate3d(min(6px, 1vw), min(-10px, -2vw), 0) rotate(8deg); }
}
</style>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob: https://cdn.gpteng.co; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data: blob: https:; connect-src 'self' https: wss: data: blob:; media-src 'self' data: blob:; frame-src 'self' https://hot-labs.org; object-src 'none'; base-uri 'self'; form-action 'self' https:; frame-ancestors 'none';" />
<meta property="og:title" content="Stellar Multisig Wallet - Secure Multi-Signature Management" />
<meta property="og:description" content="Professional Stellar multisig wallet for secure multi-signature transaction management" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@PamphileRoy" />
</head>
<body>
<!-- Critical hero content for immediate LCP -->
<div id="app-loader">
<div class="hero-container">
<div class="hero-bg">
</div>
<div class="hero-content">
<div class="loader-content">
<div class="loader-title">Stratum</div>
<div class="loader-subtitle">Loading Stellar Multisig Wallet...</div>
<div class="node-network">
<!-- Outer nodes -->
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<div class="node"></div>
<!-- Center node -->
<div class="node center"></div>
<!-- Connection lines from center to each outer node -->
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
<div class="connection"></div>
</div>
</div>
</div>
</div>
</div>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<!-- Hide loader once React content loads -->
<script>
// Smart loading system that adapts to actual load time
let animationComplete = false;
let reactReady = false;
let preloadComplete = false;
// Preload critical resources during animation
function preloadResources() {
const preloadPromises = [];
// Preload critical fonts
if (document.fonts && document.fonts.load) {
preloadPromises.push(document.fonts.load('16px Inter'));
preloadPromises.push(document.fonts.load('600 20px Inter'));
}
// Preload any critical images that might be used
const criticalImages = [
'/ledger-logo.png',
'/images/soroban-domains-logo.png',
'/xlm-logo.png'
];
criticalImages.forEach(src => {
const img = new Image();
img.src = src;
const promise = new Promise(resolve => {
img.onload = resolve;
img.onerror = resolve; // Don't fail if image doesn't exist
});
preloadPromises.push(promise);
});
// Complete preload after all resources or timeout
Promise.allSettled(preloadPromises).then(() => {
preloadComplete = true;
});
// Fallback timeout for preload
setTimeout(() => {
preloadComplete = true;
}, 1000);
}
function setupNetworkAnimation() {
const container = document.querySelector('.node-network');
if (!container) return;
const center = container.querySelector('.node.center');
const nodes = Array.from(container.querySelectorAll('.node:not(.center)'));
const connections = Array.from(container.querySelectorAll('.connection'));
if (!center || nodes.length !== connections.length) return;
const getCenter = (el) => {
const cr = container.getBoundingClientRect();
const r = el.getBoundingClientRect();
return { x: r.left + r.width / 2 - cr.left, y: r.top + r.height / 2 - cr.top };
};
// Keep updating connection geometry throughout the whole sequence
let keepUpdating = true;
// Allow extra time for center neon scale so lines stay attached
setTimeout(() => { keepUpdating = false; }, 2200);
const updateConnections = () => {
const c = getCenter(center);
nodes.forEach((node, i) => {
const conn = connections[i];
if (!conn) return;
const n = getCenter(node);
const dx = n.x - c.x;
const dy = n.y - c.y;
const dist = Math.hypot(dx, dy);
const angle = Math.atan2(dy, dx) * 180 / Math.PI;
conn.style.left = `${c.x}px`;
conn.style.top = `${c.y}px`;
conn.style.transform = `rotate(${angle}deg)`;
conn.style.width = `${dist}px`;
});
if (keepUpdating) requestAnimationFrame(updateConnections);
};
requestAnimationFrame(updateConnections);
// 1.5s total animation - perfectly timed
let idx = 0;
const connectNext = () => {
if (idx >= nodes.length) {
// Check if we need to extend animation
if (!reactReady) {
// Extend with subtle pulse while waiting
container.classList.add('neon-yellow');
// Keep checking every 500ms
const checkReady = () => {
if (reactReady && preloadComplete) {
animationComplete = true;
} else {
setTimeout(checkReady, 200);
}
};
setTimeout(checkReady, 100);
} else {
animationComplete = true;
container.classList.add('neon-yellow');
}
return;
}
const node = nodes[idx];
const conn = connections[idx];
// Freeze node at its current absolute px position
const cr = container.getBoundingClientRect();
const r = node.getBoundingClientRect();
node.style.left = `${r.left - cr.left}px`;
node.style.top = `${r.top - cr.top}px`;
node.style.transform = 'translate(0, 0)';
node.classList.add('connected');
conn.classList.add('active');
idx += 1;
setTimeout(connectNext, 130); // 9 * 130ms = 1170ms
};
// Start timing: 200ms + 1170ms + 130ms = 1500ms (1.5s)
setTimeout(connectNext, 200);
}
// Start preloading and animation immediately
preloadResources();
setupNetworkAnimation();
// Handle hiding loader with smart timing
document.addEventListener('DOMContentLoaded', function() {
const root = document.getElementById('root');
const loader = document.getElementById('app-loader');
const tryHide = () => {
if (root && root.children.length > 0) {
reactReady = true;
// Only hide when both animation and preload are complete
const finalHide = () => {
if (animationComplete && preloadComplete) {
document.body.classList.add('app-loaded');
if (loader) {
loader.classList.add('hidden');
loader.style.transition = 'opacity 0.6s ease-out, transform 0.6s ease-out';
loader.style.opacity = '0';
loader.style.transform = 'translateZ(0) scale(1.02)';
// Keep loader in DOM but invisible and non-interactive
setTimeout(() => {
loader.style.visibility = 'hidden';
}, 600);
}
return true;
}
return false;
};
if (!finalHide()) {
// Check every 100ms until ready
const checkInterval = setInterval(() => {
if (finalHide()) {
clearInterval(checkInterval);
}
}, 100);
}
return true;
}
return false;
};
if (!tryHide()) {
const observer = new MutationObserver(() => {
if (tryHide()) observer.disconnect();
});
if (root) observer.observe(root, { childList: true, subtree: true });
}
// Absolute fallback - never get stuck
setTimeout(() => {
reactReady = true;
animationComplete = true;
preloadComplete = true;
document.body.classList.add('app-loaded');
if (loader) {
loader.classList.add('hidden');
loader.style.transition = 'opacity 0.4s ease-out, transform 0.4s ease-out';
loader.style.opacity = '0';
loader.style.transform = 'translateZ(0) scale(1.02)';
setTimeout(() => {
loader.style.visibility = 'hidden';
}, 400);
}
}, 8000); // 8s absolute maximum
});
</script>
</body>
</html>