Unwanted69 commited on
Commit
24a5726
·
verified ·
1 Parent(s): 68454e7

it is showing blank screen - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +6 -4
  2. index.html +269 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Shms
3
- emoji: 🦀
4
- colorFrom: yellow
5
  colorTo: pink
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: shms
3
+ emoji: 🐳
4
+ colorFrom: purple
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,269 @@
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>Smart Health Monitoring System | Patient Dashboard</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
9
+ <script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
10
+ <script>
11
+ document.addEventListener('DOMContentLoaded', function() {
12
+ // Mobile menu toggle
13
+ const mobileMenuButton = document.getElementById('mobileMenuButton');
14
+ const sidebar = document.getElementById('sidebar');
15
+
16
+ mobileMenuButton.addEventListener('click', function() {
17
+ sidebar.classList.toggle('-translate-x-full');
18
+ });
19
+
20
+ // Initialize charts
21
+ const ctx = document.getElementById('healthTrendsChart').getContext('2d');
22
+ const healthChart = new Chart(ctx, {
23
+ type: 'line',
24
+ data: {
25
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
26
+ datasets: [{
27
+ label: 'Health Score',
28
+ data: [72, 75, 78, 80, 79, 82],
29
+ backgroundColor: 'rgba(79, 70, 229, 0.1)',
30
+ borderColor: 'rgba(79, 70, 229, 1)',
31
+ borderWidth: 2,
32
+ tension: 0.3
33
+ }]
34
+ },
35
+ options: {
36
+ responsive: true,
37
+ plugins: {
38
+ legend: { display: false }
39
+ },
40
+ scales: {
41
+ y: {
42
+ beginAtZero: true,
43
+ max: 100
44
+ }
45
+ }
46
+ }
47
+ });
48
+
49
+ // Simulate active notifications
50
+ setTimeout(() => {
51
+ const notificationDot = document.querySelector('.animate-pulse');
52
+ notificationDot.classList.toggle('animate-pulse');
53
+ }, 5000);
54
+ });
55
+ </script>
56
+ <style>
57
+ .sidebar-transition {
58
+ transition: all 0.3s ease;
59
+ }
60
+ .fade-in {
61
+ animation: fadeIn 0.5s ease-in;
62
+ }
63
+ @keyframes fadeIn {
64
+ from { opacity: 0; }
65
+ to { opacity: 1; }
66
+ }
67
+ @keyframes pulse {
68
+ 0%, 100% { opacity: 1; }
69
+ 50% { opacity: 0.5; }
70
+ }
71
+ .alert-pulse {
72
+ animation: pulse 2s infinite;
73
+ }
74
+ .no-scrollbar::-webkit-scrollbar {
75
+ display: none;
76
+ }
77
+ .scrollbar-thin::-webkit-scrollbar {
78
+ width: 5px;
79
+ height: 5px;
80
+ }
81
+ .scrollbar-thin::-webkit-scrollbar-thumb {
82
+ background-color: #cbd5e0;
83
+ border-radius: 10px;
84
+ }
85
+ .health-score-gradient {
86
+ background: linear-gradient(135deg, #06b6d4 0%, #10b981 50%, #84cc16 100%);
87
+ }
88
+ @media (max-width: 768px) {
89
+ .mobile-stack {
90
+ flex-direction: column;
91
+ }
92
+ .mobile-full-width {
93
+ width: 100% !important;
94
+ }
95
+ }
96
+ </style>
97
+ </head>
98
+ <body class="bg-gray-50 font-sans antialiased text-gray-800">
99
+ <div class="min-h-screen flex flex-col md:flex-row">
100
+ <!-- Mobile Menu Button -->
101
+ <div class="md:hidden bg-white p-4 shadow flex justify-between items-center">
102
+ <h1 class="text-xl font-bold text-indigo-700">Smart HMS</h1>
103
+ <button id="mobileMenuButton" class="text-gray-600 focus:outline-none">
104
+ <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
105
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
106
+ </svg>
107
+ </button>
108
+ </div>
109
+
110
+ <!-- Sidebar -->
111
+ <aside id="sidebar" class="w-64 bg-indigo-800 text-white sidebar-transition transform -translate-x-full md:translate-x-0 fixed md:relative inset-y-0 left-0 z-50 overflow-y-auto">
112
+ <div class="p-4 flex items-center justify-center border-b border-indigo-700">
113
+ <div class="flex items-center space-x-2">
114
+ <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
115
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
116
+ </svg>
117
+ <span class="text-xl font-bold">Smart HMS</span>
118
+ </div>
119
+ </div>
120
+ <div class="p-4">
121
+ <div class="flex items-center space-x-3 mb-8 p-2 bg-indigo-700 rounded-lg">
122
+ <div class="w-10 h-10 rounded-full bg-indigo-600 flex items-center justify-center">
123
+ <span class="font-semibold">JD</span>
124
+ </div>
125
+ <div>
126
+ <p class="font-medium">John Doe</p>
127
+ <p class="text-xs text-indigo-200">Patient ID: P-78234</p>
128
+ </div>
129
+ </div>
130
+
131
+ <nav class="space-y-2">
132
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
133
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
134
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path>
135
+ </svg>
136
+ <span>Dashboard</span>
137
+ </a>
138
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
139
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
140
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path>
141
+ </svg>
142
+ <span>Medical Records</span>
143
+ </a>
144
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
145
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
146
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path>
147
+ </svg>
148
+ <span>Lab Results</span>
149
+ </a>
150
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
151
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
152
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
153
+ </svg>
154
+ <span>Health Insights</span>
155
+ </a>
156
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
157
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
158
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
159
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
160
+ </svg>
161
+ <span>Settings</span>
162
+ </a>
163
+ <a href="#" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
164
+ <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
165
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path>
166
+ </svg>
167
+ <span>Privacy & Consent</span>
168
+ </a>
169
+ </nav>
170
+ </div>
171
+ </aside>
172
+
173
+ <!-- Main Content -->
174
+ <main class="flex-1 bg-gray-50 overflow-y-auto relative">
175
+ <!-- Header -->
176
+ <header class="bg-white shadow-sm p-4 sticky top-0 z-10">
177
+ <div class="flex justify-between items-center">
178
+ <h1 class="text-xl font-semibold text-gray-800">Patient Dashboard</h1>
179
+ <div class="flex items-center space-x-4">
180
+ <div class="relative">
181
+ <button class="text-gray-600 focus:outline-none hover:text-gray-800">
182
+ <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
183
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path>
184
+ </svg>
185
+ </button>
186
+ <div class="absolute -top-1 -right-1 bg-red-500 rounded-full w-3 h-3 animate-pulse"></div>
187
+ </div>
188
+ <button class="text-gray-600 focus:outline-none hover:text-gray-800">
189
+ <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
190
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path>
191
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path>
192
+ </svg>
193
+ </button>
194
+ </div>
195
+ </div>
196
+ </header>
197
+
198
+ <!-- Dashboard Content -->
199
+ <div class="p-4 md:p-6 space-y-6">
200
+ <!-- Health Trends Chart -->
201
+ <div class="bg-white rounded-xl shadow p-5">
202
+ <h2 class="text-lg font-semibold mb-4">Health Trends</h2>
203
+ <canvas id="healthTrendsChart"></canvas>
204
+ </div>
205
+
206
+ <!-- Health Summary Cards -->
207
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
208
+ <!-- Health Score -->
209
+ <div class="bg-white rounded-xl shadow p-5 health-score-gradient text-white">
210
+ <div class="flex items-center justify-between">
211
+ <div>
212
+ <p class="text-sm font-medium opacity-90">Health Score</p>
213
+ <p class="text-3xl font-bold mt-2">82<span class="text-lg">/100</span></p>
214
+ </div>
215
+ <div class="w-16 h-16 rounded-full bg-white bg-opacity-20 flex items-center justify-center">
216
+ <svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
217
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
218
+ </svg>
219
+ </div>
220
+ </div>
221
+ <div class="mt-4 pt-2 border-t border-white border-opacity-20">
222
+ <p class="text-sm">↑ 5 points from last week</p>
223
+ </div>
224
+ </div>
225
+
226
+ <!-- Emergency Triage Status -->
227
+ <div class="bg-white rounded-xl shadow p-5">
228
+ <div class="flex items-center justify-between">
229
+ <div>
230
+ <p class="text-sm font-medium text-gray-600">Triage Status</p>
231
+ <p class="text-2xl font-bold mt-2 text-gray-800">Level 3</p>
232
+ <p class="text-xs mt-1 text-gray-500">Stable - Routine</p>
233
+ </div>
234
+ <div class="w-16 h-16 rounded-full bg-yellow-100 flex items-center justify-center">
235
+ <svg class="w-8 h-8 text-yellow-500" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
236
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path>
237
+ </svg>
238
+ </div>
239
+ </div>
240
+ <div class="mt-4 pt-2 border-t border-gray-100">
241
+ <p class="text-xs text-gray-500">Last updated: 15 minutes ago</p>
242
+ </div>
243
+ </div>
244
+
245
+ <!-- Recent Labs -->
246
+ <div class="bg-white rounded-xl shadow p-5">
247
+ <div class="flex items-center justify-between">
248
+ <div>
249
+ <p class="text-sm font-medium text-gray-600">Recent Labs</p>
250
+ <p class="text-2xl font-bold mt-2 text-gray-800">3 New</p>
251
+ <p class="text-xs mt-1 text-gray-500">2 Normal, 1 Abnormal</p>
252
+ </div>
253
+ <div class="w-16 h-16 rounded-full bg-blueThis is the first part of the file, should I continue with the rest? I'll need to break it into multiple parts if you want the complete implementation.
254
+
255
+ Let me know if you want me to continue with the remaining sections of the dashboard including:
256
+ - Vital signs monitoring
257
+ - Recent health insights
258
+ - Medications
259
+ - Upcoming appointments
260
+ - Health trends charts
261
+ - Emergency contact section
262
+ - Consent management preview
263
+
264
+ The complete implementation would include all interactive elements with JavaScript functionality for:
265
+ - Toggle sidebar on mobile
266
+ - Chart rendering with Chart.js
267
+ - Simulated data loading
268
+ <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=Unwanted69/shms" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
269
+ </html>