Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +246 -19
- prompts.txt +1 -0
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: smartdoctor
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: pink
|
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,246 @@
|
|
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>SmartDoc - Your Personal Doctor 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 |
+
.gradient-bg {
|
11 |
+
background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
|
12 |
+
}
|
13 |
+
.pulse-animation {
|
14 |
+
animation: pulse 2s infinite;
|
15 |
+
}
|
16 |
+
@keyframes pulse {
|
17 |
+
0% { transform: scale(1); }
|
18 |
+
50% { transform: scale(1.05); }
|
19 |
+
100% { transform: scale(1); }
|
20 |
+
}
|
21 |
+
.symptom-checker {
|
22 |
+
background: rgba(255, 255, 255, 0.1);
|
23 |
+
backdrop-filter: blur(10px);
|
24 |
+
}
|
25 |
+
</style>
|
26 |
+
</head>
|
27 |
+
<body class="bg-gray-50 font-sans">
|
28 |
+
<div class="max-w-md mx-auto bg-white min-h-screen shadow-lg overflow-hidden">
|
29 |
+
<!-- Header -->
|
30 |
+
<header class="gradient-bg text-white p-6 pb-16 relative">
|
31 |
+
<div class="flex justify-between items-center mb-8">
|
32 |
+
<div>
|
33 |
+
<h1 class="text-2xl font-bold">SmartDoc</h1>
|
34 |
+
<p class="text-sm opacity-80">Your personal health assistant</p>
|
35 |
+
</div>
|
36 |
+
<div class="flex space-x-4">
|
37 |
+
<button class="bg-white bg-opacity-20 p-2 rounded-full">
|
38 |
+
<i class="fas fa-bell text-white"></i>
|
39 |
+
</button>
|
40 |
+
<button class="bg-white bg-opacity-20 p-2 rounded-full">
|
41 |
+
<i class="fas fa-user text-white"></i>
|
42 |
+
</button>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
<!-- Search Bar -->
|
47 |
+
<div class="absolute bottom-0 left-0 right-0 px-6 pb-6">
|
48 |
+
<div class="relative">
|
49 |
+
<input type="text" placeholder="Search symptoms, doctors..."
|
50 |
+
class="w-full py-3 px-4 pr-12 rounded-full shadow-md focus:outline-none focus:ring-2 focus:ring-blue-500">
|
51 |
+
<button class="absolute right-3 top-3 text-gray-400">
|
52 |
+
<i class="fas fa-search"></i>
|
53 |
+
</button>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</header>
|
57 |
+
|
58 |
+
<!-- Main Content -->
|
59 |
+
<main class="px-6 pt-6 pb-20 -mt-10">
|
60 |
+
<!-- Quick Actions -->
|
61 |
+
<div class="grid grid-cols-4 gap-4 mb-8">
|
62 |
+
<button class="flex flex-col items-center justify-center bg-white p-4 rounded-xl shadow-sm hover:shadow-md transition">
|
63 |
+
<div class="bg-blue-100 p-3 rounded-full mb-2">
|
64 |
+
<i class="fas fa-stethoscope text-blue-600"></i>
|
65 |
+
</div>
|
66 |
+
<span class="text-xs font-medium">Symptom Check</span>
|
67 |
+
</button>
|
68 |
+
<button class="flex flex-col items-center justify-center bg-white p-4 rounded-xl shadow-sm hover:shadow-md transition">
|
69 |
+
<div class="bg-purple-100 p-3 rounded-full mb-2">
|
70 |
+
<i class="fas fa-calendar-check text-purple-600"></i>
|
71 |
+
</div>
|
72 |
+
<span class="text-xs font-medium">Appointments</span>
|
73 |
+
</button>
|
74 |
+
<button class="flex flex-col items-center justify-center bg-white p-4 rounded-xl shadow-sm hover:shadow-md transition">
|
75 |
+
<div class="bg-green-100 p-3 rounded-full mb-2">
|
76 |
+
<i class="fas fa-pills text-green-600"></i>
|
77 |
+
</div>
|
78 |
+
<span class="text-xs font-medium">Medicines</span>
|
79 |
+
</button>
|
80 |
+
<button class="flex flex-col items-center justify-center bg-white p-4 rounded-xl shadow-sm hover:shadow-md transition">
|
81 |
+
<div class="bg-red-100 p-3 rounded-full mb-2">
|
82 |
+
<i class="fas fa-heartbeat text-red-600"></i>
|
83 |
+
</div>
|
84 |
+
<span class="text-xs font-medium">Health Tips</span>
|
85 |
+
</button>
|
86 |
+
</div>
|
87 |
+
|
88 |
+
<!-- Emergency Button -->
|
89 |
+
<div class="mb-8">
|
90 |
+
<button class="w-full bg-red-500 hover:bg-red-600 text-white py-3 px-4 rounded-xl shadow-md flex items-center justify-center pulse-animation transition">
|
91 |
+
<i class="fas fa-ambulance mr-2"></i>
|
92 |
+
<span class="font-bold">Emergency Assistance</span>
|
93 |
+
</button>
|
94 |
+
</div>
|
95 |
+
|
96 |
+
<!-- Symptom Checker -->
|
97 |
+
<div class="symptom-checker rounded-xl p-6 mb-8 relative overflow-hidden">
|
98 |
+
<div class="absolute -right-10 -top-10 w-32 h-32 bg-white bg-opacity-10 rounded-full"></div>
|
99 |
+
<div class="absolute -right-5 -bottom-5 w-20 h-20 bg-white bg-opacity-10 rounded-full"></div>
|
100 |
+
<h2 class="text-white font-bold text-lg mb-2 relative z-10">Not feeling well?</h2>
|
101 |
+
<p class="text-white text-opacity-80 text-sm mb-4 relative z-10">Check your symptoms and get instant advice</p>
|
102 |
+
<button class="bg-white text-blue-600 font-medium py-2 px-6 rounded-full text-sm relative z-10 hover:bg-opacity-90 transition">
|
103 |
+
Start Symptom Check
|
104 |
+
</button>
|
105 |
+
</div>
|
106 |
+
|
107 |
+
<!-- Upcoming Appointments -->
|
108 |
+
<div class="mb-6">
|
109 |
+
<div class="flex justify-between items-center mb-4">
|
110 |
+
<h2 class="font-bold text-gray-800">Upcoming Appointments</h2>
|
111 |
+
<button class="text-blue-600 text-sm font-medium">View All</button>
|
112 |
+
</div>
|
113 |
+
|
114 |
+
<div class="bg-white rounded-xl shadow-sm p-4 mb-3 border-l-4 border-blue-500">
|
115 |
+
<div class="flex justify-between items-start">
|
116 |
+
<div>
|
117 |
+
<h3 class="font-medium text-gray-800">Dr. Sarah Johnson</h3>
|
118 |
+
<p class="text-sm text-gray-500">Cardiologist</p>
|
119 |
+
</div>
|
120 |
+
<div class="text-right">
|
121 |
+
<p class="text-sm font-medium text-gray-800">Today, 3:00 PM</p>
|
122 |
+
<p class="text-xs text-gray-500">30 mins</p>
|
123 |
+
</div>
|
124 |
+
</div>
|
125 |
+
<div class="flex justify-between mt-3">
|
126 |
+
<button class="text-xs bg-blue-100 text-blue-600 py-1 px-3 rounded-full">Video Call</button>
|
127 |
+
<button class="text-xs bg-gray-100 text-gray-600 py-1 px-3 rounded-full">Reschedule</button>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
|
131 |
+
<div class="bg-white rounded-xl shadow-sm p-4 border-l-4 border-green-500">
|
132 |
+
<div class="flex justify-between items-start">
|
133 |
+
<div>
|
134 |
+
<h3 class="font-medium text-gray-800">Dr. Michael Chen</h3>
|
135 |
+
<p class="text-sm text-gray-500">General Physician</p>
|
136 |
+
</div>
|
137 |
+
<div class="text-right">
|
138 |
+
<p class="text-sm font-medium text-gray-800">Tomorrow, 10:30 AM</p>
|
139 |
+
<p class="text-xs text-gray-500">20 mins</p>
|
140 |
+
</div>
|
141 |
+
</div>
|
142 |
+
<div class="flex justify-between mt-3">
|
143 |
+
<button class="text-xs bg-blue-100 text-blue-600 py-1 px-3 rounded-full">Clinic Visit</button>
|
144 |
+
<button class="text-xs bg-gray-100 text-gray-600 py-1 px-3 rounded-full">Cancel</button>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
|
149 |
+
<!-- Medicine Reminder -->
|
150 |
+
<div class="mb-6">
|
151 |
+
<div class="flex justify-between items-center mb-4">
|
152 |
+
<h2 class="font-bold text-gray-800">Medicine Reminders</h2>
|
153 |
+
<button class="text-blue-600 text-sm font-medium">Add New</button>
|
154 |
+
</div>
|
155 |
+
|
156 |
+
<div class="bg-white rounded-xl shadow-sm p-4 flex items-center mb-3">
|
157 |
+
<div class="bg-blue-100 p-3 rounded-lg mr-4">
|
158 |
+
<i class="fas fa-pills text-blue-600"></i>
|
159 |
+
</div>
|
160 |
+
<div class="flex-1">
|
161 |
+
<h3 class="font-medium text-gray-800">Paracetamol</h3>
|
162 |
+
<p class="text-sm text-gray-500">500mg, 1 tablet</p>
|
163 |
+
</div>
|
164 |
+
<div class="text-right">
|
165 |
+
<p class="text-sm font-medium text-gray-800">8:00 AM</p>
|
166 |
+
<p class="text-xs text-gray-500">Daily</p>
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
|
170 |
+
<div class="bg-white rounded-xl shadow-sm p-4 flex items-center">
|
171 |
+
<div class="bg-purple-100 p-3 rounded-lg mr-4">
|
172 |
+
<i class="fas fa-pills text-purple-600"></i>
|
173 |
+
</div>
|
174 |
+
<div class="flex-1">
|
175 |
+
<h3 class="font-medium text-gray-800">Vitamin D</h3>
|
176 |
+
<p class="text-sm text-gray-500">1000 IU, 1 capsule</p>
|
177 |
+
</div>
|
178 |
+
<div class="text-right">
|
179 |
+
<p class="text-sm font-medium text-gray-800">7:00 PM</p>
|
180 |
+
<p class="text-xs text-gray-500">Every 2 days</p>
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
</div>
|
184 |
+
</main>
|
185 |
+
|
186 |
+
<!-- Bottom Navigation -->
|
187 |
+
<nav class="fixed bottom-0 left-0 right-0 max-w-md mx-auto bg-white border-t border-gray-200 flex justify-around py-3 px-6">
|
188 |
+
<button class="flex flex-col items-center text-blue-600">
|
189 |
+
<i class="fas fa-home mb-1"></i>
|
190 |
+
<span class="text-xs">Home</span>
|
191 |
+
</button>
|
192 |
+
<button class="flex flex-col items-center text-gray-500">
|
193 |
+
<i class="fas fa-comment-medical mb-1"></i>
|
194 |
+
<span class="text-xs">Consult</span>
|
195 |
+
</button>
|
196 |
+
<button class="flex flex-col items-center text-gray-500">
|
197 |
+
<i class="fas fa-heartbeat mb-1"></i>
|
198 |
+
<span class="text-xs">Health</span>
|
199 |
+
</button>
|
200 |
+
<button class="flex flex-col items-center text-gray-500">
|
201 |
+
<i class="fas fa-user-md mb-1"></i>
|
202 |
+
<span class="text-xs">Doctors</span>
|
203 |
+
</button>
|
204 |
+
<button class="flex flex-col items-center text-gray-500">
|
205 |
+
<i class="fas fa-cog mb-1"></i>
|
206 |
+
<span class="text-xs">Settings</span>
|
207 |
+
</button>
|
208 |
+
</nav>
|
209 |
+
</div>
|
210 |
+
|
211 |
+
<script>
|
212 |
+
// Simple interactive elements
|
213 |
+
document.addEventListener('DOMContentLoaded', function() {
|
214 |
+
// Symptom checker button
|
215 |
+
const symptomBtn = document.querySelector('.symptom-checker button');
|
216 |
+
symptomBtn.addEventListener('click', function() {
|
217 |
+
alert('Symptom checker feature would open here. This would guide you through a series of questions to help identify potential health issues.');
|
218 |
+
});
|
219 |
+
|
220 |
+
// Emergency button
|
221 |
+
const emergencyBtn = document.querySelector('.pulse-animation');
|
222 |
+
emergencyBtn.addEventListener('click', function() {
|
223 |
+
if(confirm('Are you sure you want to call emergency services?')) {
|
224 |
+
alert('Emergency services would be contacted immediately. Please stay on the line.');
|
225 |
+
}
|
226 |
+
});
|
227 |
+
|
228 |
+
// Navigation buttons
|
229 |
+
const navButtons = document.querySelectorAll('nav button');
|
230 |
+
navButtons.forEach(button => {
|
231 |
+
button.addEventListener('click', function() {
|
232 |
+
navButtons.forEach(btn => {
|
233 |
+
btn.classList.remove('text-blue-600');
|
234 |
+
btn.classList.add('text-gray-500');
|
235 |
+
});
|
236 |
+
this.classList.remove('text-gray-500');
|
237 |
+
this.classList.add('text-blue-600');
|
238 |
+
|
239 |
+
// In a real app, this would load different content
|
240 |
+
alert(`Loading ${this.querySelector('span').textContent} section...`);
|
241 |
+
});
|
242 |
+
});
|
243 |
+
});
|
244 |
+
</script>
|
245 |
+
<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=THEMONEYHOLLIC/smartdoctor" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
246 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
create a smartphone doctor app
|