Repository navigation
Expand file tree
/
Copy pathonboarding.html
More file actions
350 lines (331 loc) · 19.1 KB
/
Copy pathonboarding.html
File metadata and controls
350 lines (331 loc) · 19.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Solace | Getting Started</title>
<link rel="stylesheet" href="styles/onboarding.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
<!-- Progress bar -->
<div class="progress-container">
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<div class="progress-text">
<span id="currentStep">1</span> of <span id="totalSteps">3</span>
</div>
</div>
<!-- Mobile Desktop Mode Popup -->
<div id="mobilePopup" class="mobile-popup" style="display: none;">
<div class="mobile-popup-content">
<div class="mobile-popup-icon">💻</div>
<h3>Desktop Mode Recommended</h3>
<p>This website runs best in desktop mode for the optimal experience. Please rotate your device or use a desktop browser.</p>
<div class="mobile-popup-actions">
<button class="mobile-popup-btn primary" onclick="hideMobilePopup()">Got it</button>
<button class="mobile-popup-btn secondary" onclick="requestDesktopSite()">Request Desktop Site</button>
</div>
</div>
</div>
<!-- Skip button -->
<button class="skip-btn" onclick="skipOnboarding()">
Skip for now
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M9 18l6-6-6-6"/>
</svg>
</button>
<!-- Carousel container -->
<div class="carousel-container">
<!-- Step 1: Welcome & Complete Profile Info -->
<div class="carousel-slide active" id="step1">
<div class="slide-content">
<div class="slide-visual">
<div class="welcome-animation">
<div class="welcome-icon">
<svg width="80" height="80" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/>
</svg>
</div>
<div class="floating-hearts">
<span>💙</span>
<span>💚</span>
<span>💜</span>
<span>🧡</span>
</div>
</div>
</div>
<div class="slide-text">
<h1>Welcome to Solace! 🎉</h1>
<p>We're excited to support you on your mental wellness journey. Let's complete your profile to personalize your experience.</p>
<div class="basic-info-form">
<h3>Complete Your Profile</h3>
<div class="form-row">
<div class="form-group">
<label for="age">Age (Optional)</label>
<input type="number" id="age" placeholder="25" class="form-input" min="13" max="120">
</div>
<div class="form-group">
<label for="gender">Gender (Optional)</label>
<select id="gender" class="form-input">
<option value="">Prefer not to say</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="non-binary">Non-binary</option>
<option value="other">Other</option>
</select>
</div>
</div>
<div class="form-group">
<label for="status">Current Status *</label>
<select id="status" class="form-input" required>
<option value="">Select your current status</option>
<option value="high-school">High School Student</option>
<option value="college">College/University Student</option>
<option value="graduate">Graduate Student</option>
<option value="working">Working Professional</option>
<option value="freelancer">Freelancer/Self-employed</option>
<option value="unemployed">Between Jobs</option>
<option value="retired">Retired</option>
<option value="other">Other</option>
</select>
<div class="error-message" id="status-error"></div>
</div>
<!-- College/School Section (shows based on status) -->
<div class="education-section" id="educationSection" style="display: none;">
<div class="form-group">
<label for="institution">Institution Name *</label>
<input type="text" id="institution" placeholder="Enter your school/college/university name" class="form-input">
<div class="error-message" id="institution-error"></div>
</div>
<div class="form-row">
<div class="form-group">
<label for="year">Year/Grade *</label>
<select id="year" class="form-input">
<option value="">Select year</option>
<!-- Options will be populated based on status -->
</select>
<div class="error-message" id="year-error"></div>
</div>
<div class="form-group">
<label for="course">Field of Study/Major</label>
<input type="text" id="course" placeholder="e.g., Computer Science, Psychology" class="form-input">
</div>
</div>
</div>
<!-- Work Section (shows for working professionals) -->
<div class="work-section" id="workSection" style="display: none;">
<div class="form-group">
<label for="company">Company/Organization</label>
<input type="text" id="company" placeholder="Enter your workplace" class="form-input">
</div>
<div class="form-group">
<label for="role">Job Title/Role</label>
<input type="text" id="role" placeholder="e.g., Software Engineer, Teacher" class="form-input">
</div>
</div>
<div class="form-group">
<label for="location">Location (Optional)</label>
<input type="text" id="location" placeholder="City, Country" class="form-input">
</div>
</div>
</div>
</div>
</div>
<!-- Step 2: Mental Health Assessment -->
<div class="carousel-slide" id="step2">
<div class="slide-content">
<div class="slide-visual">
<div class="assessment-animation">
<div class="mood-circle">
<div class="mood-face" id="moodFace">😊</div>
</div>
<div class="mood-indicators">
<div class="mood-dot" data-mood="😢"></div>
<div class="mood-dot" data-mood="😐"></div>
<div class="mood-dot active" data-mood="😊"></div>
<div class="mood-dot" data-mood="😄"></div>
<div class="mood-dot" data-mood="🤗"></div>
</div>
</div>
</div>
<div class="slide-text">
<h1>How are you feeling today?</h1>
<p>This helps us understand your current state and provide better support. Your responses are completely confidential.</p>
<div class="assessment-form">
<div class="question-group">
<h4>Overall, how would you rate your mental wellbeing today?</h4>
<div class="mood-scale">
<button type="button" class="mood-btn" data-value="1">😢 Very Low</button>
<button type="button" class="mood-btn" data-value="2">😔 Low</button>
<button type="button" class="mood-btn" data-value="3">😐 Neutral</button>
<button type="button" class="mood-btn" data-value="4">😊 Good</button>
<button type="button" class="mood-btn" data-value="5">😄 Excellent</button>
</div>
</div>
<div class="question-group">
<h4>What brings you to Solace? (Select all that apply)</h4>
<div class="checkbox-grid">
<label class="checkbox-card">
<input type="checkbox" value="stress">
<div class="card-content">
<span class="icon">😰</span>
<span class="text">Academic/Work Stress</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="anxiety">
<div class="card-content">
<span class="icon">😟</span>
<span class="text">Anxiety</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="depression">
<div class="card-content">
<span class="icon">😔</span>
<span class="text">Feeling Down</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="loneliness">
<div class="card-content">
<span class="icon">😞</span>
<span class="text">Loneliness</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="sleep">
<div class="card-content">
<span class="icon">😴</span>
<span class="text">Sleep Issues</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="relationships">
<div class="card-content">
<span class="icon">💔</span>
<span class="text">Relationships</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="self-esteem">
<div class="card-content">
<span class="icon">🪞</span>
<span class="text">Self-Esteem</span>
</div>
</label>
<label class="checkbox-card">
<input type="checkbox" value="general">
<div class="card-content">
<span class="icon">🌱</span>
<span class="text">General Wellness</span>
</div>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Step 3: Features Overview -->
<div class="carousel-slide" id="step3">
<div class="slide-content">
<div class="slide-visual">
<div class="features-animation">
<div class="feature-grid-visual">
<div class="feature-icon-visual journal">📝</div>
<div class="feature-icon-visual chat">💬</div>
<div class="feature-icon-visual resources">🧘</div>
<div class="feature-icon-visual sos">🆘</div>
</div>
</div>
</div>
<div class="slide-text">
<h1>Your Mental Wellness Toolkit</h1>
<p>Here's what's available to support you whenever you need it:</p>
<div class="features-overview" role="list" aria-label="Available mental wellness features">
<div class="feature-item" role="listitem" tabindex="0">
<div class="feature-icon" aria-hidden="true">📝</div>
<div class="feature-details">
<h4>Private Journal</h4>
<p>Express your thoughts safely and track your emotional patterns</p>
</div>
</div>
<div class="feature-item" role="listitem" tabindex="0">
<div class="feature-icon" aria-hidden="true">💬</div>
<div class="feature-details">
<h4>AI Mental Health Support</h4>
<p>24/7 intelligent assistance for coping strategies and immediate help</p>
</div>
</div>
<div class="feature-item" role="listitem" tabindex="0">
<div class="feature-icon" aria-hidden="true">🧘</div>
<div class="feature-details">
<h4>Wellness Resources</h4>
<p>Breathing exercises, meditation guides, and educational content</p>
</div>
</div>
<div class="feature-item" role="listitem" tabindex="0">
<div class="feature-icon" aria-hidden="true">👥</div>
<div class="feature-details">
<h4>Peer Support</h4>
<p>Connect with others in a safe, moderated community environment</p>
</div>
</div>
<div class="feature-item" role="listitem" tabindex="0">
<div class="feature-icon" aria-hidden="true">📅</div>
<div class="feature-details">
<h4>Confidential Booking</h4>
<p>Schedule appointments with counselors and mental health professionals</p>
</div>
</div>
<div class="feature-item" role="listitem" tabindex="0">
<div class="feature-icon" aria-hidden="true">🆘</div>
<div class="feature-details">
<h4>Emergency Support</h4>
<p>Quick access to crisis helplines and emergency mental health resources</p>
</div>
</div>
</div>
<div class="privacy-reminder">
<div class="privacy-icon">🔒</div>
<div class="privacy-text">
<strong>Your privacy is protected:</strong> All your data is encrypted, confidential, and never shared without your consent.
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Navigation -->
<div class="navigation">
<button class="nav-btn prev-btn" onclick="previousStep()" disabled>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M15 18l-6-6 6-6"/>
</svg>
Previous
</button>
<div class="dots-indicator">
<span class="dot active" data-step="1"></span>
<span class="dot" data-step="2"></span>
<span class="dot" data-step="3"></span>
</div>
<button class="nav-btn next-btn" onclick="nextStep()">
Next
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M9 18l6-6-6-6"/>
</svg>
</button>
</div>
<!-- Firebase UMD (compat) scripts -->
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore-compat.js"></script>
<!-- Firebase config -->
<script src="scripts/firebase-config.js"></script>
<!-- Onboarding Logic -->
<script src="scripts/onboarding.js"></script>
</body>
</html>