Amogh1221 commited on
Commit
78cb2fc
·
verified ·
1 Parent(s): bc5e8a1

Delete templates

Browse files
Files changed (1) hide show
  1. templates/index.html +0 -398
templates/index.html DELETED
@@ -1,398 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Serinity - Mental Healthcare</title>
7
- <link rel="icon" type="image/svg+xml" href="/static/icons/logo.svg">
8
- <script src="https://cdn.tailwindcss.com"></script>
9
- <link rel="stylesheet" href="/static/css/style.css">
10
- <script>
11
- tailwind.config = {
12
- theme: {
13
- extend: {
14
- colors: {
15
- paper: '#F6F3EE',
16
- ink: '#262521',
17
- moss: '#4B6358',
18
- clay: '#9C7A5B',
19
- signal: '#B4483C'
20
- }
21
- }
22
- }
23
- }
24
- </script>
25
- </head>
26
- <body class="bg-paper text-ink min-h-screen flex flex-col font-body">
27
-
28
- <!-- Loading Screen -->
29
- <div id="loadingScreen" class="fixed inset-0 bg-paper z-50 flex flex-col items-center justify-center transition-opacity duration-500">
30
- <h1 class="logo-text">Serinity</h1>
31
- <div class="loading-dots" id="loadingDots">
32
- <span></span>
33
- <span></span>
34
- <span></span>
35
- </div>
36
- <button class="btn-primary mt-8" id="startButton" disabled>
37
- Initializing...
38
- </button>
39
- <p id="wakeupText" class="text-sm text-clay mt-4 text-center max-w-xs mx-auto font-utility">
40
- Validating credentials...
41
- </p>
42
- </div>
43
-
44
- <!-- Auth Screen -->
45
- <div id="authScreen" style="display: none;" class="fixed inset-0 bg-paper z-40 flex flex-col items-center justify-center p-4 overflow-y-auto custom-scrollbar">
46
- <div class="panel p-8 max-w-md w-full my-auto shadow-sm">
47
-
48
- <!-- Logo/Branding -->
49
- <div class="flex items-center gap-3 mb-8 justify-center">
50
- <img src="/static/icons/logo.svg" alt="Serinity Logo" class="w-10 h-10">
51
- <h2 class="text-3xl font-display text-ink">Serinity</h2>
52
- </div>
53
-
54
- <!-- Login Form -->
55
- <div id="loginFormContainer" class="block space-y-5">
56
- <div>
57
- <label class="block text-xs font-utility text-clay uppercase mb-1">Username / Email *</label>
58
- <input type="text" id="loginUsername" placeholder="Username or Email" class="w-full bg-paper border border-ink p-3 text-ink focus:outline-none focus:border-moss transition">
59
- </div>
60
- <div>
61
- <label class="block text-xs font-utility text-clay uppercase mb-1">Password</label>
62
- <input type="password" id="loginPassword" class="w-full bg-paper border border-ink p-3 text-ink focus:outline-none focus:border-moss transition" placeholder="Enter password">
63
- </div>
64
- <div class="flex justify-between items-center text-xs font-utility uppercase tracking-widest mt-2">
65
- <button id="showForgotPwdBtn" class="text-clay hover:text-ink transition">Forgot Password?</button>
66
- </div>
67
- <button id="loginBtn" class="w-full btn-primary py-3 font-utility uppercase tracking-widest text-sm mt-4">
68
- Log In
69
- </button>
70
- <div class="text-center mt-6 border-t border-ink/20 pt-6">
71
- <p class="text-xs text-clay font-utility uppercase tracking-widest mb-3">New Patient?</p>
72
- <button id="showSignupBtn" class="w-full bg-transparent border border-ink text-ink hover:bg-ink hover:text-paper transition py-3 font-utility uppercase tracking-widest text-sm">
73
- Create Account
74
- </button>
75
- </div>
76
- </div>
77
-
78
- <!-- Signup Form -->
79
- <div id="signupFormContainer" class="hidden space-y-4">
80
- <div>
81
- <label class="block text-xs font-utility text-clay uppercase mb-1">Full Name *</label>
82
- <input type="text" id="signupName" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss" placeholder="Jane Doe">
83
- </div>
84
- <div class="grid grid-cols-3 gap-4">
85
- <div>
86
- <label class="block text-xs font-utility text-clay uppercase mb-1">Username *</label>
87
- <input type="text" id="signupUsername" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss">
88
- </div>
89
- <div>
90
- <label class="block text-xs font-utility text-clay uppercase mb-1">Gender *</label>
91
- <select id="signupGender" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss">
92
- <option value="">Select</option>
93
- <option value="Male">Male</option>
94
- <option value="Female">Female</option>
95
- <option value="Other">Other</option>
96
- </select>
97
- </div>
98
- <div>
99
- <label class="block text-xs font-utility text-clay uppercase mb-1">Age</label>
100
- <input type="number" id="signupAge" min="5" max="99" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss">
101
- </div>
102
- </div>
103
- <div>
104
- <label class="block text-xs font-utility text-clay uppercase mb-1">Email *</label>
105
- <input type="email" id="signupEmail" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss" placeholder="jane@example.com">
106
- </div>
107
- <div>
108
- <label class="block text-xs font-utility text-clay uppercase mb-1">Password *</label>
109
- <input type="password" id="signupPassword" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss">
110
- </div>
111
- <div class="grid grid-cols-2 gap-4">
112
- <div class="relative" id="nationalityWrapper">
113
- <label class="block text-xs font-utility text-clay uppercase mb-1" title="For cultural context">Nationality *</label>
114
- <input type="text" id="signupNationality" autocomplete="off" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss" placeholder="e.g. India">
115
- <div id="nationalityDropdown" class="hidden absolute left-0 right-0 top-full mt-1 bg-paper border border-ink z-50 max-h-48 overflow-y-auto shadow-lg">
116
- <!-- Populated by JS -->
117
- </div>
118
- </div>
119
- <div>
120
- <label class="block text-xs font-utility text-clay uppercase mb-1">Primary Concern *</label>
121
- <select id="signupConcern" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss">
122
- <option value="">Select...</option>
123
- <option value="Anxiety">Anxiety</option>
124
- <option value="Depression">Depression</option>
125
- <option value="Stress">Stress</option>
126
- <option value="Sleep">Sleep Issues</option>
127
- <option value="General">General Wellness</option>
128
- <option value="Other">Other</option>
129
- </select>
130
- </div>
131
- </div>
132
- <div class="grid grid-cols-2 gap-4">
133
- <div>
134
- <label class="block text-xs font-utility text-clay uppercase mb-1">Emergency Contact Name</label>
135
- <input type="text" id="signupEmergencyName" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss" placeholder="John Doe">
136
- </div>
137
- <div>
138
- <label class="block text-xs font-utility text-clay uppercase mb-1">Emergency Contact Phone</label>
139
- <input type="tel" id="signupEmergencyPhone" class="w-full bg-paper border border-ink p-2 text-ink focus:outline-none focus:border-moss" placeholder="+1 234 567 8900">
140
- </div>
141
- </div>
142
-
143
- <button id="signupCompleteBtn" class="w-full btn-primary py-3 font-utility uppercase tracking-widest text-sm mt-4">
144
- Create Account
145
- </button>
146
-
147
- <button id="backToLoginBtn1" class="w-full bg-transparent text-clay hover:text-ink transition py-3 font-utility uppercase tracking-widest text-xs mt-2">
148
- &larr; Back to Login
149
- </button>
150
- </div>
151
-
152
- <!-- Forgot Password Form -->
153
- <div id="forgotPwdFormContainer" class="hidden space-y-4">
154
- <p class="text-sm text-clay font-body mb-4">Enter your email address and a new password.</p>
155
- <div>
156
- <label class="block text-xs font-utility text-clay uppercase mb-1">Email Address</label>
157
- <input type="email" id="forgotPwdEmail" class="w-full bg-paper border border-ink p-3 text-ink focus:outline-none focus:border-moss transition" placeholder="jane@example.com">
158
- </div>
159
- <div>
160
- <label class="block text-xs font-utility text-clay uppercase mb-1">New Password</label>
161
- <input type="password" id="resetNewPassword" class="w-full bg-paper border border-ink p-3 text-ink focus:outline-none focus:border-moss" placeholder="Min. 8 characters">
162
- </div>
163
- <button id="submitResetBtn" class="w-full btn-primary py-3 font-utility uppercase tracking-widest text-sm mt-2">
164
- Update Password
165
- </button>
166
- <button id="backToLoginBtn2" class="w-full bg-transparent text-clay hover:text-ink transition py-3 font-utility uppercase tracking-widest text-xs mt-2">
167
- &larr; Back to Login
168
- </button>
169
- </div>
170
-
171
- </div>
172
- </div>
173
-
174
- <!-- Profile Selection Screen Removed -->
175
-
176
- <!-- Patient Dashboard -->
177
- <div class="hidden max-w-5xl mx-auto w-full h-screen p-4 flex-col fade-in overflow-hidden" id="dashboardScreen">
178
- <div class="bg-paper border border-ink p-6 lg:p-10 flex-1 flex flex-col min-h-0 h-full">
179
-
180
- <!-- Header -->
181
- <div class="flex justify-between items-start border-b border-ink/30 pb-6 mb-6 shrink-0">
182
- <div>
183
- <h2 class="text-3xl font-display text-ink" id="dashboardPatientName">Patient Name</h2>
184
- <p class="text-xs font-utility tracking-widest uppercase text-clay mt-2" id="dashboardPatientAge">Age: --</p>
185
- </div>
186
- <button class="btn-primary" id="dashboardStartBtn">NEW SESSION</button>
187
- </div>
188
-
189
- <!-- Content -->
190
- <div class="grid grid-cols-1 md:grid-cols-2 gap-10 flex-1 min-h-0 overflow-hidden" id="dashboardContent">
191
- <!-- Profile left -->
192
- <div class="space-y-6 overflow-y-auto pr-4 custom-scrollbar" id="dashboardDomains">
193
- <h3 class="font-utility uppercase text-clay text-sm border-b border-ink/30 pb-2">Clinical Profile</h3>
194
- <p class="text-clay text-sm italic">Loading profile data...</p>
195
- </div>
196
-
197
- <!-- Column 2: Session History -->
198
- <div class="flex flex-col min-h-0 h-full">
199
- <h3 class="font-utility uppercase text-clay text-sm border-b border-ink/30 pb-2 mb-4 shrink-0">Session History</h3>
200
- <div id="dashboardSessionsList" class="flex-1 overflow-y-auto pr-4 space-y-4 custom-scrollbar">
201
- <p class="text-clay text-sm italic">Loading previous sessions...</p>
202
- </div>
203
- </div>
204
- </div>
205
-
206
- <div class="mt-8 pt-6 border-t border-ink/30 shrink-0 flex flex-wrap justify-between items-center gap-4">
207
- <button class="text-xs font-utility tracking-widest text-clay hover:text-ink uppercase transition flex items-center gap-2" id="dashboardLogoutBtn">
208
- <span>&larr;</span> LOGOUT
209
- </button>
210
- <div class="flex gap-4">
211
- <button class="text-xs font-utility tracking-widest text-signal border border-signal hover:bg-signal hover:text-paper uppercase transition px-4 py-2 flex items-center gap-2" id="dashboardResetBtn">
212
- RESET DATA
213
- </button>
214
- <button class="text-xs font-utility tracking-widest text-paper bg-signal hover:bg-signal/90 uppercase transition px-4 py-2 flex items-center gap-2" id="dashboardDeleteBtn">
215
- DELETE ACCOUNT
216
- </button>
217
- </div>
218
- </div>
219
- </div>
220
- </div>
221
-
222
- <!-- Main App (Hidden Initially) -->
223
- <div id="mainApp" style="display: none;" class="flex flex-col h-screen">
224
- <!-- Header -->
225
- <header class="bg-paper border-b border-ink sticky top-0 z-50 py-2 md:py-3 shadow-sm">
226
- <div class="w-full px-3 md:px-12 mx-auto flex items-center justify-between gap-1 md:gap-2">
227
-
228
- <!-- Left: Logo & Title -->
229
- <div class="flex items-center gap-2 md:gap-4 shrink-0 min-w-0">
230
- <img src="/static/icons/logo.svg" alt="Serinity Logo" class="w-8 h-8 md:w-10 md:h-10 opacity-90 shrink-0">
231
- <div class="flex flex-col justify-center min-w-0">
232
- <h1 class="text-xl md:text-3xl font-display text-ink leading-none truncate" id="headerName">Serinity</h1>
233
- <p class="text-[10px] md:text-xs font-utility text-clay tracking-widest uppercase mt-0.5 truncate hidden sm:block">Clinical Session</p>
234
- </div>
235
- </div>
236
-
237
- <!-- Right: Controls -->
238
- <div class="flex items-center gap-2 shrink-0">
239
- <span id="sessionStats" class="text-xs font-utility text-moss uppercase hidden lg:block"></span>
240
-
241
- <select
242
- id="voiceSelect"
243
- class="bg-paper border border-ink text-ink text-xs md:text-sm font-utility px-1 py-1.5 outline-none focus:border-moss w-[70px] sm:w-[140px] md:w-[200px] cursor-pointer hover:bg-ink/5 truncate shrink-0"
244
- >
245
- <option value="">Voice: Off</option>
246
- </select>
247
-
248
- <!-- Mobile Slider Toggle -->
249
- <label class="flex sm:hidden items-center cursor-pointer gap-1.5 shrink-0" title="Toggle Audio Response">
250
- <div class="relative flex items-center">
251
- <input type="checkbox" id="audioOutputToggleMobile" class="sr-only">
252
- <div id="audioToggleTrack" class="block bg-ink/30 w-10 h-6 rounded-full transition-colors duration-200"></div>
253
- <div id="audioToggleDot" class="dot absolute left-1 top-1 bg-paper w-4 h-4 rounded-full transition-transform duration-200"></div>
254
- </div>
255
- <svg id="audioToggleIconMobile" class="w-4 h-4 text-ink/50 transition-colors duration-200" fill="none" stroke="currentColor" viewBox="0 0 24 24">
256
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072M17.95 6.05a8 8 0 010 11.9M6.5 8.5H4a1 1 0 00-1 1v5a1 1 0 001 1h2.5l4 4V4.5l-4 4z"></path>
257
- </svg>
258
- </label>
259
-
260
- <!-- Desktop Button Toggle -->
261
- <button
262
- id="audioOutputToggleDesktop"
263
- class="hidden sm:flex border border-ink text-ink hover:bg-moss hover:border-moss hover:text-paper transition-all items-center justify-center px-2 py-1.5 md:px-3 shrink-0 gap-1"
264
- title="Toggle Audio Response"
265
- >
266
- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
267
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072M17.95 6.05a8 8 0 010 11.9M6.5 8.5H4a1 1 0 00-1 1v5a1 1 0 001 1h2.5l4 4V4.5l-4 4z"></path>
268
- </svg>
269
- <span class="text-xs font-utility uppercase tracking-wide" id="audioToggleLabelDesktop">Audio Off</span>
270
- </button>
271
-
272
- <button
273
- id="endSessionBtn"
274
- class="text-signal hover:text-signal/70 transition-colors border border-signal flex items-center justify-center px-2 py-1.5 md:px-3 shrink-0"
275
- title="End Session"
276
- >
277
- <span class="text-xs md:text-sm font-utility uppercase tracking-wide md:hidden">End</span>
278
- <span class="hidden md:inline text-sm font-utility uppercase tracking-wide">End Session</span>
279
- </button>
280
- </div>
281
-
282
- </div>
283
- </header>
284
-
285
- <!-- Chat Container -->
286
- <div class="flex-1 overflow-hidden flex flex-col w-full">
287
- <div id="chatWrapper" class="flex-1 overflow-y-auto px-6 md:px-12 py-8 custom-scrollbar">
288
- <div id="chat" class="flex flex-col gap-6 max-w-3xl mx-auto pb-8"></div>
289
- </div>
290
- </div>
291
-
292
- <!-- Fixed Bottom Controls -->
293
- <div class="bg-paper border-t border-ink sticky bottom-0">
294
- <div class="w-full px-6 md:px-12 mx-auto py-4">
295
- <!-- Input Mode Toggle -->
296
- <div class="flex justify-center gap-4 mb-4">
297
- <button id="textModeBtn" class="btn-toggle active uppercase tracking-wider text-xs">Text</button>
298
- <button id="voiceModeBtn" class="btn-toggle uppercase tracking-wider text-xs">Audio</button>
299
- </div>
300
-
301
- <!-- Voice Input -->
302
- <div id="voiceInput" class="hidden flex-col items-center gap-3">
303
- <button
304
- id="micBtn"
305
- class="w-14 h-14 border border-ink rounded-full flex items-center justify-center transition-all duration-200 hover:bg-moss hover:border-moss hover:text-paper group text-ink"
306
- style="touch-action: none;"
307
- >
308
- <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
309
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z"></path>
310
- </svg>
311
- </button>
312
- <p id="status" class="text-xs font-utility text-clay uppercase tracking-widest">Hold Space to speak</p>
313
- </div>
314
-
315
- <!-- Text Input -->
316
- <div id="textInput" class="block">
317
- <div class="chat-input-container max-w-3xl mx-auto">
318
- <input
319
- type="text"
320
- id="chatInput"
321
- class="chat-input"
322
- placeholder="Enter message..."
323
- autocomplete="off"
324
- />
325
- <button id="sendBtn" class="px-4 py-2 bg-ink text-paper text-sm font-utility uppercase transition-colors hover:bg-moss">
326
- Submit
327
- </button>
328
- </div>
329
- </div>
330
- </div>
331
- </div>
332
- </div>
333
-
334
- <!-- Confirmation Modal -->
335
- <div id="confirmationModal" style="display: none;" class="fixed inset-0 bg-ink/50 backdrop-blur-sm z-[60] flex flex-col items-center justify-center p-4 fade-in">
336
- <div class="bg-paper border border-signal p-8 max-w-sm w-full shadow-lg">
337
- <h2 class="text-xl font-display text-signal mb-2" id="confirmModalTitle">Are you sure?</h2>
338
- <p class="text-clay text-sm mb-6" id="confirmModalText">This action cannot be undone.</p>
339
-
340
- <div class="flex gap-4">
341
- <button id="confirmModalCancelBtn" class="flex-1 bg-transparent border border-ink text-ink hover:bg-ink hover:text-paper transition py-2 font-utility uppercase tracking-widest text-sm">
342
- CANCEL
343
- </button>
344
- <button id="confirmModalConfirmBtn" class="flex-1 bg-signal text-paper hover:bg-signal/80 transition py-2 font-utility uppercase tracking-widest text-sm">
345
- CONFIRM
346
- </button>
347
- </div>
348
- </div>
349
- </div>
350
-
351
- <!-- Continue Session Modal -->
352
- <div id="continueSessionModal" style="display: none;" class="fixed inset-0 bg-ink/50 backdrop-blur-sm z-[60] flex flex-col items-center justify-center p-4 fade-in">
353
- <div class="bg-paper border border-signal p-8 max-w-sm w-full shadow-lg">
354
- <h2 class="text-xl font-display text-signal mb-2">Active Session Found</h2>
355
- <p class="text-clay text-sm mb-6">You have a previous session that is still open. Would you like to pick up where you left off, or end it and start a new one?</p>
356
-
357
- <div class="flex flex-col gap-3">
358
- <button id="continueSessionBtn" class="w-full bg-signal text-paper hover:bg-signal/80 transition py-2 font-utility uppercase tracking-widest text-sm">
359
- Continue Session
360
- </button>
361
- <button id="endAndStartNewBtn" class="w-full bg-transparent border border-ink text-ink hover:bg-ink hover:text-paper transition py-2 font-utility uppercase tracking-widest text-sm">
362
- End & Start New
363
- </button>
364
- </div>
365
- </div>
366
- </div>
367
-
368
- <!-- Alert Modal -->
369
- <div id="alertModal" style="display: none;" class="fixed inset-0 bg-ink/50 backdrop-blur-sm z-[70] flex flex-col items-center justify-center p-4 fade-in">
370
- <div class="bg-paper border border-ink p-8 max-w-sm w-full shadow-lg">
371
- <h2 class="text-xl font-display text-ink mb-2" id="alertModalTitle">Notice</h2>
372
- <p class="text-clay text-sm mb-6" id="alertModalText"></p>
373
- <button id="alertModalOkBtn" class="w-full bg-ink text-paper hover:bg-moss transition py-2 font-utility uppercase tracking-widest text-sm">
374
- OK
375
- </button>
376
- </div>
377
- </div>
378
-
379
- <!-- Delete Account Confirmation Modal -->
380
- <div id="deleteAccountConfirmModal" style="display: none;" class="fixed inset-0 bg-ink/50 backdrop-blur-sm z-50 flex flex-col items-center justify-center p-4">
381
- <div class="panel p-8 max-w-sm w-full shadow-lg">
382
- <h2 class="text-xl font-display text-signal mb-2">Delete Account?</h2>
383
- <p class="text-clay text-sm mb-6">Are you sure you want to completely delete your account? This action is irreversible and all data will be erased.</p>
384
-
385
- <div class="flex gap-4">
386
- <button id="deleteAccountCancelBtn" class="flex-1 bg-transparent border border-ink text-ink hover:bg-ink hover:text-paper transition py-2 font-utility uppercase tracking-widest text-sm">
387
- CANCEL
388
- </button>
389
- <button id="deleteAccountConfirmBtn" class="flex-1 bg-signal text-paper hover:bg-signal/80 transition py-2 font-utility uppercase tracking-widest text-sm">
390
- DELETE
391
- </button>
392
- </div>
393
- </div>
394
- </div>
395
-
396
- <script type="module" src="/static/js/app.js"></script>
397
- </body>
398
- </html>