-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
158 lines (158 loc) · 7.69 KB
/
Copy pathindex.html
File metadata and controls
158 lines (158 loc) · 7.69 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
(function(){
var t=localStorage.getItem('blokaz:theme');
if(!t) t=window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
document.documentElement.dataset.theme=t;
})();
// Pre-define window.ethereum as configurable so multiple wallet extensions
// can set it without throwing "Cannot redefine property: ethereum".
(function(){
try {
var desc = Object.getOwnPropertyDescriptor(window, 'ethereum');
if (!desc) {
Object.defineProperty(window, 'ethereum', {
configurable: true,
enumerable: true,
writable: true,
value: undefined,
});
} else if (!desc.configurable) {
// Already defined non-configurable by an extension — nothing we can do.
// Suppress the downstream throw from competing extensions.
window.addEventListener('error', function(e){
if (e.message && e.message.indexOf('Cannot redefine property: ethereum') !== -1) {
e.stopImmediatePropagation();
e.preventDefault();
}
}, true);
}
} catch(_) {}
})();
</script>
<link rel="icon" type="image/webp" href="/Blokaz_logo.webp" />
<link rel="icon" type="image/png" href="/Blokaz_logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="talentapp:project_verification" content="90311590842b835040b6ea565b383a5eff96a4c7c26ceaddababe71e0a74d4eed6bc70f989070703284e868f4936a2bf4ee8aef92d07c358ea9df10032d3ab6f" />
<title>BLOKAZ — Stack. Smash. Stake.</title>
<meta name="description" content="Blokaz is a block-stacking puzzle game on Celo. Play free, climb the weekly leaderboard, and stake with stablecoins. Available on MiniPay." />
<!-- Preload both splash images so browser fetches them before JS executes -->
<link rel="preload" as="image" href="/crackedstudioslogo.webp" type="image/webp" fetchpriority="high" />
<link rel="preload" as="image" href="/Blokaz_logo.webp" type="image/webp" fetchpriority="high" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="preconnect" href="https://api.web3auth.io" />
<link rel="preconnect" href="https://assets.web3auth.io" />
<!-- Non-blocking font load -->
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;700&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;700&display=swap" media="print" onload="this.media='all'" />
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;700&display=swap" /></noscript>
<!-- Preload Inter early — web3auth injects this at runtime, preloading avoids the late critical-path fetch -->
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" crossorigin />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" media="print" onload="this.media='all'" crossorigin />
<noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" /></noscript>
<!-- Static splash shell — mirrors SplashScreen.tsx, shown before React boots -->
<style>
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{background:#111111}
#static-splash{
position:fixed;inset:0;z-index:9999;
background:#111111;
display:flex;flex-direction:column;
align-items:center;justify-content:center;
transition:opacity 0.5s ease;
}
#static-splash.hide{opacity:0;pointer-events:none}
#static-splash .grid-bg{
position:absolute;inset:0;pointer-events:none;
background-image:linear-gradient(#FFE60018 1px,transparent 1px),linear-gradient(90deg,#FFE60018 1px,transparent 1px);
background-size:36px 36px;
}
#static-splash .card{
position:relative;
width:min(88vw,400px);
display:flex;flex-direction:column;align-items:center;
}
#static-splash .bar{
width:100%;background:#FFE600;
border:4px solid #111111;border-bottom:none;
padding:7px 14px;
display:flex;align-items:center;justify-content:space-between;
}
#static-splash .bar span{color:#111111;font-size:9px;letter-spacing:0.22em;font-family:sans-serif}
#static-splash .dots{display:flex;gap:4px}
#static-splash .dot{display:block;width:6px;height:6px;background:#111111}
#static-splash .inner{
width:100%;background:#111111;
border:4px solid #111111;
box-shadow:8px 8px 0 #FFE600;
display:flex;flex-direction:column;align-items:center;
padding:24px 24px 20px;gap:16px;
}
#static-splash .logo-wrap{width:65%;max-width:240px}
#static-splash .logo-wrap img{width:100%;height:auto;display:block}
#static-splash .divider{display:flex;align-items:center;gap:10px;width:100%}
#static-splash .divider-line{flex:1;height:2px;background:#FFE60040}
#static-splash .presents{color:#FFE600;font-size:9px;letter-spacing:0.28em;font-family:sans-serif}
#static-splash .blokaz-wrap{width:80%;max-width:280px}
#static-splash .blokaz-wrap img{width:100%;height:auto;display:block}
</style>
</head>
<body>
<!-- Static splash: visible immediately, removed when React mounts -->
<div id="static-splash" aria-hidden="true">
<div class="grid-bg"></div>
<div class="card">
<div class="bar">
<span>CRACKED STUDIOS</span>
<span class="dots">
<span class="dot" style="opacity:1"></span>
<span class="dot" style="opacity:0.65"></span>
<span class="dot" style="opacity:0.35"></span>
</span>
</div>
<div class="inner">
<div class="logo-wrap">
<img src="/crackedstudioslogo.webp" alt="Cracked Studios" width="349" height="106" fetchpriority="high" />
</div>
<div class="divider">
<div class="divider-line"></div>
<span class="presents">PRESENTS</span>
<div class="divider-line"></div>
</div>
<div class="blokaz-wrap">
<img src="/Blokaz_logo.webp" alt="Blokaz" width="560" height="327" fetchpriority="high" />
</div>
</div>
</div>
</div>
<div id="root" role="main"></div>
<script>
// Remove static splash once React mounts content into #root.
// #root is defined above this script so getElementById works.
// Safety timeout at 10s removes it even if React fails to mount.
(function(){
var splash = document.getElementById('static-splash');
var root = document.getElementById('root');
if (!splash || !root) return;
function removeSplash() {
splash.classList.add('hide');
setTimeout(function(){ if(splash.parentNode) splash.remove(); }, 500);
}
var safety = setTimeout(removeSplash, 10000);
var obs = new MutationObserver(function(){
if (root.firstChild) {
clearTimeout(safety);
removeSplash();
obs.disconnect();
}
});
obs.observe(root, { childList: true });
})();
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>