-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsurya-namaskar.html
More file actions
334 lines (315 loc) · 18.3 KB
/
surya-namaskar.html
File metadata and controls
334 lines (315 loc) · 18.3 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
<!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="Practice Surya Namaskar (Sun Salutation) with guided 30-second timers for each pose. Features beautiful SVG animations and audio cues.">
<title>Surya Namaskar - Sun Salutation Practice</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="surya-namaskar-styles.css">
<!-- Preload pose images for browser caching -->
<link rel="preload" as="image" href="images/pose_1.png">
<link rel="preload" as="image" href="images/pose_2.png">
<link rel="preload" as="image" href="images/pose_3.png">
<link rel="preload" as="image" href="images/pose_4.png">
<link rel="preload" as="image" href="images/pose_5.png">
<link rel="preload" as="image" href="images/pose_6.png">
<link rel="preload" as="image" href="images/pose_7.png">
<link rel="preload" as="image" href="images/pose_8.png">
<link rel="preload" as="image" href="images/pose_9.png">
<link rel="preload" as="image" href="images/pose_10.png">
<link rel="preload" as="image" href="images/pose_11.png">
<link rel="preload" as="image" href="images/pose_12.png">
</head>
<body>
<div class="app-container">
<!-- Animated Background -->
<div class="background-animation">
<div class="sun-rays"></div>
<div class="floating-particles"></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="lotusGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#FF6B6B" />
<stop offset="100%" style="stop-color:#FFE66D" />
</linearGradient>
</defs>
<path d="M30 5 Q35 20 30 30 Q25 20 30 5" fill="url(#lotusGradient)" opacity="0.9" />
<path d="M30 5 Q45 15 40 30 Q35 20 30 5" fill="url(#lotusGradient)" opacity="0.8" />
<path d="M30 5 Q15 15 20 30 Q25 20 30 5" fill="url(#lotusGradient)" opacity="0.8" />
<path d="M30 30 Q40 35 45 50 Q30 45 30 30" fill="url(#lotusGradient)" opacity="0.7" />
<path d="M30 30 Q20 35 15 50 Q30 45 30 30" fill="url(#lotusGradient)" opacity="0.7" />
<ellipse cx="30" cy="52" rx="12" ry="4" fill="url(#lotusGradient)" opacity="0.5" />
</svg>
<h1>Surya Namaskar</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">Sun Salutation • 12 Sacred Poses</p>
</header>
<!-- Main Content -->
<main class="main-content">
<!-- Start Screen -->
<div id="start-screen" class="screen active">
<div class="welcome-card glass-card">
<div class="welcome-icon">
<svg viewBox="0 0 120 120" width="120" height="120">
<defs>
<linearGradient id="sunGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#FFD93D" />
<stop offset="50%" style="stop-color:#FF8C00" />
<stop offset="100%" style="stop-color:#FF6B6B" />
</linearGradient>
</defs>
<circle cx="60" cy="60" r="30" fill="url(#sunGradient)" class="sun-pulse" />
<g class="sun-rays-animated">
<line x1="60" y1="15" x2="60" y2="5" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="60" y1="115" x2="60" y2="105" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="15" y1="60" x2="5" y2="60" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="115" y1="60" x2="105" y2="60" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="28" y1="28" x2="21" y2="21" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="92" y1="28" x2="99" y2="21" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="28" y1="92" x2="21" y2="99" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
<line x1="92" y1="92" x2="99" y2="99" stroke="url(#sunGradient)" stroke-width="3"
stroke-linecap="round" />
</g>
</svg>
</div>
<h2>Welcome to Your Practice</h2>
<p>Begin your journey with the ancient Sun Salutation sequence. Tap the settings icon to adjust pose
duration.</p>
<div class="pose-preview-grid">
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
<span class="preview-dot"></span>
</div>
<button id="start-btn" class="primary-btn">
<span>Begin Practice</span>
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor"
stroke-width="2">
<polygon points="5 3 19 12 5 21 5 3" />
</svg>
</button>
</div>
</div>
<!-- Practice Screen -->
<div id="practice-screen" class="screen">
<div class="practice-container">
<!-- Set Indicator -->
<div id="set-indicator" class="set-indicator" style="display: none;">
<span class="set-badge">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2">
<path d="M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"/>
</svg>
Set <span id="current-set">1</span> of <span id="total-sets">1</span>
</span>
</div>
<!-- Progress Bar -->
<div class="progress-container">
<div class="progress-bar">
<div id="progress-fill" class="progress-fill"></div>
</div>
<div class="progress-dots" id="progress-dots"></div>
</div>
<!-- Pose Display -->
<div class="pose-card glass-card">
<div class="pose-header">
<span id="pose-number" class="pose-number">1</span>
<div class="pose-info">
<h2 id="pose-name" class="pose-name">Pranamasana</h2>
<p id="pose-subtitle" class="pose-subtitle">Prayer Pose</p>
</div>
<div id="breathing-indicator" class="breathing-indicator inhale">
<span class="breath-text">INHALE</span>
<div class="breath-animation"></div>
</div>
</div>
<!-- SVG Pose Animation -->
<div class="pose-animation-container">
<div id="breath-visual" class="breath-visual"></div>
<div id="pose-svg" class="pose-svg"></div>
</div>
<!-- Timer -->
<div 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-seconds" class="timer-seconds">30</span>
<span class="timer-label">seconds</span>
</div>
</div>
<!-- Pose Instructions -->
<div class="pose-instructions">
<p id="pose-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>
<!-- 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="celebrateGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#6DD5FA" />
<stop offset="50%" style="stop-color:#FF6B6B" />
<stop offset="100%" style="stop-color:#FFE66D" />
</linearGradient>
</defs>
<circle cx="60" cy="60" r="50" fill="none" stroke="url(#celebrateGradient)" stroke-width="4"
class="celebrate-ring" />
<path d="M40 60 L55 75 L85 45" stroke="url(#celebrateGradient)" stroke-width="6" fill="none"
stroke-linecap="round" stroke-linejoin="round" class="checkmark" />
</svg>
</div>
<h2>Namaste! 🙏</h2>
<p>You have completed one full round of Surya Namaskar. Your body and mind thank you for this sacred
practice.</p>
<div class="completion-stats">
<div class="stat">
<span id="stat-sets" class="stat-value">1</span>
<span id="stat-sets-label" class="stat-label">Set</span>
</div>
<div class="stat">
<span id="stat-poses" class="stat-value">12</span>
<span class="stat-label">Poses</span>
</div>
<div class="stat">
<span id="stat-time" class="stat-value">3</span>
<span id="stat-time-label" class="stat-label">Minutes</span>
</div>
</div>
<button id="restart-practice-btn" class="primary-btn">
<span>Practice Again</span>
<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>
</main>
<!-- Audio Elements -->
<div id="audio-container" style="display: none;"></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>Time per pose</label>
<div class="time-selector">
<button type="button" class="time-btn minus" id="time-decrease">−</button>
<div class="time-display">
<span id="time-value">15</span>
<span class="time-unit">sec</span>
</div>
<button type="button" class="time-btn plus" id="time-increase">+</button>
</div>
<div class="time-presets">
<button type="button" class="preset-btn" data-time="10">10s</button>
<button type="button" class="preset-btn active" data-time="15">15s</button>
<button type="button" class="preset-btn" data-time="30">30s</button>
<button type="button" class="preset-btn" data-time="60">60s</button>
</div>
</div>
<div class="setting-item">
<label>Number of sets</label>
<p class="setting-hint">Complete multiple rounds of the full sequence</p>
<div class="time-selector">
<button type="button" class="time-btn minus" id="sets-decrease">−</button>
<div class="time-display">
<span id="sets-value">1</span>
<span class="time-unit">sets</span>
</div>
<button type="button" class="time-btn plus" id="sets-increase">+</button>
</div>
<div class="time-presets">
<button type="button" class="sets-preset-btn active" data-sets="1">1</button>
<button type="button" class="sets-preset-btn" data-sets="3">3</button>
<button type="button" class="sets-preset-btn" data-sets="5">5</button>
<button type="button" class="sets-preset-btn" data-sets="7">7</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="surya-namaskar-poses.js"></script>
<script src="surya-namaskar-app.js"></script>
</body>
</html>