-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
458 lines (434 loc) Β· 22.6 KB
/
Copy pathindex.html
File metadata and controls
458 lines (434 loc) Β· 22.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Breakaway β Verifiable skill credentials for the uncredentialed. Prove what you know. No degree required.">
<meta name="theme-color" content="#0a0a0f">
<meta property="og:type" content="website" />
<meta property="og:url" content="https://vrtxomega.github.io/breakaway/" />
<meta property="og:title" content="Breakaway β SHA-256 Skill Credentialing Engine" />
<meta property="og:description" content="Zero-dependency, browser-native credentialing engine. Tamper-proof SHA-256 verified skill credentials through real cognitive challenges. 2nd Place VibeJam 2026." />
<meta property="og:image" content="https://vrtxomega.github.io/breakaway/preview.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Breakaway β SHA-256 Skill Credentialing Engine" />
<meta name="twitter:description" content="Zero-dependency, browser-native credentialing engine. 2nd Place VibeJam 2026." />
<meta name="twitter:image" content="https://vrtxomega.github.io/breakaway/preview.png" />
<title>Breakaway β Prove What You Know</title>
<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;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!-- βββββββββββββββββββββββββββββββββββββββββββ -->
<!-- NAVIGATION -->
<!-- βββββββββββββββββββββββββββββββββββββββββββ -->
<nav id="main-nav" class="nav hidden">
<div class="nav-inner">
<a href="#/" class="nav-brand">
<span class="brand-icon">β</span>
<span class="brand-text">Breakaway</span>
</a>
<div class="nav-links">
<a href="#/dashboard" class="nav-link" data-view="dashboard">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg>
Dashboard
</a>
<a href="#/challenges" class="nav-link" data-view="challenges">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>
Challenges
</a>
<a href="#/profile" class="nav-link" data-view="profile">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
Profile
</a>
<a href="#/credentials" class="nav-link" data-view="credentials">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
Credentials
</a>
</div>
<div class="nav-user" id="nav-user">
<div class="nav-avatar" id="nav-avatar">?</div>
</div>
</div>
</nav>
<!-- βββββββββββββββββββββββββββββββββββββββββββ -->
<!-- MAIN APPLICATION CONTAINER -->
<!-- βββββββββββββββββββββββββββββββββββββββββββ -->
<main id="app">
<!-- βββ LANDING VIEW βββ -->
<section id="view-landing" class="view active">
<canvas id="grid-canvas"></canvas>
<canvas id="particle-canvas"></canvas>
<div class="hero">
<div class="hero-left">
<div class="hero-tag">β BREAKAWAY PROTOCOL</div>
<h1 class="hero-title">
<span class="hero-break">Break</span>
<span class="hero-away">Away</span>
</h1>
<p class="hero-lead"><span style="color: var(--gold);">Proof</span> is the way out.<br>No degree required.</p>
<p class="hero-sub">This turns skill into <strong style="color: #fff; font-weight: 600;">undeniable proof</strong> that <strong style="color: var(--gold); font-weight: 600;">bypasses gatekeeping</strong>.</p>
<div class="hero-actions">
<button id="btn-get-started" class="btn btn-primary btn-lg btn-hold">
<div class="hold-progress" id="hold-progress-bar"></div>
<span class="btn-text">Hold to Break Out</span>
</button>
<button id="btn-learn-more" class="btn btn-ghost btn-lg" style="border: 1px solid var(--glass-border); background: rgba(255,255,255,0.02);">How It Works</button>
</div>
<div class="hero-proof" style="display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;">
<div class="proof-line" style="background: var(--bg-3); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--glass-border); font-size: 0.75rem;"><span class="proof-dot live"></span> <span class="proof-label">Open Source</span></div>
<div class="proof-line" style="background: var(--bg-3); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--glass-border); font-size: 0.75rem;"><span class="proof-dot"></span> <span class="proof-label">SHA-256 Verified</span></div>
<div class="proof-line" style="background: var(--bg-3); padding: 4px 12px; border-radius: 20px; border: 1px solid var(--glass-border); font-size: 0.75rem;"><span class="proof-dot"></span> <span class="proof-label">Local-First / Sovereign</span></div>
</div>
</div>
<div class="hero-right">
<div class="preview-credential">
<div class="pc-header">
<span class="pc-badge">VERIFIED CREDENTIAL</span>
<span class="pc-shield">β</span>
</div>
<div class="pc-domain">CODING</div>
<div class="pc-title">Array Frequency Analysis</div>
<div class="pc-score-row">
<div class="pc-score">92<span>%</span></div>
<div class="pc-meta">
<div>Completed in 2m 34s</div>
<div>Beginner Β· 2 tests passed</div>
</div>
</div>
<div class="pc-hash">
<span class="pc-hash-label">SHA-256</span>
<span class="pc-hash-val">a7f3b2c9d4e8...1f6a</span>
</div>
<div class="pc-market-signal" style="margin-top: 16px; padding: 12px; background: rgba(10, 10, 15, 0.8); border-left: 3px solid var(--gold); border-radius: 4px; box-shadow: inset 0 0 10px rgba(0,0,0,0.5);">
<div style="font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 4px;">MARKET SIGNAL</div>
<div style="font-size: 14px; font-weight: 600; color: #fff;">$65kβ$110k Value</div>
</div>
<div class="pc-footer">
<span id="stat-challenges">3</span> challenges Β· <span id="stat-domains">5</span> domains Β· <span id="stat-verified">0</span> issued
</div>
</div>
<div class="preview-glow" style="position: absolute; top: 50%; left: 50%; width: 400px; height: 400px; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%); z-index: -1; pointer-events: none;"></div>
</div>
</div>
<!-- HOW IT WORKS -->
<div id="how-it-works" class="how-section">
<div class="how-header">
<span class="how-tag">HOW IT WORKS</span>
<h2 class="how-title">Four steps to verified proof</h2>
</div>
<div class="steps-row">
<div class="step" data-n="01">
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="16 18 22 12 16 6"></polyline>
<polyline points="8 6 2 12 8 18"></polyline>
<line x1="14" y1="4" x2="10" y2="20" opacity="0.5"></line>
</svg>
</div>
<h3>Challenge</h3>
<p>Code, logic, analysis, debug β pick a domain and prove it live.</p>
</div>
<div class="step-arrow">β</div>
<div class="step" data-n="02">
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
<polyline points="9 12 11 14 15 10"></polyline>
</svg>
</div>
<h3>Verify</h3>
<p>Your work is scored and sealed with SHA-256. Tamper-proof.</p>
</div>
<div class="step-arrow">β</div>
<div class="step" data-n="03">
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="8" r="6"></circle>
<path d="M15.477 12.89L17 22l-5-3-5 3 1.523-9.11"></path>
</svg>
</div>
<h3>Credential</h3>
<p>Each pass earns a verified credential tied to your profile.</p>
</div>
<div class="step-arrow">β</div>
<div class="step" data-n="04">
<div class="step-icon">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline>
<polyline points="17 6 23 6 23 12"></polyline>
</svg>
</div>
<h3>Breakaway</h3>
<p>Stack credentials until your proven skills outpace any degree.</p>
</div>
</div>
</div>
</section>
<!-- βββ ONBOARDING VIEW βββ -->
<section id="view-onboard" class="view">
<div class="container">
<div class="onboard-card">
<div class="onboard-header">
<span class="brand-icon lg">β</span>
<h2>Set Up Your Identity</h2>
<p>This stays on your device. Nothing leaves your machine.</p>
</div>
<div class="auth-tabs">
<button type="button" id="tab-signup" class="btn btn-ghost active">Sign Up</button>
<button type="button" id="tab-login" class="btn btn-ghost">Log In</button>
</div>
<form id="onboard-form" class="onboard-form">
<div class="form-group">
<label for="onboard-email">Email Address</label>
<input type="email" id="onboard-email" placeholder="you@domain.com" required>
</div>
<div class="form-group">
<label for="onboard-password">Password</label>
<input type="password" id="onboard-password" placeholder="β’β’β’β’β’β’β’β’" required minlength="8">
</div>
<div id="signup-fields">
<div class="form-group">
<label for="onboard-name">Display Name</label>
<input type="text" id="onboard-name" placeholder="How you want to be known" required maxlength="50">
</div>
<div class="form-group">
<label for="onboard-title">Current Title / Role</label>
<input type="text" id="onboard-title" placeholder="e.g. Self-taught developer, Career changer" maxlength="80">
</div>
<div class="form-group">
<label for="onboard-bio">One-line Bio</label>
<input type="text" id="onboard-bio" placeholder="What drives you" maxlength="120">
</div>
<div class="form-group">
<label>Pick Your Focus Domains</label>
<div class="domain-chips" id="domain-chips">
<!-- populated by JS -->
</div>
</div>
</div>
<button type="submit" class="btn btn-primary btn-lg btn-full">
<span id="onboard-submit-text">Launch Your Profile</span>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></svg>
</button>
</form>
</div>
</div>
</section>
<!-- βββ DASHBOARD VIEW βββ -->
<section id="view-dashboard" class="view">
<div class="container">
<div class="dash-header">
<div>
<h2 class="dash-greeting" id="dash-greeting">Welcome back</h2>
<p class="dash-sub">Your breakaway trajectory</p>
</div>
<div class="dash-actions">
<button class="btn btn-primary" onclick="location.hash='#/challenges'">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>
New Challenge
</button>
</div>
</div>
<!-- Trajectory Chart -->
<div class="card card-trajectory">
<div class="card-header">
<h3>Skill Trajectory</h3>
<div class="card-badge" id="trajectory-status">Building momentum</div>
</div>
<canvas id="trajectory-chart" height="280"></canvas>
</div>
<!-- Cognitive Radar Chart -->
<div class="card card-radar">
<div class="card-header">
<h3>Cognitive Profile</h3>
<div class="card-badge" id="radar-status">5-axis assessment</div>
</div>
<div class="radar-chart-wrapper">
<canvas id="radar-chart" width="400" height="400"></canvas>
<div class="radar-legend" id="radar-legend"></div>
</div>
</div>
<!-- Tier Progress -->
<div class="card card-tier-progress">
<div class="card-header">
<h3>Tier Progress</h3>
<div class="card-badge">Completion by difficulty</div>
</div>
<div id="tier-progress"></div>
</div>
<!-- Stats Row -->
<div class="stats-row">
<div class="stat-card">
<div class="stat-card-icon gold">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
</div>
<div class="stat-card-data">
<span class="stat-card-num" id="dash-credentials">0</span>
<span class="stat-card-label">Verified Credentials</span>
</div>
</div>
<div class="stat-card">
<div class="stat-card-icon blue">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/></svg>
</div>
<div class="stat-card-data">
<span class="stat-card-num" id="dash-completed">0</span>
<span class="stat-card-label">Challenges Completed</span>
</div>
</div>
<div class="stat-card">
<div class="stat-card-icon green">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg>
</div>
<div class="stat-card-data">
<span class="stat-card-num" id="dash-score">0</span>
<span class="stat-card-label">Average Score</span>
</div>
</div>
<div class="stat-card">
<div class="stat-card-icon purple">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg>
</div>
<div class="stat-card-data">
<span class="stat-card-num" id="dash-domains">0</span>
<span class="stat-card-label">Domains Explored</span>
</div>
</div>
<div class="stat-card">
<div class="stat-card-icon" style="background: rgba(201, 168, 76, 0.12); color: #c9a84c;">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"/></svg>
</div>
<div class="stat-card-data">
<span class="stat-card-num" id="dash-xp">0</span>
<span class="stat-card-label">Total XP</span>
</div>
</div>
<div class="stat-card">
<div class="stat-card-icon" style="background: rgba(245, 158, 11, 0.12); color: #f59e0b;">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2"/><path d="M8 14s1.5 2 4 2 4-2 4-2"/><circle cx="9" cy="9" r="1" fill="currentColor"/><circle cx="15" cy="9" r="1" fill="currentColor"/></svg>
</div>
<div class="stat-card-data">
<span class="stat-card-num" id="dash-streak">0</span>
<span class="stat-card-label">Day Streak π₯</span>
</div>
</div>
</div>
<!-- Domain Certificates -->
<div id="domain-certs-section" style="display:none"></div>
<!-- Recent Credentials -->
<div class="card">
<div class="card-header">
<h3>Recent Credentials</h3>
<a href="#/credentials" class="card-link">View All β</a>
</div>
<div id="recent-credentials" class="credentials-list">
<div class="empty-state">
<p>No credentials yet. Take your first challenge to get started.</p>
<button class="btn btn-ghost" onclick="location.hash='#/challenges'">Browse Challenges</button>
</div>
</div>
</div>
</div>
</section>
<!-- βββ CHALLENGES VIEW βββ -->
<section id="view-challenges" class="view">
<div class="container">
<div class="page-header">
<h2>Skill Challenges</h2>
<p>Prove your abilities. Each completed challenge earns a verified credential.</p>
</div>
<div class="filter-bar" id="filter-bar">
<button class="filter-chip active" data-filter="all" onclick="filterChallenges('all')">All</button>
<!-- domain + type chips populated by JS -->
</div>
<div class="challenge-grid" id="challenge-grid">
<!-- populated by JS -->
</div>
</div>
</section>
<!-- βββ ACTIVE CHALLENGE VIEW βββ -->
<section id="view-challenge-active" class="view">
<div class="container">
<div class="challenge-header" id="challenge-header">
<!-- populated by JS -->
</div>
<div class="challenge-workspace" id="challenge-workspace">
<!-- populated by JS based on challenge type -->
</div>
</div>
</section>
<!-- βββ RESULTS VIEW βββ -->
<section id="view-results" class="view">
<div class="container">
<div class="results-card" id="results-card">
<!-- populated by JS after challenge completion -->
</div>
</div>
</section>
<!-- βββ CREDENTIALS VIEW βββ -->
<section id="view-credentials" class="view">
<div class="container">
<div class="page-header">
<h2>Your Credentials</h2>
<p>Cryptographically verified proof of your abilities.</p>
<button class="btn btn-ghost" onclick="exportCredentials()" style="margin-top:12px">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Export All (JSON)
</button>
</div>
<div id="credentials-grid" class="credentials-grid">
<!-- populated by JS -->
</div>
</div>
</section>
<!-- βββ QR MODAL βββ -->
<div id="qr-modal" class="modal-overlay" onclick="if(event.target===this)closeQRModal()">
<div class="modal-card">
<h3>Credential QR Code</h3>
<p>Scan to verify this credential instantly.</p>
<img id="qr-image" src="" alt="QR Code" />
<div class="modal-actions">
<button class="btn btn-primary" onclick="downloadQR()">Download PNG</button>
<button class="btn btn-ghost" onclick="closeQRModal()">Close</button>
</div>
</div>
</div>
<!-- βββ PROFILE VIEW βββ -->
<section id="view-profile" class="view">
<div class="container">
<div class="profile-wrapper" id="profile-wrapper">
<!-- populated by JS -->
</div>
</div>
</section>
<!-- βββ VERIFY VIEW (public credential verification) βββ -->
<section id="view-verify" class="view">
<div class="container">
<div class="verify-card" id="verify-card">
<!-- populated by JS -->
</div>
</div>
</section>
</main>
<!-- Attribution Footer -->
<footer id="veritas-footer" class="veritas-footer">
<span class="footer-omega">Ξ©</span>
<span class="footer-text">Created by <strong>VERITAS Labs</strong></span>
</footer>
<!-- Toast Container -->
<div id="toast-container" class="toast-container"></div>
<!-- Scripts -->
<script src="js/config.js"></script>
<script src="js/integrity.js"></script>
<script src="js/challenges.js"></script>
<script src="js/utils.js"></script>
<script src="js/router.js"></script>
<script src="js/challenge-engine.js"></script>
<script src="js/ui.js"></script>
<script src="js/effects.js"></script>
<script src="js/app.js"></script>
</body>
</html>