Add 2 files
Browse files- README.md +7 -5
- index.html +551 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: theragpt
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: gray
|
5 |
+
colorTo: pink
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,551 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>TheraGPT - AI Assistant for Therapists</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
/* Custom styles that can't be done with Tailwind */
|
11 |
+
.gradient-bg {
|
12 |
+
background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
|
13 |
+
}
|
14 |
+
.note-preview {
|
15 |
+
min-height: 300px;
|
16 |
+
border-left: 3px solid #4f46e5;
|
17 |
+
}
|
18 |
+
.sidebar-item.active {
|
19 |
+
border-left: 4px solid #4f46e5;
|
20 |
+
background-color: #f5f3ff;
|
21 |
+
}
|
22 |
+
.fade-in {
|
23 |
+
animation: fadeIn 0.3s ease-in-out;
|
24 |
+
}
|
25 |
+
@keyframes fadeIn {
|
26 |
+
from { opacity: 0; transform: translateY(10px); }
|
27 |
+
to { opacity: 1; transform: translateY(0); }
|
28 |
+
}
|
29 |
+
.textarea-autosize {
|
30 |
+
min-height: 100px;
|
31 |
+
resize: none;
|
32 |
+
}
|
33 |
+
</style>
|
34 |
+
</head>
|
35 |
+
<body class="bg-gray-50 font-sans">
|
36 |
+
<!-- Auth Modal -->
|
37 |
+
<div id="authModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
|
38 |
+
<div class="bg-white rounded-lg shadow-xl w-full max-w-md p-6 fade-in">
|
39 |
+
<div class="flex justify-between items-center mb-4">
|
40 |
+
<h3 class="text-2xl font-bold text-gray-800">Welcome to TheraGPT</h3>
|
41 |
+
<button id="closeAuthModal" class="text-gray-500 hover:text-gray-700">
|
42 |
+
<i class="fas fa-times"></i>
|
43 |
+
</button>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
<div class="flex border-b mb-4">
|
47 |
+
<button id="loginTab" class="py-2 px-4 font-medium text-indigo-600 border-b-2 border-indigo-600">Login</button>
|
48 |
+
<button id="signupTab" class="py-2 px-4 font-medium text-gray-500 hover:text-gray-700">Sign Up</button>
|
49 |
+
</div>
|
50 |
+
|
51 |
+
<!-- Login Form -->
|
52 |
+
<div id="loginForm" class="space-y-4">
|
53 |
+
<div>
|
54 |
+
<label for="loginEmail" class="block text-sm font-medium text-gray-700">Email</label>
|
55 |
+
<input type="email" id="loginEmail" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 p-2 border">
|
56 |
+
</div>
|
57 |
+
<div>
|
58 |
+
<label for="loginPassword" class="block text-sm font-medium text-gray-700">Password</label>
|
59 |
+
<input type="password" id="loginPassword" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 p-2 border">
|
60 |
+
</div>
|
61 |
+
<button id="loginBtn" class="w-full bg-indigo-600 text-white py-2 px-4 rounded-md hover:bg-indigo-700 transition duration-200">
|
62 |
+
Login
|
63 |
+
</button>
|
64 |
+
<div class="text-center text-sm text-gray-500">
|
65 |
+
<button class="text-indigo-600 hover:text-indigo-800">Forgot password?</button>
|
66 |
+
</div>
|
67 |
+
</div>
|
68 |
+
|
69 |
+
<!-- Signup Form -->
|
70 |
+
<div id="signupForm" class="space-y-4 hidden">
|
71 |
+
<div>
|
72 |
+
<label for="signupName" class="block text-sm font-medium text-gray-700">Full Name</label>
|
73 |
+
<input type="text" id="signupName" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 p-2 border">
|
74 |
+
</div>
|
75 |
+
<div>
|
76 |
+
<label for="signupEmail" class="block text-sm font-medium text-gray-700">Email</label>
|
77 |
+
<input type="email" id="signupEmail" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 p-2 border">
|
78 |
+
</div>
|
79 |
+
<div>
|
80 |
+
<label for="signupPassword" class="block text-sm font-medium text-gray-700">Password</label>
|
81 |
+
<input type="password" id="signupPassword" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 p-2 border">
|
82 |
+
</div>
|
83 |
+
<div>
|
84 |
+
<label for="signupConfirmPassword" class="block text-sm font-medium text-gray-700">Confirm Password</label>
|
85 |
+
<input type="password" id="signupConfirmPassword" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 p-2 border">
|
86 |
+
</div>
|
87 |
+
<div class="flex items-center">
|
88 |
+
<input type="checkbox" id="termsCheckbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
89 |
+
<label for="termsCheckbox" class="ml-2 block text-sm text-gray-700">
|
90 |
+
I agree to the <a href="#" class="text-indigo-600 hover:text-indigo-800">Terms of Service</a>
|
91 |
+
</label>
|
92 |
+
</div>
|
93 |
+
<button id="signupBtn" class="w-full bg-indigo-600 text-white py-2 px-4 rounded-md hover:bg-indigo-700 transition duration-200">
|
94 |
+
Create Account
|
95 |
+
</button>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
|
100 |
+
<!-- Main Layout -->
|
101 |
+
<div class="flex h-screen">
|
102 |
+
<!-- Sidebar -->
|
103 |
+
<div class="hidden md:flex flex-col w-64 bg-white border-r border-gray-200">
|
104 |
+
<div class="flex items-center justify-center h-16 px-4 gradient-bg">
|
105 |
+
<h1 class="text-white font-bold text-xl">TheraGPT</h1>
|
106 |
+
</div>
|
107 |
+
<div class="flex flex-col flex-grow p-4 overflow-auto">
|
108 |
+
<div class="space-y-1">
|
109 |
+
<button class="sidebar-item active w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100 transition duration-200">
|
110 |
+
<i class="fas fa-home mr-3 text-indigo-600"></i>
|
111 |
+
<span>Dashboard</span>
|
112 |
+
</button>
|
113 |
+
<button class="sidebar-item w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100 transition duration-200">
|
114 |
+
<i class="fas fa-file-alt mr-3 text-gray-500"></i>
|
115 |
+
<span>DAP Notes</span>
|
116 |
+
</button>
|
117 |
+
<button class="sidebar-item w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100 transition duration-200">
|
118 |
+
<i class="fas fa-clipboard-check mr-3 text-gray-500"></i>
|
119 |
+
<span>Treatment Plans</span>
|
120 |
+
</button>
|
121 |
+
<button class="sidebar-item w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100 transition duration-200">
|
122 |
+
<i class="fas fa-balance-scale mr-3 text-gray-500"></i>
|
123 |
+
<span>Ethics Assistant</span>
|
124 |
+
</button>
|
125 |
+
<button class="sidebar-item w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100 transition duration-200">
|
126 |
+
<i class="fas fa-cog mr-3 text-gray-500"></i>
|
127 |
+
<span>Settings</span>
|
128 |
+
</button>
|
129 |
+
</div>
|
130 |
+
|
131 |
+
<div class="mt-auto p-4">
|
132 |
+
<div class="bg-indigo-50 rounded-lg p-4">
|
133 |
+
<h4 class="text-sm font-medium text-indigo-800">Need help?</h4>
|
134 |
+
<p class="text-xs text-indigo-600 mt-1">Our support team is available 24/7</p>
|
135 |
+
<button class="mt-2 text-xs font-medium text-indigo-600 hover:text-indigo-800">Contact Support</button>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
</div>
|
140 |
+
|
141 |
+
<!-- Mobile Sidebar Button -->
|
142 |
+
<div class="md:hidden fixed bottom-4 right-4 z-40">
|
143 |
+
<button id="mobileMenuBtn" class="p-3 rounded-full bg-indigo-600 text-white shadow-lg hover:bg-indigo-700 transition duration-200">
|
144 |
+
<i class="fas fa-bars"></i>
|
145 |
+
</button>
|
146 |
+
</div>
|
147 |
+
|
148 |
+
<!-- Mobile Sidebar -->
|
149 |
+
<div id="mobileSidebar" class="fixed inset-0 bg-black bg-opacity-50 z-30 hidden md:hidden">
|
150 |
+
<div class="absolute left-0 top-0 h-full w-64 bg-white transform -translate-x-full transition-transform duration-300">
|
151 |
+
<div class="flex items-center justify-between h-16 px-4 gradient-bg">
|
152 |
+
<h1 class="text-white font-bold text-xl">TheraGPT</h1>
|
153 |
+
<button id="closeMobileSidebar" class="text-white">
|
154 |
+
<i class="fas fa-times"></i>
|
155 |
+
</button>
|
156 |
+
</div>
|
157 |
+
<div class="p-4 space-y-2">
|
158 |
+
<button class="w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100">
|
159 |
+
<i class="fas fa-home mr-3 text-indigo-600"></i>
|
160 |
+
<span>Dashboard</span>
|
161 |
+
</button>
|
162 |
+
<button class="w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100">
|
163 |
+
<i class="fas fa-file-alt mr-3 text-gray-500"></i>
|
164 |
+
<span>DAP Notes</span>
|
165 |
+
</button>
|
166 |
+
<button class="w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100">
|
167 |
+
<i class="fas fa-clipboard-check mr-3 text-gray-500"></i>
|
168 |
+
<span>Treatment Plans</span>
|
169 |
+
</button>
|
170 |
+
<button class="w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100">
|
171 |
+
<i class="fas fa-balance-scale mr-3 text-gray-500"></i>
|
172 |
+
<span>Ethics Assistant</span>
|
173 |
+
</button>
|
174 |
+
<button class="w-full flex items-center p-3 text-gray-700 rounded-lg hover:bg-gray-100">
|
175 |
+
<i class="fas fa-cog mr-3 text-gray-500"></i>
|
176 |
+
<span>Settings</span>
|
177 |
+
</button>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
|
182 |
+
<!-- Main Content -->
|
183 |
+
<div class="flex-1 flex flex-col overflow-hidden">
|
184 |
+
<!-- Top Navigation -->
|
185 |
+
<header class="bg-white border-b border-gray-200 flex items-center justify-between h-16 px-4">
|
186 |
+
<div class="flex items-center">
|
187 |
+
<button id="sidebarToggle" class="md:hidden text-gray-500 hover:text-gray-700 mr-2">
|
188 |
+
<i class="fas fa-bars"></i>
|
189 |
+
</button>
|
190 |
+
<h2 class="text-lg font-medium text-gray-800">Dashboard</h2>
|
191 |
+
</div>
|
192 |
+
<div class="flex items-center space-x-4">
|
193 |
+
<button class="text-gray-500 hover:text-gray-700">
|
194 |
+
<i class="fas fa-bell"></i>
|
195 |
+
</button>
|
196 |
+
<div class="relative">
|
197 |
+
<button id="userMenuBtn" class="flex items-center space-x-2 focus:outline-none">
|
198 |
+
<div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center text-indigo-600">
|
199 |
+
<i class="fas fa-user"></i>
|
200 |
+
</div>
|
201 |
+
<span class="hidden md:inline text-sm font-medium text-gray-700">Dr. Smith</span>
|
202 |
+
</button>
|
203 |
+
<div id="userMenu" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10">
|
204 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a>
|
205 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
|
206 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Logout</a>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
</header>
|
211 |
+
|
212 |
+
<!-- Main Content Area -->
|
213 |
+
<main class="flex-1 overflow-y-auto p-4 bg-gray-50">
|
214 |
+
<!-- Welcome Banner -->
|
215 |
+
<div class="gradient-bg text-white rounded-lg p-6 mb-6">
|
216 |
+
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
|
217 |
+
<div>
|
218 |
+
<h2 class="text-2xl font-bold mb-2">Welcome back, Dr. Smith</h2>
|
219 |
+
<p class="opacity-90">Ready to streamline your clinical documentation today?</p>
|
220 |
+
</div>
|
221 |
+
<button class="mt-4 md:mt-0 bg-white text-indigo-600 px-4 py-2 rounded-md font-medium hover:bg-gray-100 transition duration-200">
|
222 |
+
Quick Note
|
223 |
+
</button>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
|
227 |
+
<!-- Quick Actions -->
|
228 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
229 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition duration-200">
|
230 |
+
<div class="flex items-center">
|
231 |
+
<div class="p-3 rounded-full bg-indigo-100 text-indigo-600 mr-4">
|
232 |
+
<i class="fas fa-file-alt"></i>
|
233 |
+
</div>
|
234 |
+
<div>
|
235 |
+
<h3 class="font-medium text-gray-800">DAP Note Builder</h3>
|
236 |
+
<p class="text-sm text-gray-500">Create structured clinical notes</p>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
<button class="mt-4 w-full text-sm text-indigo-600 font-medium py-2 border border-indigo-100 rounded-md hover:bg-indigo-50 transition duration-200">
|
240 |
+
Start Now
|
241 |
+
</button>
|
242 |
+
</div>
|
243 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition duration-200">
|
244 |
+
<div class="flex items-center">
|
245 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
|
246 |
+
<i class="fas fa-clipboard-check"></i>
|
247 |
+
</div>
|
248 |
+
<div>
|
249 |
+
<h3 class="font-medium text-gray-800">Treatment Plan</h3>
|
250 |
+
<p class="text-sm text-gray-500">Generate SMART goals</p>
|
251 |
+
</div>
|
252 |
+
</div>
|
253 |
+
<button class="mt-4 w-full text-sm text-green-600 font-medium py-2 border border-green-100 rounded-md hover:bg-green-50 transition duration-200">
|
254 |
+
Create Plan
|
255 |
+
</button>
|
256 |
+
</div>
|
257 |
+
<div class="bg-white p-4 rounded-lg shadow-sm border border-gray-100 hover:shadow-md transition duration-200">
|
258 |
+
<div class="flex items-center">
|
259 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
|
260 |
+
<i class="fas fa-balance-scale"></i>
|
261 |
+
</div>
|
262 |
+
<div>
|
263 |
+
<h3 class="font-medium text-gray-800">Ethics Assistant</h3>
|
264 |
+
<p class="text-sm text-gray-500">Navigate ethical dilemmas</p>
|
265 |
+
</div>
|
266 |
+
</div>
|
267 |
+
<button class="mt-4 w-full text-sm text-purple-600 font-medium py-2 border border-purple-100 rounded-md hover:bg-purple-50 transition duration-200">
|
268 |
+
Get Guidance
|
269 |
+
</button>
|
270 |
+
</div>
|
271 |
+
</div>
|
272 |
+
|
273 |
+
<!-- Recent Notes -->
|
274 |
+
<div class="bg-white rounded-lg shadow-sm border border-gray-100 p-4 mb-6">
|
275 |
+
<div class="flex items-center justify-between mb-4">
|
276 |
+
<h3 class="font-medium text-gray-800">Recent Notes</h3>
|
277 |
+
<button class="text-sm text-indigo-600 font-medium hover:text-indigo-800 transition duration-200">
|
278 |
+
View All
|
279 |
+
</button>
|
280 |
+
</div>
|
281 |
+
<div class="overflow-x-auto">
|
282 |
+
<table class="min-w-full divide-y divide-gray-200">
|
283 |
+
<thead class="bg-gray-50">
|
284 |
+
<tr>
|
285 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Client</th>
|
286 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
|
287 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
|
288 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
|
289 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
290 |
+
</tr>
|
291 |
+
</thead>
|
292 |
+
<tbody class="bg-white divide-y divide-gray-200">
|
293 |
+
<tr>
|
294 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-800">Jane D.</td>
|
295 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">May 15, 2023</td>
|
296 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">Individual</td>
|
297 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
298 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
299 |
+
</td>
|
300 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">
|
301 |
+
<button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button>
|
302 |
+
<button class="text-gray-600 hover:text-gray-900">Export</button>
|
303 |
+
</td>
|
304 |
+
</tr>
|
305 |
+
<tr>
|
306 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-800">Mark T.</td>
|
307 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">May 14, 2023</td>
|
308 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">Couples</td>
|
309 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
310 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Draft</span>
|
311 |
+
</td>
|
312 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">
|
313 |
+
<button class="text-indigo-600 hover:text-indigo-900 mr-3">Edit</button>
|
314 |
+
<button class="text-gray-600 hover:text-gray-900">Delete</button>
|
315 |
+
</td>
|
316 |
+
</tr>
|
317 |
+
<tr>
|
318 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-800">Sarah K.</td>
|
319 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">May 12, 2023</td>
|
320 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">Group</td>
|
321 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
322 |
+
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
|
323 |
+
</td>
|
324 |
+
<td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500">
|
325 |
+
<button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button>
|
326 |
+
<button class="text-gray-600 hover:text-gray-900">Export</button>
|
327 |
+
</td>
|
328 |
+
</tr>
|
329 |
+
</tbody>
|
330 |
+
</table>
|
331 |
+
</div>
|
332 |
+
</div>
|
333 |
+
|
334 |
+
<!-- DAP Note Builder (Example Component) -->
|
335 |
+
<div id="dapNoteBuilder" class="bg-white rounded-lg shadow-sm border border-gray-100 p-6 mb-6 hidden">
|
336 |
+
<div class="flex justify-between items-center mb-6">
|
337 |
+
<h3 class="text-xl font-bold text-gray-800">DAP Note Builder</h3>
|
338 |
+
<div class="flex space-x-2">
|
339 |
+
<button class="px-3 py-1 text-sm bg-gray-100 text-gray-600 rounded hover:bg-gray-200 transition duration-200">
|
340 |
+
<i class="fas fa-save mr-1"></i> Save Draft
|
341 |
+
</button>
|
342 |
+
<button class="px-3 py-1 text-sm bg-indigo-600 text-white rounded hover:bg-indigo-700 transition duration-200">
|
343 |
+
<i class="fas fa-file-export mr-1"></i> Export
|
344 |
+
</button>
|
345 |
+
</div>
|
346 |
+
</div>
|
347 |
+
|
348 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
349 |
+
<div class="space-y-6">
|
350 |
+
<!-- Subjective -->
|
351 |
+
<div>
|
352 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Subjective</label>
|
353 |
+
<textarea class="textarea-autosize w-full p-3 border border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500" placeholder="Client's reported experiences, feelings, perceptions..."></textarea>
|
354 |
+
</div>
|
355 |
+
|
356 |
+
<!-- Objective -->
|
357 |
+
<div>
|
358 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Objective</label>
|
359 |
+
<textarea class="textarea-autosize w-full p-3 border border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500" placeholder="Observable behaviors, test results, measurable data..."></textarea>
|
360 |
+
</div>
|
361 |
+
|
362 |
+
<!-- Assessment -->
|
363 |
+
<div>
|
364 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Assessment</label>
|
365 |
+
<textarea class="textarea-autosize w-full p-3 border border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500" placeholder="Clinical interpretation, diagnosis, progress..."></textarea>
|
366 |
+
</div>
|
367 |
+
|
368 |
+
<!-- Plan -->
|
369 |
+
<div>
|
370 |
+
<label class="block text-sm font-medium text-gray-700 mb-2">Plan</label>
|
371 |
+
<textarea class="textarea-autosize w-full p-3 border border-gray-300 rounded-md focus:ring-indigo-500 focus:border-indigo-500" placeholder="Next steps, interventions, follow-up..."></textarea>
|
372 |
+
</div>
|
373 |
+
|
374 |
+
<div class="flex justify-between">
|
375 |
+
<button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition duration-200">
|
376 |
+
<i class="fas fa-redo mr-2"></i> Clear All
|
377 |
+
</button>
|
378 |
+
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 transition duration-200">
|
379 |
+
<i class="fas fa-magic mr-2"></i> AI Assist
|
380 |
+
</button>
|
381 |
+
</div>
|
382 |
+
</div>
|
383 |
+
|
384 |
+
<!-- Preview -->
|
385 |
+
<div class="note-preview p-4 bg-gray-50 rounded-lg">
|
386 |
+
<h4 class="font-medium text-gray-700 mb-3">Note Preview</h4>
|
387 |
+
<div class="prose max-w-none">
|
388 |
+
<h5 class="text-sm font-semibold text-gray-600 uppercase tracking-wider">Subjective</h5>
|
389 |
+
<p class="text-gray-700 mb-4">Client reports feeling anxious about upcoming work presentation. Describes physical symptoms including rapid heartbeat and difficulty sleeping.</p>
|
390 |
+
|
391 |
+
<h5 class="text-sm font-semibold text-gray-600 uppercase tracking-wider">Objective</h5>
|
392 |
+
<p class="text-gray-700 mb-4">Client appeared fidgety during session, with visible hand tremors. Speech was rapid but coherent. PHQ-9 score: 12 (moderate depression).</p>
|
393 |
+
|
394 |
+
<h5 class="text-sm font-semibold text-gray-600 uppercase tracking-wider">Assessment</h5>
|
395 |
+
<p class="text-gray-700 mb-4">Symptoms consistent with adjustment disorder with anxiety. Client demonstrates insight into triggers but struggles with coping strategies.</p>
|
396 |
+
|
397 |
+
<h5 class="text-sm font-semibold text-gray-600 uppercase tracking-wider">Plan</h5>
|
398 |
+
<p class="text-gray-700">Continue CBT techniques focusing on cognitive restructuring. Assign thought record for next session. Consider relaxation exercises for physical symptoms.</p>
|
399 |
+
</div>
|
400 |
+
</div>
|
401 |
+
</div>
|
402 |
+
</div>
|
403 |
+
</main>
|
404 |
+
</div>
|
405 |
+
</div>
|
406 |
+
|
407 |
+
<script>
|
408 |
+
// DOM Elements
|
409 |
+
const authModal = document.getElementById('authModal');
|
410 |
+
const closeAuthModal = document.getElementById('closeAuthModal');
|
411 |
+
const loginTab = document.getElementById('loginTab');
|
412 |
+
const signupTab = document.getElementById('signupTab');
|
413 |
+
const loginForm = document.getElementById('loginForm');
|
414 |
+
const signupForm = document.getElementById('signupForm');
|
415 |
+
const loginBtn = document.getElementById('loginBtn');
|
416 |
+
const signupBtn = document.getElementById('signupBtn');
|
417 |
+
const userMenuBtn = document.getElementById('userMenuBtn');
|
418 |
+
const userMenu = document.getElementById('userMenu');
|
419 |
+
const sidebarToggle = document.getElementById('sidebarToggle');
|
420 |
+
const mobileMenuBtn = document.getElementById('mobileMenuBtn');
|
421 |
+
const mobileSidebar = document.getElementById('mobileSidebar');
|
422 |
+
const closeMobileSidebar = document.getElementById('closeMobileSidebar');
|
423 |
+
const dapNoteBuilder = document.getElementById('dapNoteBuilder');
|
424 |
+
|
425 |
+
// Show auth modal on page load (simulating logged out state)
|
426 |
+
window.addEventListener('DOMContentLoaded', () => {
|
427 |
+
authModal.classList.remove('hidden');
|
428 |
+
});
|
429 |
+
|
430 |
+
// Close auth modal
|
431 |
+
closeAuthModal.addEventListener('click', () => {
|
432 |
+
authModal.classList.add('hidden');
|
433 |
+
});
|
434 |
+
|
435 |
+
// Switch between login and signup tabs
|
436 |
+
loginTab.addEventListener('click', () => {
|
437 |
+
loginTab.classList.add('border-indigo-600', 'text-indigo-600');
|
438 |
+
loginTab.classList.remove('text-gray-500');
|
439 |
+
signupTab.classList.remove('border-indigo-600', 'text-indigo-600');
|
440 |
+
signupTab.classList.add('text-gray-500');
|
441 |
+
loginForm.classList.remove('hidden');
|
442 |
+
signupForm.classList.add('hidden');
|
443 |
+
});
|
444 |
+
|
445 |
+
signupTab.addEventListener('click', () => {
|
446 |
+
signupTab.classList.add('border-indigo-600', 'text-indigo-600');
|
447 |
+
signupTab.classList.remove('text-gray-500');
|
448 |
+
loginTab.classList.remove('border-indigo-600', 'text-indigo-600');
|
449 |
+
loginTab.classList.add('text-gray-500');
|
450 |
+
signupForm.classList.remove('hidden');
|
451 |
+
loginForm.classList.add('hidden');
|
452 |
+
});
|
453 |
+
|
454 |
+
// Login button click
|
455 |
+
loginBtn.addEventListener('click', () => {
|
456 |
+
const email = document.getElementById('loginEmail').value;
|
457 |
+
const password = document.getElementById('loginPassword').value;
|
458 |
+
|
459 |
+
if (email && password) {
|
460 |
+
// Simulate successful login
|
461 |
+
authModal.classList.add('hidden');
|
462 |
+
// In a real app, you would handle authentication here
|
463 |
+
} else {
|
464 |
+
alert('Please enter both email and password');
|
465 |
+
}
|
466 |
+
});
|
467 |
+
|
468 |
+
// Signup button click
|
469 |
+
signupBtn.addEventListener('click', () => {
|
470 |
+
const name = document.getElementById('signupName').value;
|
471 |
+
const email = document.getElementById('signupEmail').value;
|
472 |
+
const password = document.getElementById('signupPassword').value;
|
473 |
+
const confirmPassword = document.getElementById('signupConfirmPassword').value;
|
474 |
+
const termsChecked = document.getElementById('termsCheckbox').checked;
|
475 |
+
|
476 |
+
if (!name || !email || !password || !confirmPassword) {
|
477 |
+
alert('Please fill in all fields');
|
478 |
+
return;
|
479 |
+
}
|
480 |
+
|
481 |
+
if (password !== confirmPassword) {
|
482 |
+
alert('Passwords do not match');
|
483 |
+
return;
|
484 |
+
}
|
485 |
+
|
486 |
+
if (!termsChecked) {
|
487 |
+
alert('You must agree to the terms of service');
|
488 |
+
return;
|
489 |
+
}
|
490 |
+
|
491 |
+
// Simulate successful signup
|
492 |
+
alert('Account created successfully! Please login.');
|
493 |
+
loginTab.click();
|
494 |
+
document.getElementById('loginEmail').value = email;
|
495 |
+
document.getElementById('loginPassword').value = password;
|
496 |
+
});
|
497 |
+
|
498 |
+
// User menu toggle
|
499 |
+
userMenuBtn.addEventListener('click', () => {
|
500 |
+
userMenu.classList.toggle('hidden');
|
501 |
+
});
|
502 |
+
|
503 |
+
// Close user menu when clicking outside
|
504 |
+
document.addEventListener('click', (e) => {
|
505 |
+
if (!userMenuBtn.contains(e.target) && !userMenu.contains(e.target)) {
|
506 |
+
userMenu.classList.add('hidden');
|
507 |
+
}
|
508 |
+
});
|
509 |
+
|
510 |
+
// Sidebar toggle for mobile
|
511 |
+
sidebarToggle.addEventListener('click', () => {
|
512 |
+
mobileSidebar.classList.remove('hidden');
|
513 |
+
document.querySelector('#mobileSidebar > div').classList.remove('-translate-x-full');
|
514 |
+
});
|
515 |
+
|
516 |
+
mobileMenuBtn.addEventListener('click', () => {
|
517 |
+
mobileSidebar.classList.remove('hidden');
|
518 |
+
document.querySelector('#mobileSidebar > div').classList.remove('-translate-x-full');
|
519 |
+
});
|
520 |
+
|
521 |
+
closeMobileSidebar.addEventListener('click', () => {
|
522 |
+
document.querySelector('#mobileSidebar > div').classList.add('-translate-x-full');
|
523 |
+
setTimeout(() => {
|
524 |
+
mobileSidebar.classList.add('hidden');
|
525 |
+
}, 300);
|
526 |
+
});
|
527 |
+
|
528 |
+
// Simulate clicking on DAP Note Builder from quick actions
|
529 |
+
document.querySelectorAll('.grid-cols-1 button').forEach(button => {
|
530 |
+
button.addEventListener('click', () => {
|
531 |
+
if (button.textContent.includes('Start Now')) {
|
532 |
+
// Hide dashboard content
|
533 |
+
document.querySelectorAll('main > div:not(#dapNoteBuilder)').forEach(el => {
|
534 |
+
el.classList.add('hidden');
|
535 |
+
});
|
536 |
+
// Show DAP Note Builder
|
537 |
+
dapNoteBuilder.classList.remove('hidden');
|
538 |
+
}
|
539 |
+
});
|
540 |
+
});
|
541 |
+
|
542 |
+
// Auto-resize textareas
|
543 |
+
document.querySelectorAll('.textarea-autosize').forEach(textarea => {
|
544 |
+
textarea.addEventListener('input', function() {
|
545 |
+
this.style.height = 'auto';
|
546 |
+
this.style.height = (this.scrollHeight) + 'px';
|
547 |
+
});
|
548 |
+
});
|
549 |
+
</script>
|
550 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=AI4U2/theragpt" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
551 |
+
</html>
|