-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
471 lines (426 loc) · 27.4 KB
/
Copy pathindex.html
File metadata and controls
471 lines (426 loc) · 27.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="google-site-verification" content="zzEDZciUMr9ssVa89sbtQyL9sRE7ya8z3Jye4L8X2TI" />
<meta name="description" content="Tarn - A modern, privacy-focused open-source Monero wallet">
<meta name="keywords" content="Monero, XMR, wallet, privacy, cryptocurrency">
<meta property="og:title" content="Tarn Wallet">
<meta property="og:description" content="A modern, privacy-focused Monero wallet">
<meta property="og:image" content="./assets/logo.png">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<title>Tarn Wallet</title>
<!-- Tailwind CSS via CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
background: '#020617', // slate-950
accent: '#F97316', // orange-500
accentHover: '#ea580c', // orange-600
surface: '#0f172a', // slate-900
surfaceLight: '#1e293b', // slate-800
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
}
}
}
}
</script>
<!-- Lucide Icons via CDN -->
<script src="https://unpkg.com/lucide@latest"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: #020617;
color: #e2e8f0;
overflow: hidden;
}
/* Custom Scrollbar for stealth look */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }
.page-content { display: none; }
.page-content.active { display: block; animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* QR Code Matrix Hack */
.qr-matrix {
display: grid;
grid-template-columns: repeat(8, 1fr);
gap: 2px;
width: 100%;
height: 100%;
}
.qr-block { background-color: #000; border-radius: 2px; }
.qr-empty { background-color: transparent; }
</style>
</head>
<body class="h-screen flex flex-col antialiased">
<!-- Mock Titlebar -->
<div class="h-10 bg-surface flex items-center px-4 border-b border-slate-800 select-none">
<div class="flex items-center gap-2 text-slate-400">
<img src="./assets/logo.png" class="w-5 h-5" />
<span class="text-xs font-semibold tracking-widest uppercase text-slate-300">Tarn Wallet</span>
</div>
<div class="ml-auto flex gap-4 text-slate-500">
<span class="text-xs bg-emerald-500/10 text-emerald-400 px-2 py-1 rounded-md border border-emerald-500/20 flex items-center gap-2">
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"></span>
Network Sync: 100%
</span>
</div>
</div>
<!-- Main App Layout -->
<div class="flex flex-1 overflow-hidden">
<!-- Sidebar -->
<div class="w-64 bg-surface border-r border-slate-800 flex flex-col p-4">
<div class="flex-1 space-y-2 mt-2">
<button data-target="dashboard" class="nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 bg-accent/10 text-accent border border-accent/20 shadow-[0_0_15px_rgba(249,115,22,0.1)]">
<i data-lucide="layout-dashboard" class="w-5 h-5"></i>
<span class="font-medium">Dashboard</span>
</button>
<button data-target="send" class="nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-slate-400 hover:bg-surfaceLight hover:text-slate-200 border border-transparent">
<i data-lucide="send" class="w-5 h-5"></i>
<span class="font-medium">Send</span>
</button>
<button data-target="receive" class="nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-slate-400 hover:bg-surfaceLight hover:text-slate-200 border border-transparent">
<i data-lucide="download" class="w-5 h-5"></i>
<span class="font-medium">Receive</span>
</button>
<button data-target="history" class="nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-slate-400 hover:bg-surfaceLight hover:text-slate-200 border border-transparent">
<i data-lucide="clock" class="w-5 h-5"></i>
<span class="font-medium">History</span>
</button>
</div>
<div class="mt-auto pt-4 border-t border-slate-800 space-y-2">
<button data-target="settings" class="nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-slate-400 hover:bg-surfaceLight hover:text-slate-200 border border-transparent">
<i data-lucide="settings" class="w-5 h-5"></i>
<span class="font-medium">Settings</span>
</button>
</div>
</div>
<!-- Content Area -->
<main class="flex-1 overflow-y-auto p-8 bg-background relative">
<!-- DASHBOARD PAGE -->
<div id="dashboard" class="page-content active space-y-8 max-w-5xl mx-auto">
<header>
<h1 class="text-3xl font-bold text-white mb-2">Dashboard</h1>
<p class="text-slate-400">Welcome back. Your connection is secured and untraceable.</p>
</header>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-surface border border-slate-800 p-6 rounded-2xl">
<h2 class="text-slate-400 text-sm font-medium mb-1">Total Balance</h2>
<div class="text-4xl font-mono text-white mb-4">
14.2853 <span class="text-accent text-2xl">XMR</span>
</div>
<div class="flex justify-between items-center py-3 border-t border-slate-800/50">
<span class="text-sm text-slate-400">Unlocked (Spendable)</span>
<span class="font-mono text-slate-200">12.0001 XMR</span>
</div>
</div>
<div class="bg-surface border border-slate-800 p-6 rounded-2xl flex flex-col justify-center items-center text-center">
<i data-lucide="activity" class="w-12 h-12 text-slate-700 mb-4"></i>
<h3 class="text-slate-300 font-medium">Network Stealth Active</h3>
<p class="text-sm text-slate-500 mt-2">All traffic is currently routed through local node and Tor via SOCKS5.</p>
</div>
</div>
<div>
<h2 class="text-xl font-bold text-white mb-4">Recent Activity</h2>
<div class="bg-surface border border-slate-800 rounded-2xl overflow-hidden">
<!-- Activity Item 1 -->
<div class="flex items-center justify-between p-4 border-b border-slate-800/50 hover:bg-surfaceLight transition-colors">
<div class="flex items-center gap-4">
<div class="p-2 rounded-lg bg-emerald-500/10 text-emerald-500">
<i data-lucide="arrow-down-left" class="w-5 h-5"></i>
</div>
<div>
<div class="font-medium text-slate-200">Received XMR</div>
<div class="text-xs text-slate-500">Today • 14:32</div>
</div>
</div>
<div class="font-mono text-right">
<div class="text-emerald-400 font-medium">+2.5000 XMR</div>
<div class="text-xs text-slate-600 truncate w-32">e82b083c79a...</div>
</div>
</div>
<!-- Activity Item 2 -->
<div class="flex items-center justify-between p-4 border-b border-slate-800/50 hover:bg-surfaceLight transition-colors">
<div class="flex items-center gap-4">
<div class="p-2 rounded-lg bg-red-500/10 text-red-500">
<i data-lucide="arrow-up-right" class="w-5 h-5"></i>
</div>
<div>
<div class="font-medium text-slate-200">Sent XMR</div>
<div class="text-xs text-slate-500">Yesterday • 09:15</div>
</div>
</div>
<div class="font-mono text-right">
<div class="text-slate-400 font-medium">-0.1500 XMR</div>
<div class="text-xs text-slate-600 truncate w-32">1a9bc234dfa...</div>
</div>
</div>
</div>
</div>
</div>
<!-- SEND PAGE -->
<div id="send" class="page-content space-y-8 max-w-2xl mx-auto">
<div>
<h1 class="text-3xl font-bold text-white mb-2">Send Monero</h1>
<p class="text-slate-400">Untraceable, secure transactions globally.</p>
</div>
<form id="sendForm" class="bg-surface border border-slate-800 p-6 rounded-2xl space-y-6">
<div class="space-y-2">
<label class="text-sm font-medium text-slate-300">Recipient Address</label>
<input type="text" placeholder="4..." class="w-full bg-background border border-slate-700 rounded-lg p-3 text-slate-200 font-mono text-sm focus:border-accent focus:ring-1 focus:ring-accent outline-none transition-all" required>
</div>
<div class="space-y-2">
<label class="text-sm font-medium text-slate-300">Amount (XMR)</label>
<div class="relative">
<input type="number" step="0.0001" placeholder="0.00" class="w-full bg-background border border-slate-700 rounded-lg p-3 text-slate-200 font-mono text-lg focus:border-accent focus:ring-1 focus:ring-accent outline-none transition-all" required>
<button type="button" class="absolute right-3 top-1/2 -translate-y-1/2 text-xs text-accent hover:text-accentHover font-semibold uppercase tracking-wider">Max</button>
</div>
</div>
<div class="space-y-3">
<label class="text-sm font-medium text-slate-300">Transaction Priority (Fee)</label>
<div class="grid grid-cols-3 gap-3">
<button type="button" class="fee-btn py-2 rounded-lg text-sm font-medium border border-slate-700 hover:border-slate-500 text-slate-400 transition-all">Slow</button>
<button type="button" class="fee-btn active py-2 rounded-lg text-sm font-medium border border-accent bg-accent/10 text-accent transition-all">Normal</button>
<button type="button" class="fee-btn py-2 rounded-lg text-sm font-medium border border-slate-700 hover:border-slate-500 text-slate-400 transition-all">Fast</button>
</div>
</div>
<div class="pt-4 border-t border-slate-800">
<button type="submit" class="w-full bg-accent hover:bg-accentHover text-background font-bold py-3 rounded-lg flex items-center justify-center gap-2 transition-colors">
<i data-lucide="send" class="w-5 h-5"></i>
<span>Broadcast Transaction</span>
</button>
</div>
</form>
<div class="flex items-start gap-3 p-4 bg-orange-500/10 border border-orange-500/20 rounded-xl text-orange-400">
<i data-lucide="alert-triangle" class="w-6 h-6 shrink-0"></i>
<p class="text-sm">Double check the recipient address. Monero transactions are irreversible and completely untraceable once broadcasted to the network.</p>
</div>
</div>
<!-- RECEIVE PAGE -->
<div id="receive" class="page-content space-y-8 max-w-2xl mx-auto">
<div>
<h1 class="text-3xl font-bold text-white mb-2">Receive Monero</h1>
<p class="text-slate-400">Share your address to receive funds. Stealth addresses protect your identity.</p>
</div>
<div class="bg-surface border border-slate-800 p-8 rounded-2xl flex flex-col items-center">
<!-- CSS Mock QR Code -->
<div class="w-48 h-48 bg-white p-2 rounded-xl mb-8 shadow-[0_0_30px_rgba(249,115,22,0.15)]">
<div class="qr-matrix" id="qrMatrix">
<!-- JS will populate blocks here to look like a QR code -->
</div>
</div>
<div class="w-full space-y-2">
<label class="text-sm font-medium text-slate-400 ml-1">Primary Address</label>
<div class="flex gap-2">
<div class="flex-1 bg-background border border-slate-700 rounded-lg p-4 font-mono text-sm text-slate-300 break-all select-all">
44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A
</div>
<button id="copyBtn" class="w-14 shrink-0 bg-slate-800 hover:bg-slate-700 text-slate-300 rounded-lg flex items-center justify-center transition-colors border border-slate-700">
<i data-lucide="copy" class="w-5 h-5"></i>
</button>
</div>
</div>
</div>
</div>
<!-- HISTORY PAGE -->
<div id="history" class="page-content space-y-6 max-w-5xl mx-auto">
<div class="flex items-center justify-between">
<h1 class="text-3xl font-bold text-white">Transaction History</h1>
<div class="flex gap-2">
<div class="relative">
<i data-lucide="search" class="absolute left-3 top-1/2 -translate-y-1/2 text-slate-500 w-4 h-4"></i>
<input type="text" placeholder="Search hash..." class="bg-surface border border-slate-700 rounded-lg py-2 pl-9 pr-4 text-sm focus:border-accent outline-none text-slate-200">
</div>
<button class="bg-surface border border-slate-700 p-2 rounded-lg text-slate-400 hover:text-slate-200 transition-colors">
<i data-lucide="filter" class="w-5 h-5"></i>
</button>
</div>
</div>
<div class="bg-surface border border-slate-800 rounded-2xl overflow-hidden">
<table class="w-full text-left border-collapse">
<thead>
<tr class="bg-surfaceLight border-b border-slate-700/50 text-slate-400 text-sm">
<th class="p-4 font-medium">Type</th>
<th class="p-4 font-medium">Date</th>
<th class="p-4 font-medium">Tx Hash</th>
<th class="p-4 font-medium text-right">Amount (XMR)</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-slate-800/50 hover:bg-surfaceLight/50 transition-colors">
<td class="p-4">
<div class="inline-flex items-center gap-2 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400">
<i data-lucide="arrow-down-left" class="w-3.5 h-3.5"></i> Received
</div>
</td>
<td class="p-4 text-sm text-slate-400">2026-03-14 14:32:01</td>
<td class="p-4 font-mono text-xs text-slate-500 truncate max-w-[200px]">e82b083c79a1f2b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f67890</td>
<td class="p-4 font-mono text-right font-medium text-emerald-400">+2.5000</td>
</tr>
<tr class="border-b border-slate-800/50 hover:bg-surfaceLight/50 transition-colors">
<td class="p-4">
<div class="inline-flex items-center gap-2 px-2.5 py-1 rounded-full text-xs font-medium bg-red-500/10 text-red-400">
<i data-lucide="arrow-up-right" class="w-3.5 h-3.5"></i> Sent
</div>
</td>
<td class="p-4 text-sm text-slate-400">2026-03-12 09:15:44</td>
<td class="p-4 font-mono text-xs text-slate-500 truncate max-w-[200px]">1a9bc234dfa093cd1f2b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5</td>
<td class="p-4 font-mono text-right font-medium text-slate-300">-0.1500</td>
</tr>
<tr class="border-b border-slate-800/50 hover:bg-surfaceLight/50 transition-colors">
<td class="p-4">
<div class="inline-flex items-center gap-2 px-2.5 py-1 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-400">
<i data-lucide="arrow-down-left" class="w-3.5 h-3.5"></i> Received
</div>
</td>
<td class="p-4 text-sm text-slate-400">2026-03-10 18:05:12</td>
<td class="p-4 font-mono text-xs text-slate-500 truncate max-w-[200px]">ff9012cdb348821a1f2b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5</td>
<td class="p-4 font-mono text-right font-medium text-emerald-400">+11.9353</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- SETTINGS PAGE -->
<div id="settings" class="page-content space-y-8 max-w-3xl mx-auto">
<h1 class="text-3xl font-bold text-white">Settings</h1>
<div class="space-y-6">
<!-- Node Settings -->
<section class="bg-surface border border-slate-800 rounded-2xl p-6 space-y-4">
<div class="flex items-center gap-3 mb-2 border-b border-slate-800 pb-4">
<i data-lucide="server" class="w-6 h-6 text-accent"></i>
<h2 class="text-lg font-semibold text-slate-200">Daemon & Node</h2>
</div>
<div class="space-y-3">
<label class="flex items-center gap-3 p-3 border border-slate-700 rounded-lg hover:border-slate-500 cursor-pointer transition-colors">
<input type="radio" name="node" checked class="accent-accent w-4 h-4">
<div>
<div class="text-sm font-medium text-slate-200">Local Node (Recommended)</div>
<div class="text-xs text-slate-500">Run a full node locally for maximum privacy.</div>
</div>
</label>
<label class="flex items-center gap-3 p-3 border border-slate-700 rounded-lg hover:border-slate-500 cursor-pointer transition-colors">
<input type="radio" name="node" class="accent-accent w-4 h-4">
<div>
<div class="text-sm font-medium text-slate-200">Remote Node</div>
<div class="text-xs text-slate-500">Connect to a trusted public node (faster sync).</div>
</div>
</label>
</div>
<div class="pt-2">
<label class="text-xs font-medium text-slate-400 mb-1 block">Custom Daemon Address</label>
<input type="text" placeholder="127.0.0.1:18081" class="w-full bg-background border border-slate-700 rounded-lg p-2.5 text-slate-200 text-sm focus:border-accent outline-none" disabled>
</div>
</section>
<!-- Network & Privacy -->
<section class="bg-surface border border-slate-800 rounded-2xl p-6 space-y-4">
<div class="flex items-center gap-3 mb-2 border-b border-slate-800 pb-4">
<i data-lucide="network" class="w-6 h-6 text-accent"></i>
<h2 class="text-lg font-semibold text-slate-200">Network Routing</h2>
</div>
<div class="flex items-center justify-between p-3 border border-slate-700 rounded-lg">
<div class="flex items-center gap-3">
<i data-lucide="shield" class="w-5 h-5 text-emerald-500"></i>
<div>
<div class="text-sm font-medium text-slate-200">Route via Tor (SOCKS5)</div>
<div class="text-xs text-slate-500">Obfuscate your IP address globally.</div>
</div>
</div>
<!-- Mock Toggle -->
<div class="w-11 h-6 bg-accent rounded-full relative cursor-pointer">
<div class="w-5 h-5 bg-white rounded-full absolute right-0.5 top-0.5 shadow-sm"></div>
</div>
</div>
</section>
</div>
</div>
</main>
</div>
<!-- Application Logic -->
<script>
// 1. Initialize Icons
lucide.createIcons();
// 2. Navigation Logic
const navBtns = document.querySelectorAll('.nav-btn');
const pages = document.querySelectorAll('.page-content');
function switchPage(targetId) {
// Hide all pages
pages.forEach(page => page.classList.remove('active'));
// Reset button styles
navBtns.forEach(btn => {
btn.className = "nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 text-slate-400 hover:bg-surfaceLight hover:text-slate-200 border border-transparent";
});
// Show target page
const targetPage = document.getElementById(targetId);
if (targetPage) targetPage.classList.add('active');
// Update active button style
const activeBtn = document.querySelector(`[data-target="${targetId}"]`);
if (activeBtn) {
activeBtn.className = "nav-btn w-full flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-200 bg-accent/10 text-accent border border-accent/20 shadow-[0_0_15px_rgba(249,115,22,0.1)]";
}
}
navBtns.forEach(btn => {
btn.addEventListener('click', (e) => {
const target = e.currentTarget.getAttribute('data-target');
switchPage(target);
});
});
// 3. Send Form Logic (Mock)
document.getElementById('sendForm').addEventListener('submit', (e) => {
e.preventDefault();
alert('Mock Transaction Broadcasted to Network!\n\nNote: This is a UI mockup, no actual funds were moved.');
e.target.reset();
});
// Fee button toggles
const feeBtns = document.querySelectorAll('.fee-btn');
feeBtns.forEach(btn => {
btn.addEventListener('click', (e) => {
feeBtns.forEach(b => b.className = "fee-btn py-2 rounded-lg text-sm font-medium border border-slate-700 hover:border-slate-500 text-slate-400 transition-all");
e.currentTarget.className = "fee-btn active py-2 rounded-lg text-sm font-medium border border-accent bg-accent/10 text-accent transition-all";
});
});
// 4. Copy Address Logic
document.getElementById('copyBtn').addEventListener('click', function() {
const originalHTML = this.innerHTML;
this.innerHTML = '<i data-lucide="check-circle-2" class="w-5 h-5 text-emerald-500"></i>';
lucide.createIcons();
// Fallback for clipboard api if running locally without https
try {
navigator.clipboard.writeText("44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A");
} catch(err) {
console.log("Clipboard write requires secure context (HTTPS) or localhost.");
}
setTimeout(() => {
this.innerHTML = originalHTML;
lucide.createIcons();
}, 2000);
});
// 5. Generate Random CSS QR Pattern
const qrMatrix = document.getElementById('qrMatrix');
for (let i = 0; i < 64; i++) {
const block = document.createElement('div');
// Corner patterns for standard QR look
const isCorner = (i < 11 && i % 8 < 3) || (i > 40 && i % 8 < 3) || (i < 11 && i % 8 > 4);
if (isCorner || Math.random() > 0.4) {
block.className = 'qr-block';
} else {
block.className = 'qr-empty';
}
qrMatrix.appendChild(block);
}
</script>
</body>
</html>