-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
536 lines (495 loc) · 25.7 KB
/
Copy pathindex.html
File metadata and controls
536 lines (495 loc) · 25.7 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
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
536
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scroll Balance Pro - Digital Wellness Dashboard</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Mobile Menu Toggle -->
<button class="mobile-menu-toggle" onclick="app.toggleMobileMenu()" aria-label="Toggle menu">
☰
</button>
<!-- Sidebar Navigation -->
<nav class="sidebar">
<div class="sidebar-header">
<div class="logo-container">
<div class="logo-icon">⚖️</div>
<h1 class="logo-text">Scroll Balance</h1>
</div>
</div>
<div class="nav-items">
<a href="#" class="nav-item active" data-page="dashboard">
<span class="nav-icon">📊</span>
<span class="nav-label">Dashboard</span>
</a>
<a href="#" class="nav-item" data-page="feed">
<span class="nav-icon">📱</span>
<span class="nav-label">Smart Feed</span>
</a>
<a href="#" class="nav-item" data-page="analytics">
<span class="nav-icon">📈</span>
<span class="nav-label">Analytics</span>
</a>
<a href="#" class="nav-item" data-page="goals">
<span class="nav-icon">🎯</span>
<span class="nav-label">Goals</span>
</a>
<a href="#" class="nav-item" data-page="settings">
<span class="nav-icon">⚙️</span>
<span class="nav-label">Settings</span>
</a>
<a href="#" class="nav-item" data-page="about">
<span class="nav-icon">ℹ️</span>
<span class="nav-label">About</span>
</a>
</div>
<div class="sidebar-footer">
<div class="user-profile">
<div class="user-avatar">👤</div>
<div class="user-info">
<div class="user-name">Mindful User</div>
<div class="user-level">Level <span id="sidebar-level">1</span></div>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="main-content">
<!-- Dashboard Page -->
<div class="page active" id="dashboard-page">
<!-- Top Stats Bar -->
<div class="stats-grid">
<div class="stat-card">
<div class="stat-icon wellness">🧘</div>
<div class="stat-content">
<div class="stat-label">Wellness Score</div>
<div class="stat-value" id="wellness-score">85</div>
<div class="stat-change positive">+5% from yesterday</div>
</div>
</div>
<div class="stat-card">
<div class="stat-icon time">⏱️</div>
<div class="stat-content">
<div class="stat-label">Screen Time Today</div>
<div class="stat-value" id="screen-time">2h 34m</div>
<div class="stat-change negative">+12% from avg</div>
</div>
</div>
<div class="stat-card">
<div class="stat-icon xp">⚡</div>
<div class="stat-content">
<div class="stat-label">Total XP</div>
<div class="stat-value" id="total-xp">2,450</div>
<div class="stat-change positive">+150 today</div>
</div>
</div>
<div class="stat-card">
<div class="stat-icon streak">🔥</div>
<div class="stat-content">
<div class="stat-label">Current Streak</div>
<div class="stat-value" id="streak">7 days</div>
<div class="stat-change positive">Keep it up!</div>
</div>
</div>
</div>
<!-- Level Progress -->
<div class="level-progress-section">
<div class="level-info">
<h3>Level <span id="dashboard-level">1</span></h3>
<span class="level-progress-text">0/100 XP to Level 2</span>
</div>
<div class="level-progress-container">
<div class="level-progress-bar" style="width: 0%"></div>
</div>
</div>
<!-- Daily Challenge & Live Coaching -->
<div class="dashboard-row">
<div class="daily-challenge-card">
<!-- Populated by JavaScript -->
</div>
<div class="live-coaching">
<!-- Populated by JavaScript -->
</div>
</div>
<!-- Achievements Showcase -->
<div class="achievements-section">
<h3>🏆 Recent Achievements</h3>
<div class="achievements-showcase">
<p class="no-achievements">Complete actions to unlock achievements!</p>
</div>
</div>
<!-- Charts Row -->
<div class="charts-row">
<div class="chart-card large">
<div class="chart-header">
<h3>Wellness Trend</h3>
<select class="timeframe-select">
<option>Last 7 days</option>
<option>Last 30 days</option>
<option>Last 90 days</option>
</select>
</div>
<div class="chart-container">
<canvas id="wellness-chart"></canvas>
</div>
</div>
<div class="chart-card">
<div class="chart-header">
<h3>Content Quality</h3>
</div>
<div class="chart-container">
<canvas id="quality-chart"></canvas>
</div>
<div class="quality-breakdown">
<div class="quality-item">
<span class="quality-dot high"></span>
<span>High Value: 45%</span>
</div>
<div class="quality-item">
<span class="quality-dot medium"></span>
<span>Medium: 35%</span>
</div>
<div class="quality-item">
<span class="quality-dot low"></span>
<span>Low Value: 20%</span>
</div>
</div>
</div>
</div>
<!-- Insights & Goals -->
<div class="insights-row">
<div class="insights-card">
<h3>💡 Today's Insights</h3>
<div class="insight-list" id="insights-list">
<div class="insight-item">
<div class="insight-icon success">✓</div>
<div class="insight-text">
<strong>Great work!</strong> You spent 65% of your time on goal-aligned content.
</div>
</div>
<div class="insight-item">
<div class="insight-icon warning">⚠</div>
<div class="insight-text">
<strong>Watch out:</strong> Your evening scroll sessions are getting longer.
</div>
</div>
<div class="insight-item">
<div class="insight-icon info">ℹ</div>
<div class="insight-text">
<strong>Tip:</strong> Try a 10-minute walk before your next scroll session.
</div>
</div>
</div>
</div>
<div class="goals-progress-card">
<h3>🎯 Active Goals Progress</h3>
<div class="goals-list" id="goals-progress">
<!-- Dynamic goals will be inserted here -->
</div>
</div>
</div>
<!-- Recent Activity -->
<div class="activity-card">
<h3>Recent Activity</h3>
<div class="activity-timeline" id="activity-timeline">
<!-- Activity items will be inserted dynamically -->
</div>
</div>
</div>
<!-- Feed Page (Enhanced) -->
<div class="page" id="feed-page">
<div class="feed-header">
<h2>Smart Feed</h2>
<div class="feed-controls">
<button class="filter-btn active">All</button>
<button class="filter-btn">Goal-Aligned</button>
<button class="filter-btn">Educational</button>
</div>
</div>
<div class="content-feed" id="smart-feed">
<!-- Feed content -->
</div>
</div>
<!-- Analytics Page -->
<div class="page" id="analytics-page">
<h2>Deep Analytics</h2>
<!-- Weekly Insights -->
<div class="weekly-insights-section">
<h3>📊 Weekly Insights</h3>
<div class="weekly-insights">
<p class="no-insights">Keep rating content to unlock personalized insights!</p>
</div>
</div>
<!-- Core Analytics -->
<div class="analytics-grid">
<div class="analytics-card">
<h3>Usage Patterns</h3>
<canvas id="usage-heatmap"></canvas>
</div>
<div class="analytics-card">
<h3>Time Distribution</h3>
<canvas id="time-distribution"></canvas>
</div>
<div class="analytics-card">
<h3>Mood Tracking</h3>
<canvas id="mood-chart"></canvas>
</div>
</div>
<!-- Advanced Analytics -->
<h3 style="margin-top: var(--spacing-xl);">📈 Advanced Insights</h3>
<div class="analytics-grid">
<div class="analytics-card">
<h3>Quality Trends (14 Days)</h3>
<canvas id="quality-trends-chart"></canvas>
</div>
<div class="analytics-card wide">
<h3>Time-of-Day Patterns (24 Hour)</h3>
<canvas id="time-heatmap-chart"></canvas>
</div>
</div>
</div>
<!-- Goals Page -->
<div class="page" id="goals-page">
<h2>Your Goals</h2>
<div class="goals-grid">
<!-- Goals cards will be inserted -->
</div>
</div>
<!-- Settings Page -->
<div class="page" id="settings-page">
<h2>Settings</h2>
<div class="settings-sections">
<div class="settings-section">
<h3>Notifications</h3>
<div class="setting-item">
<label class="switch">
<input type="checkbox" id="friction-notifications">
<span class="slider"></span>
</label>
<div class="setting-info">
<div class="setting-label">Friction Reminders</div>
<div class="setting-description">Get gentle nudges when scrolling too long</div>
</div>
</div>
</div>
<div class="settings-section">
<h3>🦉 Owl Companion</h3>
<div class="setting-item" style="margin-bottom: var(--spacing-lg);">
<label class="switch">
<input type="checkbox" id="owl-enabled" checked>
<span class="slider"></span>
</label>
<div class="setting-info">
<div class="setting-label">Enable Owl Companion</div>
<div class="setting-description">Get mindful guidance from your personal owl assistant</div>
</div>
</div>
<div id="owl-settings" style="margin-top: var(--spacing-lg);">
<div class="setting-label" style="margin-bottom: var(--spacing-sm); font-weight: 600;">Choose Your Owl's Temperament</div>
<div class="temperament-selector">
<div class="temperament-option selected" data-temperament="encouraging">
<span class="temperament-emoji">🌟</span>
<span class="temperament-name">Encouraging</span>
<span class="temperament-description">Supportive and positive vibes</span>
</div>
<div class="temperament-option" data-temperament="tough-love">
<span class="temperament-emoji">💪</span>
<span class="temperament-name">Tough Love</span>
<span class="temperament-description">Direct and keeps you accountable</span>
</div>
<div class="temperament-option" data-temperament="zen">
<span class="temperament-emoji">🧘</span>
<span class="temperament-name">Zen Master</span>
<span class="temperament-description">Calm and mindful guidance</span>
</div>
<div class="temperament-option" data-temperament="quirky">
<span class="temperament-emoji">🎭</span>
<span class="temperament-name">Quirky Companion</span>
<span class="temperament-description">Fun and slightly chaotic</span>
</div>
</div>
</div>
</div>
<div class="settings-section">
<h3>⚡ Hardcore Mode</h3>
<div class="setting-item">
<label class="switch">
<input type="checkbox" id="hardcore-mode">
<span class="slider"></span>
</label>
<div class="setting-info">
<div class="setting-label">Enable Hardcore Mode</div>
<div class="setting-description">In hardcore mode, the user risks being restricted from their social media for 24 hours IF they do not meet their daily wellness goals.</div>
</div>
</div>
</div>
<div class="settings-section">
<h3>Browser Extension</h3>
<div class="extension-info">
<p>Install the browser extension to track real social media usage.</p>
<button class="primary-btn">Install Extension</button>
</div>
</div>
<div class="settings-section">
<h3>Data Management</h3>
<div class="data-management">
<p>Export your data for backup or analysis. Your data will be downloaded as a JSON file.</p>
<button class="primary-btn" onclick="app.exportData()">📥 Export My Data</button>
<div style="margin-top: var(--spacing-md); font-size: 0.85rem; color: var(--text-secondary);">
Includes: XP, goals, wellness scores, mood history, and content ratings
</div>
</div>
</div>
</div>
</div>
<!-- About Page -->
<div class="page" id="about-page">
<div class="about-container">
<div class="about-hero">
<h1>⚖️ The Scroll Balance Protocol</h1>
<p class="about-tagline">Building healthier digital habits without the guilt</p>
</div>
<div class="about-section">
<h2>🧭 The Philosophy</h2>
<p>We're not here to shame you for scrolling. We're here to help you scroll smarter.</p>
<p>The internet isn't the enemy. Mindless consumption is. Scroll Balance is a protocol designed to help you find equilibrium between online and offline time—without blocking sites, shaming your screen time, or pretending you'll quit social media tomorrow.</p>
</div>
<div class="about-principles">
<h2>💡 Core Principles</h2>
<div class="principles-grid">
<div class="principle-card">
<div class="principle-icon">🌊</div>
<h3>Don't Fight the Feed, Ride It</h3>
<p>People aren't going to stop scrolling. Instead of fighting human nature, we work with it. Guide the algorithm toward better content, don't abandon it.</p>
</div>
<div class="principle-card">
<div class="principle-icon">🧠</div>
<h3>Use "Brain Rot" Formats for Good</h3>
<p>Short-form content isn't inherently bad. The same format that delivers mindless memes can deliver genuine learning, calm, and inspiration. It's about what fills your feed, not the feed itself.</p>
</div>
<div class="principle-card">
<div class="principle-icon">🎯</div>
<h3>Quality Over Quantity</h3>
<p>Not all screen time is equal. 30 minutes learning something new beats 3 hours of passive scrolling. We reward mindful consumption, not just reduced time.</p>
</div>
<div class="principle-card">
<div class="principle-icon">🌱</div>
<h3>Small Wins Compound</h3>
<p>You don't need a digital detox. You need tiny, consistent nudges in the right direction. One better choice leads to another, and eventually, your habits transform.</p>
</div>
<div class="principle-card">
<div class="principle-icon">🎮</div>
<h3>Gamify Wellbeing</h3>
<p>If apps can gamify addiction, we can gamify wellness. Earn XP for valuable content. Level up by making better choices. Make mindfulness feel like progress, not punishment.</p>
</div>
<div class="principle-card">
<div class="principle-icon">🧘</div>
<h3>Gentle Friction, Not Shame</h3>
<p>After extended scrolling, we don't scold you. We pause and ask: "How are you feeling?" Sometimes awareness is enough to break the trance.</p>
</div>
</div>
</div>
<div class="about-section">
<h2>⚙️ How It Works</h2>
<div class="how-it-works">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h3>Set Your Goals</h3>
<p>Choose what matters to you: learning, relaxation, productivity, better sleep, reduced anxiety. Your goals shape what content gets rewarded.</p>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h3>Consume Content</h3>
<p>Browse as usual. Our browser extension tracks your time and identifies what you're viewing on platforms like TikTok, Instagram, YouTube, and Reddit.</p>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h3>Rate & Earn XP</h3>
<p>Mark content as valuable or skip it. Goal-aligned valuable content earns 15 XP. Even skipping junk content earns 3 XP. Your choices matter.</p>
</div>
</div>
<div class="step">
<div class="step-number">4</div>
<div class="step-content">
<h3>Receive Gentle Nudges</h3>
<p>After 20 minutes of continuous scrolling, we check in: "How are you feeling?" No judgment, just awareness. Sometimes that's all you need.</p>
</div>
</div>
<div class="step">
<div class="step-number">5</div>
<div class="step-content">
<h3>Track Your Wellness</h3>
<p>Your wellness score reflects goal alignment (40%), time management (30%), mood trends (20%), and engagement quality (10%). Watch it improve over time.</p>
</div>
</div>
<div class="step">
<div class="step-number">6</div>
<div class="step-content">
<h3>Level Up</h3>
<p>Accumulate XP, level up, unlock insights. See your progress in real-time. Digital wellness becomes a game you actually want to play.</p>
</div>
</div>
</div>
</div>
<div class="about-section">
<h2>🔬 The Logic</h2>
<p><strong>Ethos:</strong> We believe human attention is valuable and should be spent intentionally, not hijacked by algorithms optimized for engagement over wellbeing.</p>
<p><strong>Logos:</strong> Research shows that intervention timing, self-awareness, and positive reinforcement are more effective than restriction. By gamifying mindful consumption, providing real-time feedback, and introducing gentle friction, we help users reclaim agency over their digital lives.</p>
<p>Scroll Balance doesn't block or restrict. It measures, reflects, and rewards. The goal isn't zero screen time—it's intentional screen time.</p>
</div>
<div class="about-section about-cta">
<h2>Ready to Find Balance?</h2>
<p>Start by setting your goals, install the browser extension, and let the protocol guide you toward healthier digital habits.</p>
<div class="cta-buttons">
<button class="primary-btn" onclick="app.navigateTo('goals')">Set Your Goals</button>
<button class="secondary-btn" onclick="app.navigateTo('feed')">Browse Smart Feed</button>
</div>
</div>
</div>
</div>
</main>
<!-- Modals -->
<div id="reflection-modal" class="modal">
<div class="modal-content modern">
<button class="modal-close">×</button>
<h2>Quick Check-in</h2>
<p>How are you feeling right now?</p>
<div class="mood-grid">
<button class="mood-card" data-mood="energized">
<span class="mood-emoji">⚡</span>
<span class="mood-label">Energized</span>
</button>
<button class="mood-card" data-mood="calm">
<span class="mood-emoji">😌</span>
<span class="mood-label">Calm</span>
</button>
<button class="mood-card" data-mood="focused">
<span class="mood-emoji">🎯</span>
<span class="mood-label">Focused</span>
</button>
<button class="mood-card" data-mood="tired">
<span class="mood-emoji">😴</span>
<span class="mood-label">Tired</span>
</button>
<button class="mood-card" data-mood="stressed">
<span class="mood-emoji">😰</span>
<span class="mood-label">Stressed</span>
</button>
<button class="mood-card" data-mood="happy">
<span class="mood-emoji">😊</span>
<span class="mood-label">Happy</span>
</button>
</div>
</div>
</div>
<script src="charts.js"></script>
<script src="app.js"></script>
</body>
</html>