-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
695 lines (614 loc) · 20.9 KB
/
Copy pathindex.html
File metadata and controls
695 lines (614 loc) · 20.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
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
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NeoCoin (NEO) - Next Generation Blockchain</title>
<meta name="description" content="NeoCoin - A community-driven Proof-of-Work blockchain with AI-powered security">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🐰</text></svg>">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary: #0a0a0f;
--bg-secondary: #12121a;
--bg-tertiary: #1a1a25;
--accent: #00d4aa;
--accent-glow: rgba(0, 212, 170, 0.3);
--text-primary: #ffffff;
--text-secondary: #a0a0b0;
--text-muted: #606070;
--border: #2a2a3a;
--gradient: linear-gradient(135deg, #00d4aa 0%, #00a8ff 100%);
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* Animated Background */
.bg-pattern {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background:
radial-gradient(circle at 20% 20%, var(--accent-glow) 0%, transparent 40%),
radial-gradient(circle at 80% 80%, rgba(0, 168, 255, 0.2) 0%, transparent 40%);
z-index: -1;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
header {
background: rgba(10, 10, 15, 0.9);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 0;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
font-size: 24px;
font-weight: 700;
}
.logo-icon {
width: 40px;
height: 40px;
background: var(--gradient);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
nav {
display: flex;
gap: 30px;
align-items: center;
}
nav a {
color: var(--text-secondary);
text-decoration: none;
font-weight: 500;
transition: color 0.3s;
}
nav a:hover {
color: var(--accent);
}
.nav-btn {
background: var(--gradient);
padding: 10px 20px;
border-radius: 8px;
color: var(--bg-primary) !important;
font-weight: 600;
}
/* Hero */
.hero {
padding: 100px 0;
text-align: center;
}
.hero h1 {
font-size: 64px;
font-weight: 800;
margin-bottom: 20px;
background: var(--gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: 20px;
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto 40px;
}
.hero-stats {
display: flex;
justify-content: center;
gap: 40px;
margin-bottom: 40px;
flex-wrap: wrap;
}
.stat-box {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 16px;
padding: 20px 30px;
text-align: center;
}
.stat-value {
font-size: 32px;
font-weight: 700;
color: var(--accent);
}
.stat-label {
font-size: 14px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
}
.hero-buttons {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}
.btn {
padding: 15px 30px;
border-radius: 12px;
font-weight: 600;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 10px;
}
.btn-primary {
background: var(--gradient);
color: var(--bg-primary);
border: none;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-secondary {
background: transparent;
border: 2px solid var(--border);
color: var(--text-primary);
}
.btn-secondary:hover {
border-color: var(--accent);
}
/* Features */
.features {
padding: 80px 0;
}
.section-header {
text-align: center;
margin-bottom: 60px;
}
.section-header h2 {
font-size: 40px;
margin-bottom: 15px;
}
.section-header p {
color: var(--text-secondary);
font-size: 18px;
}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.feature-card {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 20px;
padding: 30px;
transition: all 0.3s;
}
.feature-card:hover {
transform: translateY(-5px);
border-color: var(--accent);
}
.feature-icon {
width: 60px;
height: 60px;
background: var(--gradient);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
margin-bottom: 20px;
}
.feature-card h3 {
font-size: 22px;
margin-bottom: 12px;
}
.feature-card p {
color: var(--text-secondary);
}
/* Network Status */
.network {
padding: 80px 0;
background: var(--bg-secondary);
}
.network-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.network-card {
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 16px;
padding: 25px;
text-align: center;
}
.network-card .value {
font-size: 28px;
font-weight: 700;
color: var(--accent);
margin-bottom: 5px;
}
.network-card .label {
color: var(--text-muted);
font-size: 14px;
}
.network-status {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 15px;
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--accent);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Explorer Preview */
.explorer-preview {
padding: 80px 0;
}
.explorer-frame {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 20px;
overflow: hidden;
height: 500px;
}
.explorer-frame iframe {
width: 100%;
height: 100%;
border: none;
}
/* Download */
.download {
padding: 80px 0;
background: var(--bg-secondary);
}
.download-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
}
.download-info h2 {
font-size: 36px;
margin-bottom: 20px;
}
.download-info p {
color: var(--text-secondary);
margin-bottom: 30px;
}
.download-steps {
list-style: none;
}
.download-steps li {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
color: var(--text-secondary);
}
.step-num {
width: 30px;
height: 30px;
background: var(--gradient);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
color: var(--bg-primary);
flex-shrink: 0;
}
.download-code {
background: var(--bg-tertiary);
border: 1px solid var(--border);
border-radius: 16px;
padding: 30px;
font-family: 'Monaco', 'Menlo', monospace;
}
.download-code h3 {
margin-bottom: 15px;
color: var(--accent);
}
.download-code pre {
color: var(--text-secondary);
font-size: 14px;
overflow-x: auto;
}
/* Footer */
footer {
padding: 60px 0 30px;
border-top: 1px solid var(--border);
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-col h4 {
font-size: 18px;
margin-bottom: 20px;
color: var(--accent);
}
.footer-col a {
display: block;
color: var(--text-secondary);
text-decoration: none;
margin-bottom: 12px;
transition: color 0.3s;
}
.footer-col a:hover {
color: var(--accent);
}
.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 1px solid var(--border);
color: var(--text-muted);
}
.footer-bottom a {
color: var(--accent);
text-decoration: none;
}
/* Mobile */
@media (max-width: 768px) {
.hero h1 {
font-size: 40px;
}
nav {
display: none;
}
.download-content {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="bg-pattern"></div>
<header>
<div class="container header-content">
<div class="logo">
<div class="logo-icon">🐰</div>
<span>NeoCoin</span>
</div>
<nav>
<a href="#features">Features</a>
<a href="#network">Network</a>
<a href="#explorer">Explorer</a>
<a href="#download">Download</a>
<a href="https://github.com/Neo4717/NeoCoin" class="nav-btn">GitHub</a>
</nav>
</div>
</header>
<section class="hero">
<div class="container">
<h1>Next Generation Blockchain</h1>
<p>A community-driven Proof-of-Work blockchain with AI-powered security, anonymous networking via Tor, and enterprise-grade features.</p>
<div class="hero-stats">
<div class="stat-box">
<div class="stat-value" id="blockHeight">--</div>
<div class="stat-label">Block Height</div>
</div>
<div class="stat-box">
<div class="stat-value" id="peersCount">--</div>
<div class="stat-label">Connected Peers</div>
</div>
<div class="stat-box">
<div class="stat-value" id="difficulty">--</div>
<div class="stat-label">Difficulty</div>
</div>
<div class="stat-box">
<div class="stat-value">50</div>
<div class="stat-label">Block Reward</div>
</div>
</div>
<div class="hero-buttons">
<a href="#download" class="btn btn-primary">Get Started →</a>
<a href="#explorer" class="btn btn-secondary">View Explorer</a>
</div>
</div>
</section>
<section class="features" id="features">
<div class="container">
<div class="section-header">
<h2>Why NeoCoin?</h2>
<p>A complete blockchain ecosystem with unique features</p>
</div>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">🤖</div>
<h3>AI-Powered Security</h3>
<p>Built-in AI monitors the network for anomalies, spam, and suspicious patterns in real-time.</p>
</div>
<div class="feature-card">
<div class="feature-icon">⛏️</div>
<h3>Proof-of-Work</h3>
<p>Classic PoW consensus with 21M max supply and Bitcoin-style halving every 210K blocks.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🌐</div>
<h3>Anonymous P2P</h3>
<p>Built-in Tor integration for anonymous node operation and private transactions.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<h3>Smart Contracts</h3>
<p>Secure EVM-compatible virtual machine for decentralized applications.</p>
</div>
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3>Fast Sync</h3>
<p>Bloom filters for lightweight clients and ultra-fast chain synchronization.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🛡️</div>
<h3>Enterprise Security</h3>
<p>Rate limiting, IP filtering, and advanced mempool spam protection.</p>
</div>
</div>
</div>
</section>
<section class="network" id="network">
<div class="container">
<div class="section-header">
<h2>Network Status</h2>
<p>Real-time statistics from the NeoCoin network</p>
</div>
<div class="network-grid">
<div class="network-card">
<div class="value" id="height">--</div>
<div class="label">Block Height</div>
<div class="network-status">
<div class="status-dot"></div>
<span style="color: var(--text-muted)">Live</span>
</div>
</div>
<div class="network-card">
<div class="value" id="peers">--</div>
<div class="label">Active Peers</div>
</div>
<div class="network-card">
<div class="value" id="supply">--</div>
<div class="label">Total Supply</div>
</div>
<div class="network-card">
<div class="value" id="reward">50</div>
<div class="label">Block Reward (NEO)</div>
</div>
</div>
<div style="text-align: center; margin-top: 40px;">
<h3 style="margin-bottom: 15px;">Connect to Network</h3>
<code style="background: var(--bg-tertiary); padding: 15px 25px; border-radius: 10px; display: inline-block;">
P2P_PEERS=lvf4ng4wzd7qjn6wapqloanuoapophr4soyr4tnxri6kup5wtoocs3yd.onion:9090
</code>
</div>
</div>
</section>
<section class="explorer-preview" id="explorer">
<div class="container">
<div class="section-header">
<h2>Blockchain Explorer</h2>
<p>Browse the NeoCoin blockchain in real-time</p>
</div>
<div class="explorer-frame">
<iframe src="/explorer/" id="explorerFrame"></iframe>
</div>
</div>
</section>
<section class="download" id="download">
<div class="container">
<div class="download-content">
<div class="download-info">
<h2>Join the Network</h2>
<p>Run your own NeoCoin node and be part of the decentralized future. Supports Linux, macOS, and Docker.</p>
<ul class="download-steps">
<li><span class="step-num">1</span> Clone the repository</li>
<li><span class="step-num">2</span> Build the binary</li>
<li><span class="step-num">3</span> Start your node</li>
<li><span class="step-num">4</span> Connect to network</li>
</ul>
</div>
<div class="download-code">
<h3>Quick Start</h3>
<pre># Clone
git clone https://github.com/Neo4717/NeoCoin.git
cd NeoCoin/blockchain
# Build
go build -o neocoin .
# Run
./neocoin server</pre>
<div style="margin-top: 20px;">
<a href="https://github.com/Neo4717/NeoCoin" class="btn btn-primary">View on GitHub →</a>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-col">
<h4>NeoCoin</h4>
<p style="color: var(--text-secondary);">A community-driven blockchain with AI-powered security.</p>
</div>
<div class="footer-col">
<h4>Resources</h4>
<a href="https://github.com/Neo4717/NeoCoin">GitHub</a>
<a href="/explorer/">Explorer</a>
<a href="#download">Documentation</a>
</div>
<div class="footer-col">
<h4>Network</h4>
<a href="#network">Status</a>
<a href="#explorer">Block Explorer</a>
<p style="color: var(--text-muted); margin-top: 10px; font-size: 14px;">Tor: lvf4ng4wzd7qjn6wapqloanuoapophr4soyr4tnxri6kup5wtoocs3yd.onion</p>
</div>
<div class="footer-col">
<h4>Legal</h4>
<a href="./LICENSE">License</a>
<a href="./COMMERCIAL_LICENSE.md">Commercial License</a>
</div>
</div>
<div class="footer-bottom">
<p>© 2026 NeoCoin Protocol. <a href="./COMMERCIAL_LICENSE.md">Commercial License</a> - Commercial use requires permission.</p>
</div>
</div>
</footer>
<script>
// Fetch chain info
async function updateStats() {
try {
const response = await fetch('/chain/info');
const data = await response.json();
document.getElementById('blockHeight').textContent = data.height || '0';
document.getElementById('peersCount').textContent = data.peersCount || '0';
document.getElementById('difficulty').textContent = data.difficultyBits || '1';
document.getElementById('height').textContent = data.height || '0';
document.getElementById('peers').textContent = data.peersCount || '0';
document.getElementById('supply').textContent = (data.totalSupply / 100000000).toFixed(0) + ' NEO';
} catch (e) {
console.log('Node not running locally');
}
}
updateStats();
setInterval(updateStats, 10000);
</script>
</body>
</html>