Repository navigation
Expand file tree
/
Copy pathportal.html
More file actions
333 lines (322 loc) · 22.9 KB
/
Copy pathportal.html
File metadata and controls
333 lines (322 loc) · 22.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Student Portal - Code Orange Dev School</title>
<meta name="description" content="Your path to Bitcoin open source: all Code Orange programs in one place. No sign-up, no password — pick a track, show up, ship. Progress saves on your device.">
<link rel="canonical" href="https://codeorange.dev/portal">
<meta name="theme-color" content="#F7931A">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Code Orange Dev School">
<meta property="og:url" content="https://codeorange.dev/portal">
<meta property="og:title" content="Student Portal - Code Orange Dev School">
<meta property="og:description" content="All Code Orange programs in one place. No sign-up — pick a track, show up, ship.">
<meta property="og:image" content="https://codeorange.dev/assets/og-codeorange-workshop.jpg">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" type="image/svg+xml" href="/assets/favicon-co.svg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Instrument+Serif:ital@1&display=swap" rel="stylesheet">
<style>
html, body { margin: 0; padding: 0; background: #0A0A0A; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-family: 'Inter', system-ui, sans-serif; color: #F5F5F5; }
::selection { background: rgba(247,147,26,0.35); color: #F5F5F5; }
a { transition: color 120ms, border-color 120ms, background 120ms; }
.nav-link:hover { color: #F7931A !important; }
.btn-ghost:hover { border-color: #F7931A !important; color: #F7931A !important; }
.btn-solid:hover { background: #FFB347 !important; }
.track-card { cursor: pointer; transition: border-color 150ms, transform 150ms; }
.track-card:hover { border-color: rgba(247,147,26,0.5) !important; transform: translateY(-2px); }
.track-card img { transition: transform 300ms; }
.track-card:hover img { transform: scale(1.04); }
.session-row { cursor: pointer; transition: background 120ms, border-color 120ms; }
.session-row:hover { border-color: rgba(255,255,255,0.22) !important; }
.session-row.done { border-color: rgba(247,147,26,0.4) !important; background: rgba(247,147,26,0.08) !important; }
.session-row.done .session-title { color: #F7931A; text-decoration: line-through; text-decoration-color: rgba(247,147,26,0.6); }
.bar-fill { transition: width 250ms ease; }
.track-detail { display: none; }
.track-detail.open { display: block; }
@media (prefers-reduced-motion: reduce) {
* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 880px) {
.nav-links { display: none !important; }
.hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
.programs-grid { grid-template-columns: 1fr !important; }
.steps-grid { grid-template-columns: 1fr !important; }
.stats-grid { grid-template-columns: 1fr 1fr !important; }
.wrap { padding-left: 20px !important; padding-right: 20px !important; }
}
</style>
<link rel="stylesheet" href="/assets/theme.css?v=20261015d">
<script src="/assets/site-menu.js?v=20261004b" defer></script>
</head>
<body>
<div style="background: #0A0A0A; min-height: 100vh;">
<!-- HEADER -->
<header style="position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08);">
<div class="wrap" style="max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;">
<a href="/" style="display: flex; align-items: center; text-decoration: none; flex-shrink: 0;">
<img src="/assets/logo-dot-wordmark.svg" alt="Code Orange Dev School" style="height: 45px; width: auto; display: block;">
</a>
<nav class="nav-links" style="display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500;">
<a href="/" class="nav-link" style="color: #B8B8B8; text-decoration: none; padding: 8px 14px; border-radius: 8px;">← codeorange.dev</a>
<a href="#programs" class="nav-link" style="color: #B8B8B8; text-decoration: none; padding: 8px 14px; border-radius: 8px;">Programs</a>
<a href="/calendar" class="nav-link" style="color: #B8B8B8; text-decoration: none; padding: 8px 14px; border-radius: 8px;">Calendar</a>
<a href="https://github.com/code-orange-dev/curriculum" target="_blank" rel="noopener" class="nav-link" style="color: #B8B8B8; text-decoration: none; padding: 8px 14px; border-radius: 8px;">Curriculum ↗</a>
</nav>
<a href="https://discord.gg/ZtvA79paWa" target="_blank" rel="noopener" class="btn-solid" style="background: #F7931A; color: #0A0A0A; text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 8px; flex-shrink: 0;">Join Discord</a>
</div>
</header>
<!-- HERO -->
<section style="position: relative; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px); background-size: 48px 48px;">
<div style="position: absolute; top: -120px; right: -80px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(247,147,26,0.13) 0%, transparent 65%); pointer-events: none;"></div>
<div class="wrap" style="max-width: 1240px; margin: 0 auto; padding: 88px 32px 72px; position: relative;">
<div class="hero-grid" style="display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center;">
<div>
<div style="font-family: 'Plus Jakarta Sans', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #F7931A; margin-bottom: 24px;"><span>/</span>Student_Portal<span>_</span></div>
<h1 style="font-family: 'Inter', system-ui, sans-serif; font-weight: 400; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 26px; color: #F5F5F5;">Your path to Bitcoin OSS. <span style="color: #F7931A;">No sign-up. No password.</span></h1>
<p style="font-size: 18px; line-height: 1.65; color: #B8B8B8; margin: 0 0 32px; max-width: 560px;">Every program, session and next step in one place. Pick a track, show up, ship — your progress saves right here on your device. Everything is free, forever.</p>
<div style="display: flex; gap: 14px; flex-wrap: wrap;">
<a href="#programs" class="btn-solid" style="background: #F7931A; color: #0A0A0A; text-decoration: none; font-size: 16px; font-weight: 700; padding: 15px 30px; border-radius: 8px;">Pick your track</a>
<a href="/calendar" class="btn-ghost" style="color: #F5F5F5; text-decoration: none; font-size: 16px; font-weight: 600; padding: 15px 30px; border: 1px solid rgba(255,255,255,0.16); border-radius: 8px;">Live calendar</a>
</div>
</div>
<div class="stats-grid" style="display: grid; grid-template-columns: 1fr 1fr; gap: 16px;">
<div style="background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 4px;">
<span style="font-family: 'Inter', monospace; font-size: 42px; line-height: 1; color: #F7931A;">94</span>
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #858585;">PRs merged by our community</span>
</div>
<div style="background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 4px;">
<span style="font-family: 'Inter', monospace; font-size: 42px; line-height: 1; color: #F7931A;">29</span>
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #858585;">Bitcoin projects contributed to</span>
</div>
<div style="background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 4px;">
<span style="font-family: 'Inter', monospace; font-size: 42px; line-height: 1; color: #F7931A;">6</span>
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #858585;">Programs to join</span>
</div>
<div style="background: #141414; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 4px;">
<span style="font-family: 'Inter', monospace; font-size: 42px; line-height: 1; color: #F7931A;">0</span>
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #858585;">Cost · free forever</span>
</div>
</div>
</div>
</div>
</section>
<!-- 3 STEPS -->
<section class="wrap" style="max-width: 1240px; margin: 0 auto; padding: 0 32px 64px;">
<div class="steps-grid" style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;">
<a href="https://discord.gg/ZtvA79paWa" target="_blank" rel="noopener" style="display: block; background: #0F0F0F; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px; text-decoration: none;">
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 12px; color: #F7931A;">Step 1 · 2 min</span>
<div style="font-size: 18px; font-weight: 600; color: #F5F5F5; margin: 8px 0 6px;">Join the Discord</div>
<div style="font-size: 14px; color: #858585; line-height: 1.55;">Every session, cohort and code review happens there. Say hi — that's it, you're in.</div>
</a>
<a href="#programs" style="display: block; background: #0F0F0F; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px; text-decoration: none;">
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 12px; color: #F7931A;">Step 2 · 1 min</span>
<div style="font-size: 18px; font-weight: 600; color: #F5F5F5; margin: 8px 0 6px;">Pick your track</div>
<div style="font-size: 14px; color: #858585; line-height: 1.55;">Curious beginner → Bitcoin Basics. Developer → Bitcoin Dojo. Already building → Privacy Track.</div>
</a>
<a href="/calendar" style="display: block; background: #0F0F0F; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 24px; text-decoration: none;">
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 12px; color: #F7931A;">Step 3 · this week</span>
<div style="font-size: 18px; font-weight: 600; color: #F5F5F5; margin: 8px 0 6px;">Show up live</div>
<div style="font-size: 14px; color: #858585; line-height: 1.55;">Add the calendar once — every session ends pointing at a real good-first-issue.</div>
</a>
</div>
</section>
<!-- PROGRAMS -->
<section id="programs" class="wrap" style="max-width: 1240px; margin: 0 auto; padding: 0 32px 88px;">
<div style="font-family: 'Plus Jakarta Sans', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #F7931A; margin-bottom: 12px;"><span>/</span>Programs<span>_</span></div>
<h2 style="font-family: 'Inter', system-ui, sans-serif; font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; color: #F5F5F5;">Pick a track. Tick off sessions. Ship.</h2>
<p style="font-size: 15px; color: #858585; margin: 0 0 32px;">Click a program to open its sessions. Your ticks save on this device — no account needed.</p>
<div id="programs-root" class="programs-grid" style="display: grid; grid-template-columns: 1fr 1fr; gap: 20px;"></div>
</section>
<!-- FOOTER -->
<footer style="border-top: 1px solid rgba(255,255,255,0.08); padding: 32px; text-align: center;">
<div style="font-size: 13px; color: #858585;">
Code Orange Dev School · all programs free ·
<a href="https://github.com/code-orange-dev/curriculum" target="_blank" rel="noopener" class="nav-link" style="color: #F7931A; text-decoration: none;">open-source curriculum ↗</a> ·
<a href="/dashboard" class="nav-link" style="color: #F7931A; text-decoration: none;">PR dashboard</a> ·
<a href="mailto:hello@codeorange.dev" class="nav-link" style="color: #F7931A; text-decoration: none;">hello@codeorange.dev</a>
</div>
<div style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; color: #5E5E5E; margin-top: 8px;">progress saves on this device only — nothing is tracked, nothing is sent anywhere</div>
</footer>
</div>
<script>
const TRACKS = [
{
id: 'privacy-track', name: 'Privacy Track', kind: 'Track · 2026 focus', level: 'Intermediate+',
duration: '12 sessions · biweekly · 6 months',
blurb: 'Chain analysis, CoinJoin, Silent Payments, Payjoin, Tor — contribution-first, every session ends at a real PR.',
image: '/assets/workshop-gallery/optimized/workshop-hardware-table.jpg',
apply: '/apply?program=privacy',
sessions: [
['S1', 'Silent Payments I: One Address, No Trail', 'SP lab: build a sender'],
['S2', 'Silent Payments II: Finding Your Money', 'SP lab: build a scanner, indexers'],
['S3', 'Silent Payments III: Review Club', 'Bitcoin Core / libsecp256k1 SP PRs'],
['S4', 'Think Like the Adversary: Chain Analysis & Fingerprinting', 'chain-analysis lab, real wallets'],
['S5', 'Coin Selection & Change', 'coin-selection lab, Sparrow, BDK'],
['S6', 'Payjoin', 'payjoin lab: payjoin-cli on regtest'],
['S7', 'Light Clients & Your Own Node', 'filters lab, Kyoto, Floresta'],
['S8', 'The Network Sees You: Tor, BIP324, Private Broadcast, ASmap', 'network lab: Bitcoin Core 31'],
['S9', 'Breaking the Trail: CoinJoin & OpenSwap', 'JoinMarket, openswap on regtest'],
['S10', 'Lightning Privacy', 'BOLT11 vs BOLT12 on regtest'],
['S11', 'Ecash: Cashu & Fedimint', 'a signet mint'],
['S12', 'Contribution Sprint', "the season's issue board — ship it"],
],
},
{
id: 'code-review-club', name: 'Code Review Club', kind: 'Recurring club', level: 'All levels',
duration: 'Every two weeks',
blurb: 'Build, test, explain, and discuss real upstream Bitcoin work before writing useful review notes.',
image: '/assets/workshop-gallery/optimized/workshop-projector.jpg',
apply: null,
sessions: [
['R1', 'Pick a PR from the issue board', 'claim one good-first-review'],
['R2', 'Build and test it locally', 'reproduce, run the tests'],
['R3', 'Discuss at the club', 'explain your understanding'],
['R4', 'Post your review note', 'useful, polite, specific'],
],
},
{
id: 'bitcoin-dojo', name: 'Bitcoin Dojo', kind: 'Study cohort', level: 'Beginner devs',
duration: '7 weeks',
blurb: 'Cryptography and primitives: finite fields, elliptic curves, keys, transactions, Script, SegWit.',
image: '/assets/workshop-gallery/optimized/workshop-mining-class.jpg',
apply: '/apply',
sessions: [
['W1', 'Finite Fields', 'exercises + solutions in repo'],
['W2', 'Elliptic Curves', 'secp256k1 hands-on'],
['W3', 'Keys, Addresses & Encoding', 'base58, bech32'],
['W4', 'Serialisation & Transactions', 'build a raw tx'],
['W5', 'Script & Transaction Validation', 'script lab'],
['W6', 'SegWit & Advanced Transactions', 'segwit lab'],
['W7', 'Graduation & Next Steps', 'capstone project'],
],
},
{
id: 'rawbit', name: 'rawBit', kind: 'Study cohort', level: 'Intermediate',
duration: '10 weeks',
blurb: 'Build raw transactions by hand: legacy, multisig, timelocks, SegWit, Taproot, MuSig2.',
image: '/assets/workshop-gallery/optimized/workshop-legacy-circle.jpg',
apply: '/apply',
sessions: [
['W1', 'Legacy Transactions (P2PK, P2PKH)', ''],
['W2', 'Multisig Transactions', ''],
['W3', 'Timelocks', ''],
['W4', 'OP_RETURN & Data Anchoring', ''],
['W5', 'Transaction Malleability & Payment Channels', ''],
['W6', 'SegWit (P2WPKH)', ''],
['W7', 'SegWit Scripts (P2WSH)', ''],
['W8', 'Taproot Basics', ''],
['W9', 'Advanced Taproot & MuSig2', ''],
['W10', 'Final Project & Graduation', ''],
],
},
{
id: 'decoding-bitcoin', name: 'Decoding Bitcoin', kind: 'Study cohort', level: 'Intermediate+',
duration: '8 weeks',
blurb: 'Bitcoin Core workflows: from protocol fundamentals to your first upstream contribution.',
image: '/assets/workshop-gallery/optimized/workshop-community-circle.jpg',
apply: '/apply',
sessions: [
['W1', 'Bitcoin Fundamentals', ''], ['W2', 'Transactions', ''], ['W3', 'Script', ''],
['W4', 'SegWit', ''], ['W5', 'Taproot', ''], ['W6', 'PSBT', ''],
['W7', 'Bitcoin Core', ''], ['W8', 'Contributing', 'open your first PR'],
],
},
{
id: 'workshops', name: 'Workshops & Clubs', kind: 'Drop-in', level: 'Beginner-friendly',
duration: 'Join any session',
blurb: 'Self-custody, Sovereign Bitcoiner, Bitcoin Basics, Vibe Coding — no commitment, just show up.',
image: '/assets/workshop-gallery/optimized/workshop-new-0546.jpg',
apply: null,
sessions: [
['E1', 'Self-custody workshop', 'Discord event'],
['E2', 'Sovereign Bitcoiner', 'nodes, multisig, inheritance, ecash'],
['E3', 'Bitcoin Basics', 'the practical entry point'],
['E4', 'Agentic engineering & vibe coding', 'build with AI + Nostr'],
['E5', 'Bitcoin Reading Club', 'the essential canon, together'],
],
},
];
const store = {
get(id, n) {
try {
const v = JSON.parse(localStorage.getItem('co-portal:' + id) || '[]');
return Array.from({ length: n }, (_, i) => !!v[i]);
} catch { return Array(n).fill(false); }
},
set(id, arr) { localStorage.setItem('co-portal:' + id, JSON.stringify(arr)); },
};
function esc(s) { const d = document.createElement('div'); d.textContent = s; return d.innerHTML; }
function render() {
const root = document.getElementById('programs-root');
root.innerHTML = TRACKS.map(t => {
const done = store.get(t.id, t.sessions.length);
const pct = Math.round(done.filter(Boolean).length / t.sessions.length * 100);
const sessions = t.sessions.map((s, i) => `
<div class="session-row ${done[i] ? 'done' : ''}" data-track="${t.id}" data-idx="${i}"
style="display: flex; align-items: center; gap: 14px; background: #0A0A0A; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 16px;">
<span style="flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; font-weight: 700; ${done[i] ? 'background: #F7931A; color: #0A0A0A;' : 'background: #141414; color: #B8B8B8;'}">${done[i] ? '✓' : s[0]}</span>
<span style="flex: 1;">
<span class="session-title" style="display: block; font-size: 14px; font-weight: 600; color: #F5F5F5;">${esc(s[1])}</span>
${s[2] ? `<span style="display: block; font-size: 12px; color: #858585; margin-top: 2px;">${esc(s[2])}</span>` : ''}
</span>
</div>`).join('');
return `
<div>
<div class="track-card" data-open="${t.id}" style="background: #0F0F0F; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden;">
<div style="position: relative; height: 150px; overflow: hidden;">
<img src="${t.image}" alt="" loading="lazy" style="width: 100%; height: 100%; object-fit: cover; display: block;">
<div style="position: absolute; inset: 0; background: linear-gradient(to top, #0F0F0F 4%, transparent 60%);"></div>
<span style="position: absolute; top: 12px; left: 12px; background: rgba(10,10,10,0.85); color: #F7931A; font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; padding: 5px 12px; border-radius: 999px;">${t.kind}</span>
</div>
<div style="padding: 22px 24px 24px;">
<div style="display: flex; justify-content: space-between; align-items: baseline; gap: 12px;">
<span style="font-size: 19px; font-weight: 600; color: #F5F5F5;">${t.name}</span>
<span style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; color: #858585; white-space: nowrap;">${t.level}</span>
</div>
<div style="font-family: 'Plus Jakarta Sans', monospace; font-size: 12px; color: #F7931A; margin-top: 4px;">${t.duration}</div>
<p style="font-size: 14px; color: #858585; line-height: 1.55; margin: 10px 0 14px;">${t.blurb}</p>
<div style="height: 6px; border-radius: 3px; background: #141414; overflow: hidden;">
<div class="bar-fill" style="height: 100%; width: ${pct}%; background: #F7931A;"></div>
</div>
<div style="display: flex; justify-content: space-between; margin-top: 8px; font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; color: #858585;">
<span>${pct}% complete</span>
<span style="color: #F7931A;">${done.filter(Boolean).length}/${t.sessions.length} sessions · tap to open ▾</span>
</div>
</div>
</div>
<div class="track-detail" id="detail-${t.id}" style="margin-top: 10px; display: none; flex-direction: column; gap: 8px; padding: 6px 0 10px;">
${sessions}
${t.apply ? `<a href="${t.apply}" class="btn-solid" style="display: block; text-align: center; background: #F7931A; color: #0A0A0A; text-decoration: none; font-size: 14px; font-weight: 700; padding: 12px; border-radius: 10px; margin-top: 4px;">Apply to ${t.name} →</a>` : ''}
<div style="font-family: 'Plus Jakarta Sans', monospace; font-size: 11px; color: #5E5E5E; padding: 4px 2px;">
Materials: <a href="https://github.com/code-orange-dev/curriculum" target="_blank" rel="noopener" style="color: #F7931A; text-decoration: none;">open-source curriculum ↗</a> (free, CC0)
</div>
</div>
</div>`;
}).join('');
}
render();
document.getElementById('programs-root').addEventListener('click', (e) => {
const row = e.target.closest('.session-row');
if (row) {
const t = TRACKS.find(x => x.id === row.dataset.track);
const arr = store.get(t.id, t.sessions.length);
arr[+row.dataset.idx] = !arr[+row.dataset.idx];
store.set(t.id, arr);
render();
document.getElementById('detail-' + t.id).style.display = 'flex';
return;
}
const card = e.target.closest('.track-card');
if (card) {
const d = document.getElementById('detail-' + card.dataset.open);
const open = d.style.display === 'flex';
d.style.display = open ? 'none' : 'flex';
}
});
</script>
</body>
</html>