-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (146 loc) · 4.39 KB
/
index.html
File metadata and controls
156 lines (146 loc) · 4.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeFi Visualized</title>
<style>
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
color: #e4e4e4;
min-height: 100vh;
margin: 0;
padding: 40px 20px;
}
.container {
max-width: 700px;
margin: 0 auto;
}
h1 {
color: #00d9ff;
margin-bottom: 8px;
}
.subtitle {
color: #888;
margin-bottom: 40px;
font-size: 18px;
}
.examples {
display: flex;
flex-direction: column;
gap: 16px;
}
.example {
display: block;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 20px 24px;
text-decoration: none;
color: inherit;
transition: transform 0.15s, border-color 0.15s;
}
.example:hover {
transform: translateY(-2px);
border-color: #00d9ff;
}
.example-title {
color: #00d9ff;
font-size: 20px;
font-weight: 600;
margin-bottom: 8px;
}
.example-desc {
color: #aaa;
font-size: 15px;
line-height: 1.5;
}
.coming-soon {
opacity: 0.5;
pointer-events: none;
}
.coming-soon .example-title::after {
content: " (coming soon)";
font-size: 12px;
color: #666;
font-weight: normal;
}
footer {
margin-top: 60px;
text-align: center;
color: #666;
font-size: 14px;
}
footer a {
color: #00d9ff;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 20px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-left: 10px;
vertical-align: middle;
}
.badge-blockchain {
background: rgba(255, 159, 67, 0.2);
color: #ff9f43;
}
.section-divider {
margin: 32px 0 24px;
padding-top: 24px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 13px;
color: #666;
text-transform: uppercase;
letter-spacing: 1px;
}
</style>
</head>
<body>
<div class="container">
<h1>DeFi Visualized</h1>
<p class="subtitle">Interactive explorations of web3 concepts</p>
<div class="examples">
<div class="section-divider">Blockchain Basics</div>
<a href="seed-phrase-entropy.html" class="example">
<div class="example-title">Seed Phrase Entropy</div>
<div class="example-desc">Why nobody can guess your 12-word seed phrase. Visualize the astronomical number of possibilities with a slot machine animation.</div>
</a>
<div class="section-divider">DeFi concepts</div>
<a href="amm-price-impact.html" class="example">
<div class="example-title">AMM Price Impact</div>
<div class="example-desc">Visualize the constant product formula (x × y = k) and see how trade size affects slippage.</div>
</a>
<a href="impermanent-loss.html" class="example">
<div class="example-title">Impermanent Loss</div>
<div class="example-desc">Understand the hidden cost of providing liquidity and when it actually matters.</div>
</a>
<div class="section-divider">Not reviewed yet (proceed with caution)</div>
<a href="bonding-curve.html" class="example">
<div class="example-title">Bonding Curve</div>
<div class="example-desc">See how token price changes based on supply. Explore different curve types, simulate buys and sells, and understand how reserves accumulate.</div>
</a>
<a href="liquidation-threshold.html" class="example">
<div class="example-title">Liquidation Threshold</div>
<div class="example-desc">Watch a position's health factor change as prices move toward liquidation.</div>
</a>
<a href="concentrated-liquidity.html" class="example">
<div class="example-title">Concentrated Liquidity</div>
<div class="example-desc">See how narrowing your price range increases capital efficiency in Uniswap v3 style pools.</div>
</a>
</div>
</div>
</body>
</html>