-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsky-practice.html
More file actions
380 lines (352 loc) · 19.6 KB
/
sky-practice.html
File metadata and controls
380 lines (352 loc) · 19.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
<!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="Sudarshan Kriya (SKY) Home Practice — Guided Pranayama, Bhastrika, Om Chanting, Kriya breath cycles, and Savasana deep rest.">
<title>SKY Home Practice — Sudarshan Kriya</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=Outfit:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="sky-practice-styles.css">
</head>
<body>
<div class="app-container">
<!-- Animated Background -->
<div class="background-animation">
<div class="bg-orbs"></div>
<div class="floating-dots"></div>
</div>
<!-- Header -->
<header class="header">
<div class="header-content">
<div class="logo">
<svg class="lotus-icon" viewBox="0 0 60 60" width="40" height="40">
<defs>
<linearGradient id="lotusGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#3b82f6" />
<stop offset="100%" style="stop-color:#93c5fd" />
</linearGradient>
</defs>
<!-- Lotus petals -->
<ellipse cx="30" cy="32" rx="8" ry="16" fill="url(#lotusGrad)" opacity="0.9"
transform="rotate(-30 30 32)" />
<ellipse cx="30" cy="32" rx="8" ry="16" fill="url(#lotusGrad)" opacity="0.7"
transform="rotate(30 30 32)" />
<ellipse cx="30" cy="32" rx="6" ry="14" fill="url(#lotusGrad)" opacity="0.8" />
<ellipse cx="30" cy="32" rx="8" ry="16" fill="url(#lotusGrad)" opacity="0.5"
transform="rotate(-60 30 32)" />
<ellipse cx="30" cy="32" rx="8" ry="16" fill="url(#lotusGrad)" opacity="0.5"
transform="rotate(60 30 32)" />
<!-- Center -->
<circle cx="30" cy="30" r="4" fill="#f0fdfa" opacity="0.9" />
</svg>
<h1>SKY Practice</h1>
</div>
<button id="settings-btn" class="settings-btn" aria-label="Settings">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="12" cy="12" r="3" />
<path
d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" />
</svg>
</button>
</div>
<p class="subtitle">Sudarshan Kriya Home Practice</p>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- ═══ Home Screen ═══ -->
<div id="home-screen" class="screen home-screen active">
<div class="welcome-card glass-card">
<h2>Begin Your Practice</h2>
<p>Choose how you'd like to practice today.</p>
<div class="mode-cards">
<div class="mode-card" id="guided-session-btn">
<div class="mode-icon">
<svg viewBox="0 0 24 24" width="32" height="32" fill="none" stroke="currentColor"
stroke-width="1.5">
<path d="M5 3l14 9-14 9V3z" />
</svg>
</div>
<div class="mode-info">
<h3>Guided Session</h3>
<p>Complete practice — all 5 phases in sequence</p>
</div>
<svg class="mode-arrow" viewBox="0 0 24 24" width="20" height="20" fill="none"
stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6" />
</svg>
</div>
<div class="mode-card" id="quick-practice-btn">
<div class="mode-icon">
<svg viewBox="0 0 24 24" width="32" height="32" fill="none" stroke="currentColor"
stroke-width="1.5">
<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="mode-info">
<h3>Quick Practice</h3>
<p>Pick a specific section to practice</p>
</div>
<svg class="mode-arrow" viewBox="0 0 24 24" width="20" height="20" fill="none"
stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6" />
</svg>
</div>
</div>
<!-- Quick Practice Section Picker (hidden by default) -->
<div id="section-picker" class="section-picker" style="display: none;">
<h3 class="picker-title">Choose a Section</h3>
<div class="section-cards" id="section-cards">
<!-- Populated by JS -->
</div>
</div>
</div>
<!-- Practice Streak -->
<div class="streak-card glass-card">
<div class="streak-header">
<h3>🔥 Practice Streak</h3>
<span id="streak-count" class="streak-count">0 days</span>
</div>
<div id="calendar-grid" class="calendar-grid">
<!-- Populated by JS -->
</div>
</div>
</div>
<!-- ═══ Practice Screen ═══ -->
<div id="practice-screen" class="screen">
<div class="practice-container">
<!-- Back Button -->
<button id="back-btn" class="back-btn">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor"
stroke-width="2">
<polyline points="15 18 9 12 15 6" />
</svg>
<span>Back</span>
</button>
<!-- Phase Badge -->
<div class="phase-badge">
<span id="phase-badge-icon" class="badge-icon">🫁</span>
<span id="phase-badge-text" class="badge-text">Pranayama</span>
</div>
<!-- Phase Progress Bar -->
<div class="progress-container">
<div class="progress-bar">
<div id="progress-fill" class="progress-fill"></div>
</div>
<div class="progress-phases" id="progress-phases">
<!-- Populated by JS -->
</div>
</div>
<!-- Main Practice Card -->
<div class="practice-card glass-card">
<!-- Phase Title -->
<div class="phase-header">
<h2 id="phase-name" class="phase-name">Ujjayi Pranayama — Stage 1</h2>
<p id="phase-subtitle" class="phase-subtitle">Hands on Lower Ribs</p>
<p id="phase-sanskrit" class="phase-sanskrit"></p>
</div>
<!-- Breathing Bubble -->
<div class="bubble-container">
<div id="breathing-bubble" class="breathing-bubble">
<div class="bubble-ring"></div>
<div class="bubble-inner">
<span id="bubble-label" class="bubble-label">Ready</span>
<span id="bubble-counter" class="bubble-counter"></span>
</div>
</div>
</div>
<!-- Breath Counter (Bhastrika / Kriya) -->
<div id="breath-counter-display" class="breath-counter-display" style="display: none;">
<span id="breath-current" class="breath-current">0</span>
<span class="breath-separator">/</span>
<span id="breath-total" class="breath-total">20</span>
</div>
<!-- Round Info -->
<div id="round-info" class="round-info" style="display: none;">
<span id="round-label" class="round-label">Round 1 of 3</span>
</div>
<!-- Repetition Counter (Pranayama) -->
<div id="rep-counter" class="rep-counter" style="display: none;">
<span id="rep-label" class="rep-label">Breath 1 of 8</span>
</div>
<!-- Om Symbol (Om Chanting) -->
<div id="om-display" class="om-display" style="display: none;">
<div class="om-symbol">ॐ</div>
<p id="om-instruction" class="om-instruction">Chant Now</p>
</div>
<!-- Timer Ring -->
<div id="timer-container" class="timer-container">
<svg class="timer-ring" viewBox="0 0 120 120">
<circle class="timer-bg" cx="60" cy="60" r="54" />
<circle id="timer-progress" class="timer-progress" cx="60" cy="60" r="54" />
</svg>
<div class="timer-display">
<span id="timer-text" class="timer-text">0:00</span>
<span class="timer-label">remaining</span>
</div>
</div>
<!-- Savasana Audio Selector -->
<div id="audio-selector" class="audio-selector" style="display: none;">
<p class="audio-label">Ambient Sound</p>
<div class="audio-options" id="audio-options">
<!-- Populated by JS -->
</div>
</div>
<!-- Instructions -->
<div class="phase-instructions">
<p id="phase-description" class="description-text"></p>
</div>
</div>
<!-- Controls -->
<div class="controls">
<button id="pause-btn" class="control-btn">
<svg id="pause-icon" viewBox="0 0 24 24" width="28" height="28" fill="currentColor">
<rect x="6" y="4" width="4" height="16" />
<rect x="14" y="4" width="4" height="16" />
</svg>
<svg id="play-icon" viewBox="0 0 24 24" width="28" height="28" fill="currentColor"
style="display: none;">
<polygon points="5 3 19 12 5 21 5 3" />
</svg>
</button>
<button id="skip-btn" class="control-btn secondary">
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
<polygon points="5 4 15 12 5 20 5 4" />
<line x1="19" y1="5" x2="19" y2="19" stroke="currentColor" stroke-width="2" />
</svg>
</button>
<button id="restart-btn" class="control-btn secondary">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor"
stroke-width="2">
<polyline points="1 4 1 10 7 10" />
<path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10" />
</svg>
</button>
</div>
</div>
</div>
<!-- ═══ Rest Screen (Between Stages) ═══ -->
<div id="rest-screen" class="screen">
<div class="rest-container">
<div class="rest-card glass-card">
<div class="rest-icon">✨</div>
<h2>Relax</h2>
<p class="rest-message">Let your breathing return to normal. Prepare for the next stage.</p>
<div class="rest-timer">
<span id="rest-countdown" class="rest-countdown">10</span>
</div>
</div>
</div>
</div>
<!-- ═══ Completion Screen ═══ -->
<div id="complete-screen" class="screen">
<div class="completion-card glass-card">
<div class="celebration-icon">
<svg viewBox="0 0 120 120" width="120" height="120">
<defs>
<linearGradient id="celebrateGrad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#3b82f6" />
<stop offset="50%" style="stop-color:#93c5fd" />
<stop offset="100%" style="stop-color:#a78bfa" />
</linearGradient>
</defs>
<circle cx="60" cy="60" r="50" fill="none" stroke="url(#celebrateGrad)" stroke-width="4"
class="celebrate-ring" />
<path d="M40 60 L55 75 L85 45" stroke="url(#celebrateGrad)" stroke-width="6" fill="none"
stroke-linecap="round" stroke-linejoin="round" class="checkmark" />
</svg>
</div>
<h2>Jai Gurudev 🙏</h2>
<p id="completion-message">Your Sudarshan Kriya practice is complete. Energy flows freely through
you.</p>
<div class="completion-stats">
<div class="stat">
<span id="stat-phases" class="stat-value">5</span>
<span class="stat-label">Phases</span>
</div>
<div class="stat">
<span id="stat-time" class="stat-value">30</span>
<span id="stat-time-label" class="stat-label">Minutes</span>
</div>
</div>
<button id="home-complete-btn" class="primary-btn" style="margin-bottom: 0.75rem;">
<span>Home</span>
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor"
stroke-width="2">
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
<polyline points="9 22 9 12 15 12 15 22" />
</svg>
</button>
<button id="repeat-complete-btn" class="primary-btn"
style="background: rgba(255,255,255,0.1); box-shadow: none;">
<span>Repeat Practice</span>
<svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor"
stroke-width="2">
<polyline points="1 4 1 10 7 10" />
<path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10" />
</svg>
</button>
</div>
</div>
</main>
<!-- ═══ Disclaimer Modal ═══ -->
<div id="disclaimer-modal" class="modal-overlay">
<div class="modal-content glass-card disclaimer-modal">
<div class="disclaimer-icon">🙏</div>
<h3>Important Notice</h3>
<p id="disclaimer-text" class="disclaimer-text"></p>
<button id="disclaimer-accept" class="primary-btn">
<span>I Understand — Begin Practice</span>
</button>
</div>
</div>
<!-- ═══ Settings Modal ═══ -->
<div id="settings-modal" class="modal-overlay">
<div class="modal-content glass-card">
<div class="modal-header">
<h3>Settings</h3>
<button id="close-settings" class="close-btn" aria-label="Close">
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor"
stroke-width="2">
<line x1="18" y1="6" x2="6" y2="18" />
<line x1="6" y1="6" x2="18" y2="18" />
</svg>
</button>
</div>
<div class="modal-body">
<div class="setting-item">
<label>Voice Guidance</label>
<p class="setting-hint">Count cues during breath cycles</p>
<div class="toggle-container">
<button id="voice-toggle" class="toggle-btn active">
<span class="toggle-knob"></span>
</button>
</div>
</div>
<div class="setting-item">
<label>Savasana Audio</label>
<p class="setting-hint">Default ambient sound for deep rest</p>
<div class="savasana-audio-setting" id="savasana-audio-setting">
<button class="audio-preset-btn active" data-audio="silence">🔇 Silence</button>
<button class="audio-preset-btn" data-audio="flute">🎶 Flute</button>
<button class="audio-preset-btn" data-audio="nidra">🧠 Nidra</button>
</div>
</div>
</div>
<div class="modal-footer">
<button id="save-settings" class="primary-btn">
<span>Save Settings</span>
</button>
</div>
</div>
</div>
</div>
<script src="sky-practice-data.js"></script>
<script src="sky-practice-app.js"></script>
</body>
</html>