-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsinter_simulation.html
More file actions
207 lines (179 loc) · 6.3 KB
/
Copy pathsinter_simulation.html
File metadata and controls
207 lines (179 loc) · 6.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sinter | The Manifold Simulation</title>
<style>
:root {
--bg-obsidian: #010101;
--sinter-neon: #00f0ff;
--sinter-accent: #0044ff;
--text-main: #e0faff;
--panel-bg: rgba(5, 5, 10, 0.95);
}
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-color: var(--bg-obsidian);
color: var(--text-main);
font-family: 'Inter', sans-serif;
overflow: hidden;
}
#simulation-container {
display: flex;
width: 100vw;
height: 100vh;
}
/* Sidebar Navigation */
#nav-rail {
width: 80px;
background: rgba(0, 0, 0, 0.8);
border-right: 1px solid rgba(0, 240, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
padding: 40px 0;
gap: 40px;
z-index: 100;
}
.nav-icon {
width: 40px;
height: 40px;
border: 1px solid rgba(0, 240, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 0.8rem;
color: var(--sinter-neon);
transition: 0.3s;
}
.nav-icon:hover, .nav-icon.active {
background: var(--sinter-neon);
color: var(--bg-obsidian);
box-shadow: 0 0 20px var(--sinter-neon);
}
/* Main Viewport */
#viewport {
flex: 1;
position: relative;
overflow: hidden;
}
iframe {
width: 100%;
height: 100%;
border: none;
display: none;
}
iframe.active {
display: block;
}
/* Economy Overlay (The Wallet) */
#wallet-overlay {
position: absolute;
top: 20px;
right: 20px;
background: var(--panel-bg);
border: 1px solid rgba(0, 240, 255, 0.2);
padding: 15px 25px;
backdrop-filter: blur(10px);
display: flex;
align-items: center;
gap: 20px;
z-index: 200;
}
.currency-stat {
display: flex;
flex-direction: column;
gap: 2px;
}
.currency-value {
font-size: 1.1rem;
font-weight: bold;
color: var(--sinter-neon);
}
.currency-label {
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 2px;
opacity: 0.5;
}
/* Transition Screen */
#shimmer-gate {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--sinter-neon);
z-index: 1000;
display: none;
opacity: 0;
}
@keyframes shimmer-fade {
0% { opacity: 0; transform: scale(1); }
50% { opacity: 1; transform: scale(1.1); }
100% { opacity: 0; transform: scale(1); }
}
</style>
</head>
<body>
<div id="shimmer-gate"></div>
<div id="simulation-container">
<nav id="nav-rail">
<div class="nav-icon active" onclick="switchView('login')" title="Login">🔐</div>
<div class="nav-icon" onclick="switchView('feed')" title="Feed">🌀</div>
<div class="nav-icon" onclick="switchView('architect')" title="Build">🛠</div>
</nav>
<main id="viewport">
<!-- Wallet Stats (Simulating the Sinter Economy) -->
<div id="wallet-overlay">
<div class="currency-stat">
<div class="currency-value" id="sint-balance">1,240.50</div>
<div class="currency-label">SINT Tokens</div>
</div>
<div class="currency-stat" style="border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px;">
<div class="currency-value" id="fiat-balance">$42.00</div>
<div class="currency-label">Fiat Credit</div>
</div>
</div>
<iframe src="sinter_login.html" id="view-login" class="active"></iframe>
<iframe src="sinter_feed.html" id="view-feed"></iframe>
<iframe src="sinter_architect.html" id="view-architect"></iframe>
</main>
</div>
<script>
function switchView(viewId) {
// Animate transition
const gate = document.getElementById('shimmer-gate');
gate.style.display = 'block';
gate.style.animation = 'shimmer-fade 0.8s forwards';
setTimeout(() => {
// Update icons
const icons = document.querySelectorAll('.nav-icon');
icons.forEach(icon => icon.classList.remove('active'));
// Update active icon based on index (rough mapping)
if (viewId === 'login') icons[0].classList.add('active');
if (viewId === 'feed') icons[1].classList.add('active');
if (viewId === 'architect') icons[2].classList.add('active');
// Switch frames
const frames = document.querySelectorAll('iframe');
frames.forEach(f => f.classList.remove('active'));
document.getElementById('view-' + viewId).classList.add('active');
gate.style.display = 'none';
gate.style.animation = 'none';
}, 400);
}
// Simulate real-time economy updates
setInterval(() => {
const balance = document.getElementById('sint-balance');
let val = parseFloat(balance.innerText.replace(',', ''));
val += (Math.random() * 0.05); // Tiny background earnings from node relay
balance.innerText = val.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2});
}, 3000);
</script>
</body>
</html>