sidhusmart commited on
Commit
624a51f
·
verified ·
1 Parent(s): 2998cea

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +253 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Nhs Buddy
3
- emoji: 🏢
4
  colorFrom: gray
5
- colorTo: red
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: nhs-buddy
3
+ emoji: 🐳
4
  colorFrom: gray
5
+ colorTo: green
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,253 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>NHS Doctor's App</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
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
11
+
12
+ body {
13
+ font-family: 'Inter', sans-serif;
14
+ }
15
+
16
+ .nhs-blue {
17
+ background-color: #005EB8;
18
+ }
19
+
20
+ .nhs-button {
21
+ transition: all 0.3s ease;
22
+ }
23
+
24
+ .nhs-button:hover {
25
+ transform: translateY(-2px);
26
+ box-shadow: 0 4px 12px rgba(0, 94, 184, 0.2);
27
+ }
28
+
29
+ .vital-card {
30
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
31
+ transition: all 0.3s ease;
32
+ }
33
+
34
+ .vital-card:hover {
35
+ transform: translateY(-2px);
36
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
37
+ }
38
+
39
+ .pulse-animation {
40
+ animation: pulse 2s infinite;
41
+ }
42
+
43
+ @keyframes pulse {
44
+ 0% {
45
+ box-shadow: 0 0 0 0 rgba(0, 94, 184, 0.4);
46
+ }
47
+ 70% {
48
+ box-shadow: 0 0 0 10px rgba(0, 94, 184, 0);
49
+ }
50
+ 100% {
51
+ box-shadow: 0 0 0 0 rgba(0, 94, 184, 0);
52
+ }
53
+ }
54
+ </style>
55
+ </head>
56
+ <body class="bg-gray-100">
57
+ <div class="flex flex-col md:flex-row h-screen max-w-6xl mx-auto border-8 border-gray-800 rounded-3xl overflow-hidden shadow-2xl">
58
+ <!-- Left Pane - Action Buttons -->
59
+ <div class="w-full md:w-1/3 bg-white p-6 flex flex-col space-y-8">
60
+ <div class="text-center mb-8">
61
+ <h1 class="text-2xl font-bold text-gray-800">NHS Doctor's Portal</h1>
62
+ <p class="text-gray-600">Patient Consultation</p>
63
+ </div>
64
+
65
+ <!-- MIC Button -->
66
+ <button id="micButton" class="nhs-button nhs-blue text-white py-12 rounded-2xl flex flex-col items-center justify-center pulse-animation">
67
+ <i class="fas fa-microphone text-4xl mb-4"></i>
68
+ <span class="text-xl font-semibold">VOICE NOTES</span>
69
+ <span class="text-sm mt-2 opacity-80">Tap to record</span>
70
+ </button>
71
+
72
+ <!-- Photo Button -->
73
+ <button id="photoButton" class="nhs-button bg-white border-2 border-blue-500 text-blue-500 py-12 rounded-2xl flex flex-col items-center justify-center hover:bg-blue-50">
74
+ <i class="fas fa-camera text-4xl mb-4"></i>
75
+ <span class="text-xl font-semibold">PHOTO</span>
76
+ <span class="text-sm mt-2 opacity-80">Capture or upload</span>
77
+ </button>
78
+
79
+ <!-- Bottom Navigation -->
80
+ <div class="mt-auto flex justify-between text-gray-500">
81
+ <button class="p-2 rounded-full hover:bg-gray-100">
82
+ <i class="fas fa-home"></i>
83
+ </button>
84
+ <button class="p-2 rounded-full hover:bg-gray-100">
85
+ <i class="fas fa-calendar-alt"></i>
86
+ </button>
87
+ <button class="p-2 rounded-full hover:bg-gray-100">
88
+ <i class="fas fa-user-md"></i>
89
+ </button>
90
+ <button class="p-2 rounded-full hover:bg-gray-100">
91
+ <i class="fas fa-cog"></i>
92
+ </button>
93
+ </div>
94
+ </div>
95
+
96
+ <!-- Right Pane - Patient Information -->
97
+ <div class="w-full md:w-2/3 bg-gray-50 p-6 overflow-y-auto">
98
+ <div class="flex justify-between items-center mb-6">
99
+ <div>
100
+ <h2 class="text-2xl font-bold text-gray-800">Patient Overview</h2>
101
+ <p class="text-gray-600">Current consultation</p>
102
+ </div>
103
+ <div class="flex space-x-2">
104
+ <button class="p-2 bg-white rounded-lg shadow-sm hover:bg-gray-100">
105
+ <i class="fas fa-search text-gray-600"></i>
106
+ </button>
107
+ <button class="p-2 bg-white rounded-lg shadow-sm hover:bg-gray-100">
108
+ <i class="fas fa-ellipsis-v text-gray-600"></i>
109
+ </button>
110
+ </div>
111
+ </div>
112
+
113
+ <!-- Patient Card -->
114
+ <div class="bg-white rounded-xl shadow-sm p-6 mb-6">
115
+ <div class="flex items-center space-x-4 mb-4">
116
+ <div class="w-16 h-16 rounded-full bg-blue-100 flex items-center justify-center">
117
+ <i class="fas fa-user text-2xl text-blue-500"></i>
118
+ </div>
119
+ <div>
120
+ <h3 class="text-xl font-bold text-gray-800">Emily Johnson</h3>
121
+ <div class="flex space-x-2 text-sm">
122
+ <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Female</span>
123
+ <span class="bg-green-100 text-green-800 px-2 py-1 rounded">32 years</span>
124
+ <span class="bg-purple-100 text-purple-800 px-2 py-1 rounded">NHS No: 485 920 3847</span>
125
+ </div>
126
+ </div>
127
+ </div>
128
+
129
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mt-4">
130
+ <div class="vital-card bg-white p-3 rounded-lg border border-gray-100">
131
+ <p class="text-xs text-gray-500">Blood Pressure</p>
132
+ <p class="text-xl font-bold">120/80 <span class="text-sm font-normal text-green-500">mmHg</span></p>
133
+ </div>
134
+ <div class="vital-card bg-white p-3 rounded-lg border border-gray-100">
135
+ <p class="text-xs text-gray-500">Heart Rate</p>
136
+ <p class="text-xl font-bold">72 <span class="text-sm font-normal text-green-500">bpm</span></p>
137
+ </div>
138
+ <div class="vital-card bg-white p-3 rounded-lg border border-gray-100">
139
+ <p class="text-xs text-gray-500">Temperature</p>
140
+ <p class="text-xl font-bold">36.8 <span class="text-sm font-normal text-green-500">°C</span></p>
141
+ </div>
142
+ <div class="vital-card bg-white p-3 rounded-lg border border-gray-100">
143
+ <p class="text-xs text-gray-500">Oxygen</p>
144
+ <p class="text-xl font-bold">98 <span class="text-sm font-normal text-green-500">%</span></p>
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+ <!-- Medical History -->
150
+ <div class="bg-white rounded-xl shadow-sm p-6 mb-6">
151
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Medical History</h3>
152
+ <div class="space-y-3">
153
+ <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg">
154
+ <div>
155
+ <p class="font-medium">Type 2 Diabetes</p>
156
+ <p class="text-sm text-gray-500">Diagnosed 2018</p>
157
+ </div>
158
+ <i class="fas fa-chevron-right text-gray-400"></i>
159
+ </div>
160
+ <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg">
161
+ <div>
162
+ <p class="font-medium">Hypertension</p>
163
+ <p class="text-sm text-gray-500">Diagnosed 2019</p>
164
+ </div>
165
+ <i class="fas fa-chevron-right text-gray-400"></i>
166
+ </div>
167
+ <div class="flex justify-between items-center p-3 hover:bg-gray-50 rounded-lg">
168
+ <div>
169
+ <p class="font-medium">Allergy: Penicillin</p>
170
+ <p class="text-sm text-gray-500">Severe reaction</p>
171
+ </div>
172
+ <i class="fas fa-chevron-right text-gray-400"></i>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ <!-- Recent Consultations -->
178
+ <div class="bg-white rounded-xl shadow-sm p-6">
179
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Recent Consultations</h3>
180
+ <div class="space-y-4">
181
+ <div class="border-l-4 border-blue-500 pl-4 py-1">
182
+ <p class="font-medium">Follow-up: Diabetes Management</p>
183
+ <p class="text-sm text-gray-500">Dr. Smith • 15 May 2023</p>
184
+ </div>
185
+ <div class="border-l-4 border-green-500 pl-4 py-1">
186
+ <p class="font-medium">Annual Checkup</p>
187
+ <p class="text-sm text-gray-500">Dr. Patel • 12 Feb 2023</p>
188
+ </div>
189
+ <div class="border-l-4 border-purple-500 pl-4 py-1">
190
+ <p class="font-medium">Blood Pressure Review</p>
191
+ <p class="text-sm text-gray-500">Dr. Jones • 5 Nov 2022</p>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </div>
197
+
198
+ <script>
199
+ // MIC Button functionality
200
+ const micButton = document.getElementById('micButton');
201
+ let isRecording = false;
202
+
203
+ micButton.addEventListener('click', function() {
204
+ isRecording = !isRecording;
205
+
206
+ if (isRecording) {
207
+ micButton.innerHTML = `
208
+ <i class="fas fa-microphone-slash text-4xl mb-4"></i>
209
+ <span class="text-xl font-semibold">RECORDING</span>
210
+ <span class="text-sm mt-2 opacity-80">Tap to stop</span>
211
+ <div class="mt-2 flex space-x-1">
212
+ <div class="w-2 h-2 bg-white rounded-full animate-pulse"></div>
213
+ <div class="w-2 h-2 bg-white rounded-full animate-pulse" style="animation-delay: 0.2s"></div>
214
+ <div class="w-2 h-2 bg-white rounded-full animate-pulse" style="animation-delay: 0.4s"></div>
215
+ </div>
216
+ `;
217
+ micButton.classList.add('bg-red-500');
218
+ micButton.classList.remove('nhs-blue');
219
+ micButton.classList.remove('pulse-animation');
220
+
221
+ // Simulate recording
222
+ console.log("Recording started...");
223
+ } else {
224
+ micButton.innerHTML = `
225
+ <i class="fas fa-microphone text-4xl mb-4"></i>
226
+ <span class="text-xl font-semibold">VOICE NOTES</span>
227
+ <span class="text-sm mt-2 opacity-80">Tap to record</span>
228
+ `;
229
+ micButton.classList.remove('bg-red-500');
230
+ micButton.classList.add('nhs-blue');
231
+ micButton.classList.add('pulse-animation');
232
+
233
+ // Simulate recording stopped
234
+ console.log("Recording stopped. Saving...");
235
+
236
+ // Show success message
237
+ setTimeout(() => {
238
+ alert("Voice note saved successfully to patient record.");
239
+ }, 500);
240
+ }
241
+ });
242
+
243
+ // Photo Button functionality
244
+ const photoButton = document.getElementById('photoButton');
245
+
246
+ photoButton.addEventListener('click', function() {
247
+ console.log("Opening photo interface...");
248
+ // In a real app, this would open the camera or file picker
249
+ alert("Please choose to take a new photo or select from library");
250
+ });
251
+ </script>
252
+ <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=sidhusmart/nhs-buddy" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
253
+ </html>