-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (96 loc) · 3.56 KB
/
Copy pathindex.html
File metadata and controls
100 lines (96 loc) · 3.56 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
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="dark light" />
<title>Cryptolive Dashboard</title>
<link rel="preconnect" href="https://api.coingecko.com" />
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
<link rel="stylesheet" href="style.css" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.9/dist/chart.umd.min.js" defer></script>
<script src="app.js" defer></script>
</head>
<body>
<main class="shell">
<header class="topbar" aria-label="Market overview">
<section class="brand-block">
<div>
<p class="eyebrow">Crypto Live Terminal</p>
<h1>Cryptolive</h1>
</div>
<div class="stream-pill" aria-live="polite">
<span class="pulse-dot"></span>
<span id="streamStatus">SSE-like /api/stream</span>
</div>
</section>
<section class="metrics-grid" aria-label="Market metrics">
<article class="metric">
<span class="metric-label">Market Cap</span>
<strong id="marketCap">--</strong>
</article>
<article class="metric">
<span class="metric-label">BTC Dominance</span>
<strong id="btcDominance">--</strong>
</article>
<article class="metric">
<span class="metric-label">Fear & Greed</span>
<strong id="fearGreed">63</strong>
</article>
<article class="metric theme-card">
<span class="metric-label">Theme</span>
<button class="theme-toggle" id="themeToggle" type="button" aria-label="Toggle light theme" aria-pressed="false">
<span class="toggle-track">
<span class="toggle-thumb"></span>
</span>
<span id="themeLabel">Dark</span>
</button>
</article>
</section>
</header>
<section class="chart-section" aria-label="Selected coin chart">
<div class="section-heading">
<div>
<p class="eyebrow">7 day history</p>
<h2 id="chartTitle">Select a coin</h2>
</div>
<span id="chartMeta">Chart initializes on demand</span>
</div>
<div class="chart-wrap">
<canvas id="priceChart" aria-label="7 day price chart" role="img"></canvas>
<div class="chart-placeholder" id="chartPlaceholder">
<span>Click any row to load the 7 day chart</span>
</div>
</div>
</section>
<section class="market-section" aria-label="Top 20 cryptocurrency quotes">
<div class="section-heading table-heading">
<div>
<p class="eyebrow">Spot market</p>
<h2>Top 20 Cryptocurrencies</h2>
</div>
<span id="lastUpdated">Waiting for market data</span>
</div>
<div class="table-frame">
<table>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Asset</th>
<th scope="col">Price</th>
<th scope="col">24h</th>
<th scope="col">Volume</th>
<th scope="col">Sparkline</th>
</tr>
</thead>
<tbody id="marketTable">
<tr>
<td colspan="6" class="loading-cell">Loading market data...</td>
</tr>
</tbody>
</table>
</div>
</section>
</main>
</body>
</html>