-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
553 lines (492 loc) · 33.7 KB
/
index.html
File metadata and controls
553 lines (492 loc) · 33.7 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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kadena Ecosystem | Community Hub</title>
<link rel="icon" type="image/svg+xml" href="img/favicon.svg">
<meta name="description"
content="The official community hub for the Kadena Blockchain (KDA). Explore the ecosystem, miners, wallets, and developers building on Chainweb and Pact.">
<meta name="keywords"
content="Kadena, KDA, Kadena Blockchain, Chainweb, Pact, Proof of Work, DeFi, DAO, Ecosystem, Mining, Smart Contracts, POW, Cryptocurrency, Crypto, Web3, Smart Contract Language, POW Blockchain">
<meta name="author" content="Kadena Community">
<link rel="canonical" href="https://kda-community.github.io/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://kda-community.github.io/">
<meta property="og:title" content="Kadena Ecosystem | Community Hub">
<meta property="og:description"
content="The official community hub for the Kadena Blockchain (KDA). Explore the ecosystem, miners, wallets, and developers building on Chainweb and Pact.">
<meta property="og:image" content="https://kda-community.github.io/img/og_card/og_index.png">
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://kda-community.github.io/">
<meta property="twitter:title" content="Kadena Ecosystem | Community Hub">
<meta property="twitter:description"
content="The official community hub for the Kadena Blockchain (KDA). Explore the ecosystem, miners, wallets, and developers building on Chainweb and Pact.">
<meta property="twitter:image" content="https://kda-community.github.io/img/og_card/og_index.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"name": "Kadena Community Ecosystem",
"url": "https://kda-community.github.io/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://kda-community.github.io/?q={search_term_string}",
"query-input": "required name=search_term_string"
}
},
{
"@type": "Organization",
"name": "Kadena Community",
"url": "https://kda-community.github.io/",
"logo": "https://kda-community.github.io/img/kadenace_dark.svg",
"sameAs": [
"https://x.com/KdaCed",
"https://medium.com/@communitykadena",
"https://discord.gg/T4mASjRaRr",
"https://t.me/+3JzP9i19cM8wOWQ8"
]
}
]
}
</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=JetBrains+Mono:wght@400;700&display=swap"
rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: {
sans: ['Inter', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
},
colors: {
brand: {
DEFAULT: '#63e038', /* Green */
hover: '#4ecf25',
},
dao: {
DEFAULT: '#f7931a', /* Orange */
hover: '#e0820b',
},
dev: {
DEFAULT: '#3498db', /* Blue */
hover: '#2980b9',
},
surface: {
light: '#FAFAFA',
dark: '#050505',
card: '#121212',
border: '#27272a'
},
text: {
mainLight: '#1e1f23',
mainDark: '#f5f5f5',
}
}
}
}
}
</script>
<style>
body {
transition: background-color 0.3s, color 0.3s;
}
.aspect-video {
aspect-ratio: 16 / 9;
}
</style>
</head>
<body
class="bg-surface-light dark:bg-surface-dark text-text-mainLight dark:text-text-mainDark font-sans antialiased selection:bg-brand selection:text-black overflow-x-hidden flex flex-col min-h-screen">
<nav
class="fixed w-full z-50 top-0 start-0 border-b border-gray-200 dark:border-surface-border bg-white/95 dark:bg-surface-dark/95 backdrop-blur-md">
<div class="max-w-7xl mx-auto flex flex-wrap items-center justify-between p-4">
<a href="index.html" class="flex items-center">
<img src="img/kadenace_dark.svg" class="h-9 md:h-12 w-auto block dark:hidden" alt="Kadena">
<img src="img/kadenace_light.svg" class="h-9 md:h-12 w-auto hidden dark:block" alt="Kadena">
</a>
<div class="flex md:order-2 space-x-2 md:space-x-4 items-center">
<button id="theme-toggle" type="button"
class="text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-lg text-sm p-2.5 transition-colors">
<svg id="theme-toggle-dark-icon" class="hidden w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
</svg>
<svg id="theme-toggle-light-icon" class="hidden w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path
d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 100 2h1z"
fill-rule="evenodd" clip-rule="evenodd"></path>
</svg>
</button>
<button id="menu-toggle" type="button"
class="inline-flex items-center p-2 w-10 h-10 justify-center text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800">
<svg class="w-5 h-5" fill="none" viewBox="0 0 17 14" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M1 1h15M1 7h15M1 13h15" />
</svg>
</button>
</div>
<div class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1" id="navbar-cta">
<ul
class="flex flex-col font-medium p-4 md:p-0 mt-4 border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 md:mt-0 md:border-0 md:bg-white dark:bg-surface-card md:dark:bg-transparent dark:border-gray-700 shadow-xl md:shadow-none relative z-50">
<li><a href="miners.html"
class="block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-brand dark:text-white dark:hover:bg-gray-700 dark:hover:text-brand">Miners</a>
</li>
<li><a href="developers.html"
class="block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-dev dark:text-white dark:hover:bg-gray-700 dark:hover:text-dev">Developers</a>
</li>
<li><a href="dao.html"
class="block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-dao dark:text-white dark:hover:bg-gray-700 dark:hover:text-dao">DAO</a>
</li>
<li><a href="ecosystem.html"
class="block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-brand dark:text-white dark:hover:bg-gray-700 dark:hover:text-brand">Ecosystem</a>
</li>
<li><a href="wallets.html"
class="block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-brand dark:text-white dark:hover:bg-gray-700 dark:hover:text-brand">Wallets</a>
</li>
<li><a href="https://explorer.chainweb-community.org/mainnet" target="_blank"
class="external-link block py-2 px-3 md:p-0 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-brand dark:text-white dark:hover:bg-gray-700 dark:hover:text-brand">Explorer</a>
</li>
</ul>
</div>
</div>
</nav>
<section class="pt-40 pb-24 px-4 relative z-10 w-full flex-grow">
<div class="max-w-5xl mx-auto text-center px-4">
<h1 class="font-extrabold tracking-tight leading-tight mb-10">
<span class="block text-4xl sm:text-5xl md:text-7xl text-[#f7931a] mt-1">Decentralized</span>
<span
class="block text-2xl sm:text-3xl md:text-5xl text-gray-900 dark:text-white mt-1">Programmable</span>
<span class="block text-4xl sm:text-5xl md:text-7xl text-[#3498db] mt-1">Proof-of-Work</span>
<span class="block text-3xl sm:text-4xl md:text-6xl text-brand mt-1">Blockchain</span>
</h1>
<p
class="mb-10 text-base md:text-lg font-normal text-gray-600 dark:text-gray-400 leading-relaxed max-w-3xl mx-auto">
With smart contracts written in <span
class="text-gray-900 dark:text-white font-mono font-bold">Pact</span>—Kadena’s exceptional
language—, secured by <span class="text-[#3498db] font-mono font-bold">Chainweb</span>’s scalable
architecture, and governed by a community-led <span
class="text-[#f7931a] font-mono font-bold">DAO</span>, we deliver unmatched performance for DeFi,
DePIN, and Real-World Assets.
</p>
<div class="flex flex-col space-y-4 sm:flex-row sm:justify-center sm:space-y-0 sm:space-x-4 mb-32">
<a href="developers.html"
class="inline-flex justify-center items-center py-3 px-8 text-base font-bold text-center text-black rounded-lg bg-brand hover:bg-brand-hover transition-all">
Start Building
<svg class="ml-2 -mr-1 w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd"
d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"
clip-rule="evenodd"></path>
</svg>
</a>
<a href="ecosystem.html"
class="inline-flex justify-center items-center py-3 px-8 text-base font-medium text-center text-gray-900 rounded-lg border border-gray-300 hover:bg-gray-100 dark:text-white dark:border-gray-700 dark:hover:bg-gray-800 dark:hover:border-brand transition-all">
Explore Ecosystem
</a>
</div>
<div class="max-w-7xl mx-auto text-left">
<div class="flex items-center mb-8">
<h2 class="text-2xl md:text-3xl font-bold">Community <span class="text-brand">Hub</span></h2>
<div class="h-px bg-gray-200 dark:bg-gray-800 flex-grow ml-6"></div>
</div>
<div id="community-grid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<a href="https://medium.com/@communitykadena/who-we-are-e7f4ac192e6e" target="_blank"
class="external-link group h-full flex flex-col bg-white dark:bg-surface-card border border-gray-200 dark:border-gray-800 rounded-xl hover:border-brand dark:hover:border-brand transition-all hover:-translate-y-1 overflow-hidden">
<div class="w-full aspect-video bg-[#151515] relative overflow-hidden">
<img src="img/team_light.svg"
onerror="this.src='https://placehold.co/600x400/151515/63e038?text=The+Team'"
alt="The Team"
class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105 block dark:hidden">
<img src="img/team_dark.svg"
onerror="this.src='https://placehold.co/600x400/151515/63e038?text=The+Team'"
alt="The Team"
class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105 hidden dark:block">
</div>
<div class="p-5 flex flex-col flex-grow">
<div class="flex items-center justify-between mb-3">
<span class="text-xs font-bold text-brand uppercase tracking-wider">About Us</span>
<svg class="w-5 h-5 text-gray-400 group-hover:text-brand" fill="none"
stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z">
</path>
</svg>
</div>
<h3 class="font-bold text-xl text-gray-900 dark:text-white mb-2">Meet the Team</h3>
<p class="text-sm text-gray-500 dark:text-gray-400">
Get to know the people behind the Kadena Community.
</p>
</div>
</a>
<a href="https://medium.com/@communitykadena/kda-community-edition-first-road-map-ac1a1ea43241"
target="_blank"
class="external-link group h-full flex flex-col bg-white dark:bg-surface-card border border-gray-200 dark:border-gray-800 rounded-xl hover:border-brand dark:hover:border-brand transition-all hover:-translate-y-1 overflow-hidden">
<div class="w-full aspect-video bg-white dark:bg-gray-800 relative overflow-hidden">
<img src="img/roadmap2025and2026.png"
onerror="this.src='https://placehold.co/600x400/121212/63e038?text=Roadmap'"
alt="Roadmap"
class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105">
</div>
<div class="p-5 flex flex-col flex-grow">
<div class="flex items-center justify-between mb-3">
<span class="text-xs font-bold text-brand uppercase tracking-wider">Vision</span>
<svg class="w-5 h-5 text-gray-400 group-hover:text-brand" fill="none"
stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7">
</path>
</svg>
</div>
<h3 class="font-bold text-xl text-gray-900 dark:text-white mb-2">First Roadmap</h3>
<p class="text-sm text-gray-500 dark:text-gray-400">
Our strategic plan for the KDA Community Edition.
</p>
</div>
</a>
</div>
</div>
</div>
</section>
<div id="warning-modal" class="fixed inset-0 z-[60] hidden" aria-labelledby="modal-title" role="dialog"
aria-modal="true">
<div class="fixed inset-0 bg-black/60 backdrop-blur-sm transition-opacity"></div>
<div class="fixed inset-0 z-10 w-screen overflow-y-auto">
<div class="flex min-h-full items-center justify-center p-4 text-center sm:p-0">
<div id="modal-panel"
class="relative transform overflow-hidden rounded-2xl bg-white dark:bg-surface-card border border-gray-200 dark:border-gray-800 text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-md">
<div class="p-6">
<div class="flex items-center justify-center mb-5">
<div class="rounded-full bg-gray-100 dark:bg-gray-800 p-4">
<img src="img/favicon.svg" alt="Kadena" class="h-10 w-10">
</div>
</div>
<div class="text-center">
<h3 class="text-xl font-bold leading-6 text-gray-900 dark:text-white" id="modal-title">
Leaving Website</h3>
<div class="mt-3">
<p class="text-sm text-gray-500 dark:text-gray-400">
You are about to visit an external third-party website. Are you sure you want to
proceed?
</p>
</div>
</div>
</div>
<div class="bg-gray-50 dark:bg-[#0a0a0a] px-6 py-4 flex flex-row-reverse gap-3 sm:px-6">
<button type="button" id="btn-proceed"
class="inline-flex w-full justify-center rounded-lg bg-brand px-3 py-2 text-sm font-bold text-black shadow-sm hover:bg-brand-hover sm:w-auto transition-colors">Visit
Site</button>
<button type="button" id="btn-cancel"
class="inline-flex w-full justify-center rounded-lg bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-gray-300 shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 hover:bg-gray-50 dark:hover:bg-gray-700 sm:w-auto transition-colors">Go
Back</button>
</div>
</div>
</div>
</div>
</div>
<footer
class="bg-white dark:bg-surface-card border-t border-gray-200 dark:border-gray-800 relative z-10 mt-auto transition-colors duration-300">
<div class="w-full max-w-7xl mx-auto py-8 px-4 flex flex-col items-center justify-center gap-6">
<div class="flex items-center space-x-6">
<a href="https://medium.com/@communitykadena" target="_blank"
class="external-link text-gray-400 hover:text-brand transition-colors" aria-label="Medium">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M13.54 12a6.8 6.8 0 01-6.77 6.82A6.8 6.8 0 010 12a6.8 6.8 0 016.77-6.82A6.8 6.8 0 0113.54 12zM20.96 12c0 3.54-1.51 6.42-3.38 6.42-1.87 0-3.39-2.88-3.39-6.42s1.52-6.42 3.39-6.42 3.38 2.88 3.38 6.42M24 12c0 3.17-.53 5.75-1.19 5.75-.66 0-1.19-2.58-1.19-5.75s.53-5.75 1.19-5.75C23.47 6.25 24 8.83 24 12z" />
</svg>
</a>
<a href="https://x.com/KdaCed/communities/explore" target="_blank"
class="external-link text-gray-400 hover:text-brand transition-colors" aria-label="X">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z">
</path>
</svg>
</a>
<a href="https://t.me/+3JzP9i19cM8wOWQ8" target="_blank"
class="external-link text-gray-400 hover:text-brand transition-colors" aria-label="Telegram">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 11.944 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" />
</svg>
</a>
<a href="https://discord.gg/T4mASjRaRr" target="_blank"
class="external-link text-gray-400 hover:text-brand transition-colors" aria-label="Discord">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.419-2.1568 2.419zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.419-2.1568 2.419z" />
</svg>
</a>
<a href="https://bsky.app/profile/kdacommunity.bsky.social" target="_blank"
class="text-gray-400 hover:text-brand transition-colors" aria-label="Bluesky">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path
d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565-.131 2.032-.234 3.024.338 4.089c.571 1.065 2.613 4.88 2.613 4.88l1.616 3.118s-3.018-.086-4.218 3.323c-.975 2.765 2.393 4.613 5.627 3.566 3.038-.984 5.293-3.659 6.024-4.88.73 1.221 2.986 3.896 6.024 4.88 3.234 1.047 6.602-.801 5.627-3.566-1.2-3.409-4.218-3.323-4.218-3.323l1.616-3.118s2.042-3.815 2.613-4.88c.572-1.065.469-2.057-.564-2.524-.66-.299-1.664-.621-4.3 1.24C16.046 4.748 13.087 8.686 12 10.8Z" />
</svg>
</a>
</div>
<div class="text-center">
<span class="block text-sm text-gray-500 sm:text-center dark:text-gray-400"> © <span
id="current-year"></span> <a href="#" class="hover:text-brand">Kadena Community Edition</a>. All
Rights Reserved.</span>
</div>
</div>
</footer>
<script>
// --- UNIVERSAL MODAL LOGIC ---
const modal = document.getElementById('warning-modal');
const btnProceed = document.getElementById('btn-proceed');
const btnCancel = document.getElementById('btn-cancel');
let targetUrl = '';
function openModal(url) {
targetUrl = url;
modal.classList.remove('hidden');
}
function closeModal() {
modal.classList.add('hidden');
targetUrl = '';
}
// Smart Event Delegation for ALL external links
document.body.addEventListener('click', (event) => {
// Find the closest anchor tag (<a>) to the click
const link = event.target.closest('a');
if (!link) return; // If not a link, do nothing
// Criteria to trigger the popup:
// 1. It is inside a Card (Project, Miner, Wallet, Tool)
const isCardLink = link.closest('.project-card') || link.closest('.miner-card') || link.closest('.wallet-card') || link.closest('.group');
// 2. It is inside the Footer
const isFooterLink = link.closest('footer');
// 3. It has the specific class 'external-link' (For Navbar Explorer & Dynamic News)
const isExplicitExternal = link.classList.contains('external-link');
// 4. It is the Setup Guide Button
const isSetupButton = link.id === 'setup-guide-btn';
// COMBINED CHECK:
// If it matches ANY criteria above AND it is NOT an internal anchor (#) or javascript
if ((isCardLink || isFooterLink || isExplicitExternal || isSetupButton) && !link.href.startsWith('javascript') && !link.href.includes('#')) {
// Final Check: Is it actually an external domain?
const currentDomain = window.location.hostname;
// If hostname is different (and not empty for local testing), trigger modal
if (link.hostname !== currentDomain && link.hostname !== '') {
event.preventDefault(); // Stop the immediate navigation
openModal(link.href); // Show our custom modal
}
}
});
// Proceed Button (User clicked "Visit Site")
btnProceed.addEventListener('click', () => {
if (targetUrl) {
window.open(targetUrl, '_blank');
closeModal();
}
});
// Cancel Button (User clicked "Go Back")
btnCancel.addEventListener('click', closeModal);
// Click Outside to Close
modal.addEventListener('click', (e) => {
const panel = document.getElementById('modal-panel');
if (!panel.contains(e.target)) {
closeModal();
}
});
// 2. AUTOMATIC MEDIUM FEED FETCHING
document.addEventListener('DOMContentLoaded', function () {
const rssUrl = 'https://medium.com/feed/@communitykadena';
const apiUrl = `https://api.rss2json.com/v1/api.json?rss_url=${encodeURIComponent(rssUrl)}`;
const container = document.getElementById('community-grid');
fetch(apiUrl)
.then(response => response.json())
.then(data => {
if (data.status === 'ok') {
// Filter out specific static articles to avoid duplicates
const filteredItems = data.items.filter(item => {
const t = item.title.toLowerCase();
return !t.includes('who we are') && !t.includes('road map');
});
// Take the latest 4 articles
const latestArticles = filteredItems.slice(0, 4);
latestArticles.forEach(article => {
let imgUrl = article.thumbnail;
if (!imgUrl) {
const imgMatch = article.content.match(/<img[^>]+src="([^">]+)"/);
if (imgMatch) imgUrl = imgMatch[1];
else imgUrl = 'https://placehold.co/600x400/121212/63e038?text=News'; // Fallback
}
// Create HTML Card (Added class='external-link')
const cardHtml = `
<a href="${article.link}" target="_blank" class="external-link group h-full flex flex-col bg-white dark:bg-surface-card border border-gray-200 dark:border-gray-800 rounded-xl hover:border-brand dark:hover:border-brand transition-all hover:-translate-y-1 overflow-hidden">
<div class="w-full aspect-video bg-gray-100 dark:bg-gray-800 relative overflow-hidden border-b border-gray-100 dark:border-gray-800">
<img src="${imgUrl}" alt="${article.title}" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105">
</div>
<div class="p-5 flex flex-col flex-grow">
<div class="flex items-center justify-between mb-3">
<span class="text-xs font-bold text-gray-500 uppercase tracking-wider">Latest News</span>
<svg class="w-4 h-4 text-gray-400 group-hover:text-brand" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path></svg>
</div>
<h3 class="font-bold text-lg text-gray-900 dark:text-white mb-2 line-clamp-2">${article.title}</h3>
<p class="text-xs text-gray-400 mt-auto pt-2">${new Date(article.pubDate).toLocaleDateString()}</p>
</div>
</a>
`;
container.insertAdjacentHTML('beforeend', cardHtml);
});
}
})
.catch(error => console.log('Error fetching Medium feed:', error));
});
// 3. Dark Mode Logic
var themeToggleDarkIcon = document.getElementById('theme-toggle-dark-icon');
var themeToggleLightIcon = document.getElementById('theme-toggle-light-icon');
if (localStorage.getItem('color-theme') === 'dark' || (!('color-theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
themeToggleLightIcon.classList.remove('hidden');
document.documentElement.classList.add('dark');
} else {
themeToggleDarkIcon.classList.remove('hidden');
document.documentElement.classList.remove('dark');
}
var themeToggleBtn = document.getElementById('theme-toggle');
themeToggleBtn.addEventListener('click', function () {
themeToggleDarkIcon.classList.toggle('hidden');
themeToggleLightIcon.classList.toggle('hidden');
if (localStorage.getItem('color-theme')) {
if (localStorage.getItem('color-theme') === 'light') {
document.documentElement.classList.add('dark');
localStorage.setItem('color-theme', 'dark');
} else {
document.documentElement.classList.remove('dark');
localStorage.setItem('color-theme', 'light');
}
} else {
if (document.documentElement.classList.contains('dark')) {
document.documentElement.classList.remove('dark');
localStorage.setItem('color-theme', 'light');
} else {
document.documentElement.classList.add('dark');
localStorage.setItem('color-theme', 'dark');
}
}
});
// 4. Burger Menu
const menuToggle = document.getElementById('menu-toggle');
const navbarCta = document.getElementById('navbar-cta');
menuToggle.addEventListener('click', (e) => {
e.stopPropagation();
navbarCta.classList.toggle('hidden');
});
document.addEventListener('click', (event) => {
const isClickInsideMenu = navbarCta.contains(event.target);
const isClickOnButton = menuToggle.contains(event.target);
if (!isClickInsideMenu && !isClickOnButton) {
navbarCta.classList.add('hidden');
}
});
// AUTOMATIC YEAR UPDATE
document.getElementById('current-year').textContent = new Date().getFullYear();
</script>
</body>
</html>