forked from unicornlaunching/stacksecosystem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_mobile.html
535 lines (503 loc) · 26.7 KB
/
index_mobile.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stacks Ecosystem Mobile Map</title>
<!-- Include D3.js library for data visualization -->
<script src="https://d3js.org/d3.v7.min.js"></script>
<style>
/* CSS styles for the page layout and visualization */
body, html {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
font-size: 14px;
height: 100%;
width: 100%;
overflow: hidden;
}
/* Styles for the main visualization container */
#visualization {
width: 100%;
height: 100%;
}
/* Styles for the nodes in the visualization */
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 2px;
}
.node text {
font: 12px sans-serif;
fill: #333;
}
/* Styles for the links between nodes */
.link {
fill: none;
stroke: #ccc;
stroke-width: 1px;
}
/* Styles for the information panel */
#infoPanel {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.9);
padding: 15px;
display: none;
max-height: 50%;
overflow-y: auto;
}
#closeInfo {
float: right;
cursor: pointer;
font-size: 20px;
}
</style>
</head>
<body>
<!-- Main container for the visualization -->
<div id="visualization"></div>
<!-- Information panel to display details about selected items -->
<div id="infoPanel">
<span id="closeInfo">×</span>
<h3 id="infoTitle"></h3>
<p id="infoDescription"></p>
<a id="infoLink" target="_blank"></a>
</div>
<script>
// Define the data structure for the Stacks ecosystem
const data = {
name: "Stacks Ecosystem",
children: [
{
name: "Core Infrastructure",
children: [
{ name: "Stacks Blockchain", url: "https://www.stacks.co/" },
{ name: "Clarity Smart Contracts", url: "https://clarity-lang.org/" },
{ name: "Proof of Transfer (PoX)", url: "https://docs.stacks.co/understand-stacks/proof-of-transfer" },
{ name: "Stacks 2.0", url: "https://www.stacks.co/stacks-2" },
{ name: "Nakamoto Release", url: "https://stacks.org/nakamoto" },
{ name: "sBTC", url: "https://www.stacks.co/sbtc" }
]
},
{
name: "Wallets",
children: [
{ name: "Xverse", url: "https://www.xverse.app/" },
{ name: "Hiro Wallet", url: "https://wallet.hiro.so/" },
{ name: "Stack Wallet", url: "https://stackswallet.com/" },
{ name: "Leather", url: "https://leather.io/" },
{ name: "MyStacks Wallet", url: "https://www.mystacks.xyz/" },
{ name: "Boom Wallet", url: "https://boom.money/" }
]
},
{
name: "Exchanges",
children: [
{ name: "Binance", url: "https://www.binance.com/en/trade/STX_USDT" },
{ name: "OKX", url: "https://www.okx.com/trade-spot/stx-usdt" },
{ name: "Bybit", url: "https://www.bybit.com/en-US/trade/spot/STX/USDT" },
{ name: "KuCoin", url: "https://www.kucoin.com/trade/STX-USDT" },
{ name: "Gate.io", url: "https://www.gate.io/trade/STX_USDT" },
{ name: "Crypto.com", url: "https://crypto.com/exchange/trade/spot/STX_USDT" },
{ name: "Bitfinex", url: "https://trading.bitfinex.com/t/STX:USD" },
{ name: "Huobi", url: "https://www.huobi.com/en-us/exchange/stx_usdt" },
{ name: "Kraken", url: "https://www.kraken.com/prices/stx-stacks-price-chart/usd-us-dollar?interval=1m" }
]
},
{
name: "DeFi",
children: [
{ name: "ALEX", url: "https://www.alexgo.io/" },
{ name: "Arkadiko", url: "https://arkadiko.finance/" },
{ name: "Zest Protocol", url: "https://zestprotocol.com/" },
{ name: "LNSwap", url: "https://lnswap.org/" },
{ name: "Lydian", url: "https://lydian.xyz/" },
{ name: "Stackswap", url: "https://stackswap.org/" },
{ name: "Catamaran Swaps", url: "https://www.catamaranswaps.org/" },
{ name: "Bitflow", url: "https://bitflow.finance/" },
{ name: "STSW Token", url: "https://www.stsw.io/" },
{ name: "Stacks Degens", url: "https://stacksdegens.com/" }
]
},
{
name: "NFTs",
children: [
{ name: "Gamma", url: "https://gamma.io/" },
{ name: "STXNFT", url: "https://stxnft.com/" },
{ name: "Tradeport", url: "https://www.tradeport.xyz/" },
{ name: "Byzantion", url: "https://byzantion.xyz/" },
{ name: "Megapont", url: "https://megapont.com/" },
{ name: "StacksArt", url: "https://www.stacksart.com/" },
{ name: "Boom", url: "https://boom.money/" },
{ name: "Sigle", url: "https://www.sigle.io/" },
{ name: "Crashpunks", url: "https://crashpunks.com/" },
{ name: "Stacks Punks", url: "https://stackspunks.com/" }
]
},
{
name: "Infrastructure",
children: [
{ name: "Hiro", url: "https://www.hiro.so/" },
{ name: "Stacks Foundation", url: "https://stacks.org/" },
{ name: "Secret Key Labs", url: "https://secretkeylabs.com/" },
{ name: "Trust Machines", url: "https://trustmachines.co/" },
{ name: "Daemon Technologies", url: "https://daemontechnologies.co/" },
{ name: "Freehold", url: "https://joinfreehold.com/" },
{ name: "New Internet Labs", url: "https://newinternetlabs.com/" },
{ name: "Mechanism Capital", url: "https://www.mechanism.capital/" },
{ name: "Stacks Accelerator", url: "https://www.stacksaccelerator.com/" }
]
},
{
name: "Developer Tools",
children: [
{ name: "Clarinet", url: "https://github.com/hirosystems/clarinet" },
{ name: "Stacks.js", url: "https://github.com/hirosystems/stacks.js" },
{ name: "Clarity Tools", url: "https://clarity.tools/" },
{ name: "Stacks Explorer", url: "https://explorer.stacks.co/" },
{ name: "Stacks API", url: "https://docs.hiro.so/api" },
{ name: "Chainhook", url: "https://chainhook.rs/" },
{ name: "Clarity VSCode Extension", url: "https://marketplace.visualstudio.com/items?itemName=HiroSystems.clarity-lsp" },
{ name: "Stacks Blockchain API", url: "https://docs.hiro.so/api" },
{ name: "Stacks Node", url: "https://docs.stacks.co/understand-stacks/running-mainnet-node" }
]
},
{
name: "Education",
children: [
{ name: "Clarity Universe", url: "https://clarity-lang.org/universe" },
{ name: "Stacks Documentation", url: "https://docs.stacks.co/" },
{ name: "Stacks Academy", url: "https://stacks.academy/" },
{ name: "Learn Stacks", url: "https://learn.stacks.co/" },
{ name: "Clarity Book", url: "https://book.clarity-lang.org/" },
{ name: "Stacks Community", url: "https://community.stacks.org/" }
]
},
{
name: "Governance",
children: [
{ name: "Stacks Governance", url: "https://stacks.org/governance" },
{ name: "Stacks Improvement Proposals (SIPs)", url: "https://github.com/stacksgov/sips" },
{ name: "Stacks Foundation Grants", url: "https://stacks.org/grants" }
]
},
{
name: "Community",
children: [
{ name: "Stacks Discord", url: "https://discord.gg/stacks" },
{ name: "Stacks Forum", url: "https://forum.stacks.org/" },
{ name: "Stacks Telegram", url: "https://t.me/StacksChat" },
{ name: "Stacks Reddit", url: "https://www.reddit.com/r/stacks/" },
{ name: "Stacks Twitter", url: "https://twitter.com/Stacks" },
{ name: "Stacks YouTube", url: "https://www.youtube.com/c/Stacks" }
]
},
{
name: "Key People",
children: [
{
name: "Founders & Core Team",
children: [
{ name: "Muneeb Ali", description: "Co-founder of Stacks, CEO of Trust Machines" },
{ name: "Ryan Shea", description: "Co-founder of Stacks" },
{ name: "Jude Nelson", description: "Principal Engineer at Stacks Foundation" },
{ name: "Aaron Blankstein", description: "Engineer at Hiro Systems" },
{ name: "Diwaker Gupta", description: "Head of Technology at Hiro" },
{ name: "Mitchell Cuevas", description: "Head of Growth at Stacks Foundation" },
{ name: "Jenny Mith", description: "Executive Director of Stacks Foundation" },
{ name: "Patrick Stanley", description: "Founder of Freehold" },
{ name: "Brittany Laughlin", description: "Executive Director at Stacks Foundation" },
{ name: "Jesse Soslow", description: "Head of Legal and Regulatory Affairs at Hiro" }
]
},
{
name: "Advisors",
children: [
{ name: "Naval Ravikant", description: "Founder of AngelList" },
{ name: "Albert Wenger", description: "Managing Partner at Union Square Ventures" },
{ name: "Meltem Demirors", description: "CSO of CoinShares" },
{ name: "Michael Terpin", description: "Founder of Transform Group" },
{ name: "William Mougayar", description: "Author and blockchain advisor" }
]
},
{
name: "Investors",
children: [
{
name: "Stacks Ecosystem Investors",
children: [
{ name: "Union Square Ventures", description: "VC firm, early investor in Stacks" },
{ name: "Winklevoss Capital", description: "Investment firm founded by Tyler and Cameron Winklevoss" },
{ name: "Blockchain Capital", description: "Venture capital firm focusing on blockchain" },
{ name: "Digital Currency Group", description: "Company focusing on the digital currency market" },
{ name: "Draper Associates", description: "VC firm founded by Tim Draper" },
{ name: "Fenbushi Capital", description: "Venture capital firm focusing on blockchain-enabled companies" },
{ name: "Lux Capital", description: "VC firm investing in emerging technologies" },
{ name: "Rising Tide", description: "VC firm" },
{ name: "Y Combinator", description: "Startup accelerator" },
{ name: "Coinbase Ventures", description: "Investment arm of Coinbase" }
]
},
{
name: "ALEX Investors",
children: [
{ name: "OKX Blockdream Ventures", description: "Venture arm of OKX exchange" },
{ name: "STV", description: "Blockchain-focused venture capital firm" },
{ name: "Mirana Ventures", description: "Venture capital firm" },
{ name: "Hack VC", description: "Crypto-native venture fund" },
{ name: "Digital Currency Group", description: "Company focusing on the digital currency market" }
]
},
{
name: "Xverse Investors",
children: [
{ name: "Digital Currency Group", description: "Company focusing on the digital currency market" },
{ name: "Blockchain Founders Fund", description: "Venture capital firm" },
{ name: "Mechanism Capital", description: "Crypto-focused investment firm" },
{ name: "OKX Blockdream Ventures", description: "Venture arm of OKX exchange" },
{ name: "Hivemind", description: "Crypto-focused venture fund" }
]
},
{
name: "Zest Protocol Investors",
children: [
{ name: "Draper Associates", description: "VC firm founded by Tim Draper" },
{ name: "Binance Labs", description: "Venture arm of Binance exchange" },
{ name: "Flow Traders", description: "Global trading firm" },
{ name: "Trust Machines", description: "Company building on Bitcoin through Stacks" },
{ name: "Hivemind", description: "Crypto-focused venture fund" },
{ name: "Cadenza", description: "Venture capital firm" }
]
},
{
name: "Velar Investors",
children: [
{ name: "Blockchain Founders Fund", description: "Venture capital firm" },
{ name: "Blockwall Capital", description: "Blockchain and crypto investment firm" },
{ name: "Moonrock Capital", description: "Blockchain advisory and investment firm" },
{ name: "Woodstock Fund", description: "Multi-asset investment fund" }
]
},
{
name: "Other Project Investors",
children: [
{ name: "Stacks Foundation", description: "Non-profit organization supporting Stacks ecosystem" },
{ name: "Trust Machines", description: "Company building on Bitcoin through Stacks" },
{ name: "Freehold", description: "Community-focused organization in Stacks ecosystem" },
{ name: "Mechanism Capital", description: "Crypto-focused investment firm" },
{ name: "1confirmation", description: "Crypto-focused venture capital firm" },
{ name: "Collider Ventures", description: "Early-stage venture capital firm" }
]
}
]
},
{
name: "Project Leaders",
children: [
{ name: "Marvin Janssen", description: "Co-founder of ALEX" },
{ name: "Chiente Hsu", description: "Co-founder of ALEX" },
{ name: "Ken Liao", description: "Co-founder of Arkadiko" },
{ name: "Philip De Smedt", description: "Co-founder of Arkadiko" },
{ name: "Jamil Dhanani", description: "Founder of Zest Protocol" },
{ name: "Léonard Salomon", description: "Founder of Lydian" },
{ name: "Phillip Roe", description: "Co-founder of Megapont" },
{ name: "Yannick Folla", description: "Co-founder of Gamma" }
]
},
{
name: "Community Leaders",
children: [
{ name: "Thomas Osmonson", description: "Stacks community developer" },
{ name: "Xan Ditkoff", description: "Growth lead at Stacks Foundation" },
{ name: "Jason Schrader", description: "Developer advocate" },
{ name: "Brice Dobry", description: "Community manager" },
{ name: "Fernando Hernandez", description: "Developer relations at Hiro" }
]
},
{
name: "Technical Contributors",
children: [
{ name: "Friedger Müffke", description: "Stacks core developer" },
{ name: "Ludo Galabru", description: "Engineer at Hiro" },
{ name: "Ken Liao", description: "Clarity language contributor" },
{ name: "Hank Stoever", description: "Engineer at Hiro" },
{ name: "Matthew Little", description: "Stacks core developer" }
]
}
]
}
]
};
// Define color scheme for different categories
const colorScheme = {
"Core Infrastructure": "#FF6B6B",
"Wallets": "#4ECDC4",
"Exchanges": "#45B7D1",
"DeFi": "#FFA500",
"NFTs": "#7FDBFF",
"Infrastructure": "#9B59B6",
"Developer Tools": "#2ECC71",
"Education": "#E74C3C",
"Governance": "#3498DB",
"Community": "#F39C12",
"Key People": "#1ABC9C",
"default": "#CCCCCC"
};
// Set up the dimensions for the visualization
const width = window.innerWidth;
const height = window.innerHeight;
// Create the SVG container for the visualization
const svg = d3.select("#visualization")
.append("svg")
.attr("width", width)
.attr("height", height)
.append("g")
.attr("transform", `translate(${width / 2},${height / 2})`);
// Calculate the radius for the radial tree
const radius = Math.min(width, height) / 2 - 80;
// Create the tree layout
const tree = d3.tree()
.size([2 * Math.PI, radius])
.separation((a, b) => (a.parent == b.parent ? 5 : 8) / a.depth);
// Create the root node of the tree
const root = d3.hierarchy(data);
root.descendants().forEach((d, i) => {
d.id = i;
d._children = d.children;
if (d.depth > 1) d.children = null;
});
// Function to update the visualization
function update(source) {
// Generate the tree data
const treeData = tree(root);
const nodes = treeData.descendants();
const links = treeData.links();
// Update the links
const link = svg.selectAll("path.link")
.data(links, d => d.target.id);
// Enter new links
const linkEnter = link.enter().append("path")
.attr("class", "link")
.attr("d", d3.linkRadial()
.angle(d => source.x0)
.radius(d => source.y0));
// Update existing links
const linkUpdate = linkEnter.merge(link);
// Transition links to their new position
linkUpdate.transition()
.duration(500)
.attr("d", d3.linkRadial()
.angle(d => d.x)
.radius(d => d.y));
// Remove old links
const linkExit = link.exit().transition()
.duration(500)
.attr("d", d3.linkRadial()
.angle(d => source.x)
.radius(d => source.y))
.remove();
// Update the nodes
const node = svg.selectAll("g.node")
.data(nodes, d => d.id);
// Enter new nodes
const nodeEnter = node.enter()
.append("g")
.attr("class", "node")
.attr("transform", d => `rotate(${d.x * 180 / Math.PI - 90}) translate(${d.y},0)`)
.on("click", (event, d) => {
// Toggle children on click
event.stopPropagation();
if (d.children) {
d._children = d.children;
d.children = null;
} else {
d.children = d._children;
d._children = null;
}
update(d);
});
// Add circles to nodes
nodeEnter.append("circle")
.attr("r", 5)
.attr("fill", d => d._children ? "#555" : (colorScheme[d.data.name] || colorScheme.default));
// Add text labels to nodes
const textEnter = nodeEnter.append("text")
.attr("dy", "0.31em")
.attr("x", d => d.x < Math.PI === !d.children ? 8 : -8)
.attr("text-anchor", d => d.x < Math.PI === !d.children ? "start" : "end")
.attr("transform", d => d.x >= Math.PI ? "rotate(180)" : null)
.style("font-size", "10px")
.style("cursor", "pointer");
textEnter.append("tspan")
.text(d => d.data.name)
.on("click", (event, d) => {
// Open URL or show info panel on text click
event.stopPropagation();
if (d.data.url) {
window.open(d.data.url, "_blank");
} else {
showInfoPanel(d);
}
});
// Add a white background to text for better readability
textEnter.clone(true).lower()
.attr("stroke", "white")
.attr("stroke-width", 3);
// Update existing nodes
node.merge(nodeEnter)
.transition()
.duration(500)
.attr("transform", d => `rotate(${d.x * 180 / Math.PI - 90}) translate(${d.y},0)`);
// Update node colors
node.select("circle")
.attr("fill", d => d._children ? "#555" : (colorScheme[d.data.name] || colorScheme.default));
// Remove old nodes
node.exit().remove();
// Store the old positions for transitions
nodes.forEach(d => {
d.x0 = d.x;
d.y0 = d.y;
});
}
// Initialize the visualization
root.x0 = 0;
root.y0 = 0;
update(root);
// Add zoom functionality
const zoom = d3.zoom()
.scaleExtent([0.5, 5])
.on("zoom", (event) => {
svg.attr("transform", event.transform);
});
d3.select("svg").call(zoom);
// Set initial zoom level
const initialScale = 0.8;
svg.attr("transform", `scale(${initialScale})`);
// Add functionality to close the info panel
document.getElementById("closeInfo").addEventListener("click", () => {
document.getElementById("infoPanel").style.display = "none";
});
// Function to show the info panel with node details
function showInfoPanel(d) {
const infoPanel = document.getElementById("infoPanel");
const infoTitle = document.getElementById("infoTitle");
const infoDescription = document.getElementById("infoDescription");
const infoLink = document.getElementById("infoLink");
infoTitle.textContent = d.data.name;
infoDescription.textContent = d.data.description || "No description available.";
if (d.data.url) {
infoLink.href = d.data.url;
infoLink.textContent = "Learn More";
} else {
infoLink.href = "";
infoLink.textContent = "";
}
infoPanel.style.display = "block";
}
</script>
</body>
</html>