tbensap18 commited on
Commit
e171d5b
·
verified ·
1 Parent(s): 49f2b00

Create a clinic assessment dashboard that shows all clinic information in Kiribati. It should show the number of clinics in each islands in the Gilbert and Linnix group. It should show the number of nurses, coordinates (optional), source of power, internet provider, number of tablets, laptop, pc, landline, status of motorbikes, oxygen conectrators, solar fridges, etc that is required by the management within the Ministry of Health and Medical Services. I want the dashboard to be viewable publicly but data can only be entered requiring a login authentication. Also make sure that in login, we should be able to perform CRUD operations to update the data for the dashboard. - Follow Up Deployment

Browse files
Files changed (3) hide show
  1. admin.html +241 -0
  2. index.html +307 -16
  3. prompts.txt +1 -0
admin.html ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Admin Panel - Kiribati Clinic Assessment</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <style>
11
+ .sidebar {
12
+ width: 250px;
13
+ transition: all 0.3s ease;
14
+ }
15
+ @media (max-width: 768px) {
16
+ .sidebar {
17
+ width: 0;
18
+ overflow: hidden;
19
+ }
20
+ .sidebar.open {
21
+ width: 250px;
22
+ }
23
+ }
24
+ </style>
25
+ </head>
26
+ <body class="bg-gray-100">
27
+ <!-- Admin Navigation -->
28
+ <nav class="bg-blue-800 text-white shadow-lg">
29
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
30
+ <div class="flex justify-between h-16">
31
+ <div class="flex items-center">
32
+ <button id="menuToggle" class="md:hidden mr-3">
33
+ <i data-feather="menu"></i>
34
+ </button>
35
+ <i data-feather="settings" class="h-8 w-8 mr-2"></i>
36
+ <span class="font-semibold text-xl">Admin Panel</span>
37
+ </div>
38
+ <div class="flex items-center space-x-4">
39
+ <span class="hidden md:block">Welcome, Admin</span>
40
+ <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-md transition">Logout</button>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </nav>
45
+
46
+ <div class="flex">
47
+ <!-- Sidebar -->
48
+ <div class="sidebar bg-white shadow-md fixed h-full pt-4 md:relative" id="sidebar">
49
+ <div class="px-4 space-y-1">
50
+ <a href="#" class="flex items-center px-4 py-2 text-blue-700 bg-blue-100 rounded-md">
51
+ <i data-feather="home" class="h-5 w-5 mr-3"></i>
52
+ Dashboard
53
+ </a>
54
+ <a href="#" class="flex items-center px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md">
55
+ <i data-feather="plus-circle" class="h-5 w-5 mr-3"></i>
56
+ Add Clinic
57
+ </a>
58
+ <a href="#" class="flex items-center px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md">
59
+ <i data-feather="edit" class="h-5 w-5 mr-3"></i>
60
+ Edit Data
61
+ </a>
62
+ <a href="#" class="flex items-center px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md">
63
+ <i data-feather="users" class="h-5 w-5 mr-3"></i>
64
+ Manage Users
65
+ </a>
66
+ <a href="#" class="flex items-center px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md">
67
+ <i data-feather="bar-chart-2" class="h-5 w-5 mr-3"></i>
68
+ Reports
69
+ </a>
70
+ </div>
71
+ </div>
72
+
73
+ <!-- Main Content -->
74
+ <div class="flex-1 p-8">
75
+ <div class="bg-white rounded-lg shadow p-6 mb-6">
76
+ <h2 class="text-2xl font-semibold mb-4">Clinic Management</h2>
77
+
78
+ <!-- Data Table with CRUD Operations -->
79
+ <div class="overflow-x-auto">
80
+ <table class="min-w-full divide-y divide-gray-200">
81
+ <thead class="bg-gray-50">
82
+ <tr>
83
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Clinic Name</th>
84
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Island</th>
85
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Staff</th>
86
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
87
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
88
+ </tr>
89
+ </thead>
90
+ <tbody class="bg-white divide-y divide-gray-200">
91
+ <tr>
92
+ <td class="px-6 py-4 whitespace-nowrap">Betio Health Center</td>
93
+ <td class="px-6 py-4 whitespace-nowrap">Tarawa</td>
94
+ <td class="px-6 py-4 whitespace-nowrap">8</td>
95
+ <td class="px-6 py-4 whitespace-nowrap">
96
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Active</span>
97
+ </td>
98
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
99
+ <button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
100
+ <button class="text-red-600 hover:text-red-900">Delete</button>
101
+ </td>
102
+ </tr>
103
+ <tr>
104
+ <td class="px-6 py-4 whitespace-nowrap">London Clinic</td>
105
+ <td class="px-6 py-4 whitespace-nowrap">Kiritimati</td>
106
+ <td class="px-6 py-4 whitespace-nowrap">5</td>
107
+ <td class="px-6 py-4 whitespace-nowrap">
108
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Needs Update</span>
109
+ </td>
110
+ <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
111
+ <button class="text-blue-600 hover:text-blue-900 mr-3">Edit</button>
112
+ <button class="text-red-600 hover:text-red-900">Delete</button>
113
+ </td>
114
+ </tr>
115
+ <!-- More clinic rows would be here -->
116
+ </tbody>
117
+ </table>
118
+ </div>
119
+
120
+ <!-- Add New Clinic Form -->
121
+ <div class="mt-8 border-t pt-6">
122
+ <h3 class="text-lg font-medium mb-4">Add New Clinic</h3>
123
+ <form class="grid grid-cols-1 md:grid-cols-2 gap-4">
124
+ <div>
125
+ <label class="block text-sm font-medium text-gray-700 mb-1">Clinic Name</label>
126
+ <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md" placeholder="Enter clinic name">
127
+ </div>
128
+ <div>
129
+ <label class="block text-sm font-medium text-gray-700 mb-1">Island</label>
130
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md">
131
+ <option>Select Island</option>
132
+ <option>Tarawa</option>
133
+ <option>Kiritimati</option>
134
+ <option>Abemama</option>
135
+ <!-- More islands -->
136
+ </select>
137
+ </div>
138
+ <div>
139
+ <label class="block text-sm font-medium text-gray-700 mb-1">Number of Nurses</label>
140
+ <input type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md" placeholder="0">
141
+ </div>
142
+ <div>
143
+ <label class="block text-sm font-medium text-gray-700 mb-1">Power Source</label>
144
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md">
145
+ <option>Select Power Source</option>
146
+ <option>Grid</option>
147
+ <option>Solar</option>
148
+ <option>Generator</option>
149
+ <option>Hybrid</option>
150
+ </select>
151
+ </div>
152
+ <!-- More form fields for all required data -->
153
+ <div class="md:col-span-2">
154
+ <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Add Clinic</button>
155
+ </div>
156
+ </form>
157
+ </div>
158
+ </div>
159
+
160
+ <!-- Equipment Management -->
161
+ <div class="bg-white rounded-lg shadow p-6">
162
+ <h2 class="text-2xl font-semibold mb-4">Equipment Inventory</h2>
163
+
164
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
165
+ <div class="border rounded-lg p-4">
166
+ <h3 class="font-medium mb-2">Oxygen Concentrators</h3>
167
+ <div class="flex justify-between items-center">
168
+ <span class="text-2xl font-bold">42</span>
169
+ <span class="text-sm text-green-600">+5 this month</span>
170
+ </div>
171
+ </div>
172
+ <div class="border rounded-lg p-4">
173
+ <h3 class="font-medium mb-2">Solar Fridges</h3>
174
+ <div class="flex justify-between items-center">
175
+ <span class="text-2xl font-bold">67</span>
176
+ <span class="text-sm text-green-600">+3 this month</span>
177
+ </div>
178
+ </div>
179
+ <div class="border rounded-lg p-4">
180
+ <h3 class="font-medium mb-2">Motorbikes</h3>
181
+ <div class="flex justify-between items-center">
182
+ <span class="text-2xl font-bold">28</span>
183
+ <span class="text-sm text-yellow-600">2 need repair</span>
184
+ </div>
185
+ </div>
186
+ </div>
187
+
188
+ <!-- Equipment Update Form -->
189
+ <h3 class="text-lg font-medium mb-4">Update Equipment Status</h3>
190
+ <form class="grid grid-cols-1 md:grid-cols-2 gap-4">
191
+ <div>
192
+ <label class="block text-sm font-medium text-gray-700 mb-1">Equipment Type</label>
193
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md">
194
+ <option>Select Equipment</option>
195
+ <option>Oxygen Concentrator</option>
196
+ <option>Solar Fridge</option>
197
+ <option>Motorbike</option>
198
+ <option>Tablet</option>
199
+ <option>Laptop</option>
200
+ <option>Desktop PC</option>
201
+ <option>Landline Phone</option>
202
+ </select>
203
+ </div>
204
+ <div>
205
+ <label class="block text-sm font-medium text-gray-700 mb-1">Clinic</label>
206
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md">
207
+ <option>Select Clinic</option>
208
+ <!-- Clinic options would be populated from database -->
209
+ </select>
210
+ </div>
211
+ <div>
212
+ <label class="block text-sm font-medium text-gray-700 mb-1">Quantity</label>
213
+ <input type="number" class="w-full px-3 py-2 border border-gray-300 rounded-md" placeholder="0">
214
+ </div>
215
+ <div>
216
+ <label class="block text-sm font-medium text-gray-700 mb-1">Status</label>
217
+ <select class="w-full px-3 py-2 border border-gray-300 rounded-md">
218
+ <option>Functional</option>
219
+ <option>Needs Repair</option>
220
+ <option>Not Working</option>
221
+ </select>
222
+ </div>
223
+ <div class="md:col-span-2">
224
+ <button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition">Update Inventory</button>
225
+ </div>
226
+ </form>
227
+ </div>
228
+ </div>
229
+ </div>
230
+
231
+ <script>
232
+ // Initialize feather icons
233
+ feather.replace();
234
+
235
+ // Mobile menu toggle
236
+ document.getElementById('menuToggle').addEventListener('click', function() {
237
+ document.getElementById('sidebar').classList.toggle('open');
238
+ });
239
+ </script>
240
+ </body>
241
+ </html>
index.html CHANGED
@@ -1,20 +1,311 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>My app</title>
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <meta charset="utf-8">
 
7
  <script src="https://cdn.tailwindcss.com"></script>
8
- </head>
9
- <body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6">
10
- <div class="w-full">
11
- <span class="text-xs rounded-full mb-2 inline-block px-2 py-1 border border-amber-500/15 bg-amber-500/15 text-amber-500">🔥 New version dropped!</span>
12
- <h1 class="text-4xl lg:text-6xl font-bold font-sans">
13
- <span class="text-2xl lg:text-4xl text-gray-400 block font-medium">I'm ready to work,</span>
14
- Ask me anything.
15
- </h1>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  </div>
17
- <img src="https://enzostvs-deepsite.hf.space/arrow.svg" class="absolute bottom-8 left-0 w-[100px] transform rotate-[30deg]" />
18
- <script></script>
19
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  </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>Kiribati Clinic Assessment Dashboard</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
  <script src="https://cdn.tailwindcss.com"></script>
9
+ <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
10
+ <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
14
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
15
+ <style>
16
+ .island-map {
17
+ background: url('http://static.photos/aerial/1200x630/15') center/cover no-repeat;
18
+ }
19
+ .stats-card {
20
+ transition: all 0.3s ease;
21
+ }
22
+ .stats-card:hover {
23
+ transform: translateY(-5px);
24
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
25
+ }
26
+ .login-modal {
27
+ backdrop-filter: blur(5px);
28
+ }
29
+ </style>
30
+ </head>
31
+ <body class="bg-gray-50">
32
+ <!-- Navigation -->
33
+ <nav class="bg-blue-800 text-white shadow-lg">
34
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
35
+ <div class="flex justify-between h-16">
36
+ <div class="flex items-center">
37
+ <i data-feather="activity" class="h-8 w-8 mr-2"></i>
38
+ <span class="font-semibold text-xl">Kiribati Clinic Assessment</span>
39
+ </div>
40
+ <div class="flex items-center space-x-4">
41
+ <button id="loginBtn" class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-md transition">Login</button>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </nav>
46
+
47
+ <!-- Hero Section -->
48
+ <div id="vanta-bg" class="relative py-20 text-white">
49
+ <div class="absolute inset-0 bg-blue-900 opacity-80"></div>
50
+ <div class="relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
51
+ <h1 class="text-4xl md:text-5xl font-bold mb-4" data-aos="fade-up">Kiribati Health Facilities Assessment</h1>
52
+ <p class="text-xl max-w-3xl mx-auto" data-aos="fade-up" data-aos-delay="200">Comprehensive overview of medical resources across the Gilbert and Line Islands</p>
53
+ </div>
54
  </div>
55
+
56
+ <!-- Dashboard Content -->
57
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
58
+ <!-- Summary Stats -->
59
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-12">
60
+ <div class="stats-card bg-white rounded-lg shadow p-6 text-center" data-aos="fade-up">
61
+ <i data-feather="home" class="h-10 w-10 text-blue-600 mx-auto mb-3"></i>
62
+ <h3 class="text-2xl font-bold text-gray-800">147</h3>
63
+ <p class="text-gray-600">Total Clinics</p>
64
+ </div>
65
+ <div class="stats-card bg-white rounded-lg shadow p-6 text-center" data-aos="fade-up" data-aos-delay="100">
66
+ <i data-feather="users" class="h-10 w-10 text-green-600 mx-auto mb-3"></i>
67
+ <h3 class="text-2xl font-bold text-gray-800">328</h3>
68
+ <p class="text-gray-600">Medical Staff</p>
69
+ </div>
70
+ <div class="stats-card bg-white rounded-lg shadow p-6 text-center" data-aos="fade-up" data-aos-delay="200">
71
+ <i data-feather="wifi" class="h-10 w-10 text-purple-600 mx-auto mb-3"></i>
72
+ <h3 class="text-2xl font-bold text-gray-800">89</h3>
73
+ <p class="text-gray-600">Internet Connected</p>
74
+ </div>
75
+ <div class="stats-card bg-white rounded-lg shadow p-6 text-center" data-aos="fade-up" data-aos-delay="300">
76
+ <i data-feather="battery-charging" class="h-10 w-10 text-yellow-600 mx-auto mb-3"></i>
77
+ <h3 class="text-2xl font-bold text-gray-800">112</h3>
78
+ <p class="text-gray-600">Solar Powered</p>
79
+ </div>
80
+ </div>
81
+
82
+ <!-- Island Distribution -->
83
+ <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-12">
84
+ <div class="bg-white rounded-lg shadow p-6" data-aos="fade-right">
85
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
86
+ <i data-feather="map" class="mr-2"></i> Clinics by Island Group
87
+ </h2>
88
+ <canvas id="islandChart" height="250"></canvas>
89
+ </div>
90
+ <div class="bg-white rounded-lg shadow p-6" data-aos="fade-left">
91
+ <h2 class="text-xl font-semibold mb-4 flex items-center">
92
+ <i data-feather="pie-chart" class="mr-2"></i> Equipment Distribution
93
+ </h2>
94
+ <canvas id="equipmentChart" height="250"></canvas>
95
+ </div>
96
+ </div>
97
+
98
+ <!-- Island Map Visualization -->
99
+ <div class="bg-white rounded-lg shadow mb-12 overflow-hidden" data-aos="zoom-in">
100
+ <div class="island-map h-96 rounded-t-lg"></div>
101
+ <div class="p-6">
102
+ <h2 class="text-xl font-semibold mb-2">Clinic Geographic Distribution</h2>
103
+ <p class="text-gray-600">Health facilities spread across the Gilbert and Line Islands</p>
104
+ </div>
105
+ </div>
106
+
107
+ <!-- Data Tables -->
108
+ <div class="bg-white rounded-lg shadow overflow-hidden mb-12" data-aos="fade-up">
109
+ <div class="px-6 py-4 border-b border-gray-200">
110
+ <h2 class="text-xl font-semibold flex items-center">
111
+ <i data-feather="grid" class="mr-2"></i> Clinic Details Overview
112
+ </h2>
113
+ </div>
114
+ <div class="overflow-x-auto">
115
+ <table class="min-w-full divide-y divide-gray-200">
116
+ <thead class="bg-gray-50">
117
+ <tr>
118
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Island</th>
119
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Clinics</th>
120
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Nurses</th>
121
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Power Source</th>
122
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Internet</th>
123
+ <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Equipment</th>
124
+ </tr>
125
+ </thead>
126
+ <tbody class="bg-white divide-y divide-gray-200">
127
+ <tr>
128
+ <td class="px-6 py-4 whitespace-nowrap">Tarawa</td>
129
+ <td class="px-6 py-4 whitespace-nowrap">12</td>
130
+ <td class="px-6 py-4 whitespace-nowrap">45</td>
131
+ <td class="px-6 py-4 whitespace-nowrap">Grid/Solar</td>
132
+ <td class="px-6 py-4 whitespace-nowrap">TSKL</td>
133
+ <td class="px-6 py-4 whitespace-nowrap">Complete</td>
134
+ </tr>
135
+ <tr class="bg-gray-50">
136
+ <td class="px-6 py-4 whitespace-nowrap">Kiritimati</td>
137
+ <td class="px-6 py-4 whitespace-nowrap">8</td>
138
+ <td class="px-6 py-4 whitespace-nowrap">28</td>
139
+ <td class="px-6 py-4 whitespace-nowrap">Generator/Solar</td>
140
+ <td class="px-6 py-4 whitespace-nowrap">TSKL</td>
141
+ <td class="px-6 py-4 whitespace-nowrap">Moderate</td>
142
+ </tr>
143
+ <!-- More rows would be here in a real implementation -->
144
+ </tbody>
145
+ </table>
146
+ </div>
147
+ </div>
148
+ </div>
149
+
150
+ <!-- Footer -->
151
+ <footer class="bg-blue-800 text-white py-8">
152
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
153
+ <div class="md:flex md:justify-between">
154
+ <div class="mb-6 md:mb-0">
155
+ <h3 class="text-lg font-semibold mb-2">Ministry of Health and Medical Services</h3>
156
+ <p class="text-blue-200">Republic of Kiribati</p>
157
+ </div>
158
+ <div>
159
+ <p class="text-blue-200">© 2023 Clinic Assessment Dashboard. Public information.</p>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ </footer>
164
+
165
+ <!-- Login Modal -->
166
+ <div id="loginModal" class="fixed inset-0 z-50 hidden login-modal">
167
+ <div class="flex items-center justify-center min-h-screen p-4">
168
+ <div class="bg-white rounded-lg shadow-xl max-w-md w-full p-6" data-aos="zoom-in">
169
+ <div class="flex justify-between items-center mb-4">
170
+ <h3 class="text-xl font-semibold">Admin Login</h3>
171
+ <button id="closeModal" class="text-gray-400 hover:text-gray-600">
172
+ <i data-feather="x"></i>
173
+ </button>
174
+ </div>
175
+ <form id="loginForm">
176
+ <div class="mb-4">
177
+ <label class="block text-gray-700 mb-2" for="username">Username</label>
178
+ <input type="text" id="username" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" required>
179
+ </div>
180
+ <div class="mb-6">
181
+ <label class="block text-gray-700 mb-2" for="password">Password</label>
182
+ <input type="password" id="password" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500" required>
183
+ </div>
184
+ <button type="submit" class="w-full bg-blue-600 text-white py-2 px-4 rounded-md hover:bg-blue-700 transition">Login</button>
185
+ </form>
186
+ </div>
187
+ </div>
188
+ </div>
189
+
190
+ <script>
191
+ // Initialize animations
192
+ AOS.init({
193
+ duration: 800,
194
+ easing: 'ease-in-out',
195
+ once: true
196
+ });
197
+
198
+ // Initialize feather icons
199
+ feather.replace();
200
+
201
+ // Vanta.js background
202
+ VANTA.GLOBE({
203
+ el: "#vanta-bg",
204
+ mouseControls: true,
205
+ touchControls: true,
206
+ gyroControls: false,
207
+ minHeight: 200.00,
208
+ minWidth: 200.00,
209
+ scale: 1.00,
210
+ scaleMobile: 1.00,
211
+ color: 0x3b82f6,
212
+ backgroundColor: 0x172554,
213
+ size: 0.8
214
+ });
215
+
216
+ // Charts
217
+ document.addEventListener('DOMContentLoaded', function() {
218
+ // Island distribution chart
219
+ const islandCtx = document.getElementById('islandChart').getContext('2d');
220
+ new Chart(islandCtx, {
221
+ type: 'bar',
222
+ data: {
223
+ labels: ['Gilbert Islands', 'Line Islands', 'Phoenix Islands'],
224
+ datasets: [{
225
+ label: 'Number of Clinics',
226
+ data: [112, 28, 7],
227
+ backgroundColor: [
228
+ 'rgba(59, 130, 246, 0.7)',
229
+ 'rgba(16, 185, 129, 0.7)',
230
+ 'rgba(245, 158, 11, 0.7)'
231
+ ],
232
+ borderColor: [
233
+ 'rgb(59, 130, 246)',
234
+ 'rgb(16, 185, 129)',
235
+ 'rgb(245, 158, 11)'
236
+ ],
237
+ borderWidth: 1
238
+ }]
239
+ },
240
+ options: {
241
+ responsive: true,
242
+ plugins: {
243
+ legend: {
244
+ display: false
245
+ }
246
+ },
247
+ scales: {
248
+ y: {
249
+ beginAtZero: true
250
+ }
251
+ }
252
+ }
253
+ });
254
+
255
+ // Equipment chart
256
+ const equipmentCtx = document.getElementById('equipmentChart').getContext('2d');
257
+ new Chart(equipmentCtx, {
258
+ type: 'doughnut',
259
+ data: {
260
+ labels: ['Functional', 'Needs Repair', 'Not Available'],
261
+ datasets: [{
262
+ data: [65, 20, 15],
263
+ backgroundColor: [
264
+ 'rgba(16, 185, 129, 0.7)',
265
+ 'rgba(245, 158, 11, 0.7)',
266
+ 'rgba(239, 68, 68, 0.7)'
267
+ ],
268
+ borderColor: [
269
+ 'rgb(16, 185, 129)',
270
+ 'rgb(245, 158, 11)',
271
+ 'rgb(239, 68, 68)'
272
+ ],
273
+ borderWidth: 1
274
+ }]
275
+ },
276
+ options: {
277
+ responsive: true,
278
+ plugins: {
279
+ legend: {
280
+ position: 'bottom'
281
+ }
282
+ }
283
+ }
284
+ });
285
+ });
286
+
287
+ // Modal functionality
288
+ document.getElementById('loginBtn').addEventListener('click', function() {
289
+ document.getElementById('loginModal').classList.remove('hidden');
290
+ });
291
+
292
+ document.getElementById('closeModal').addEventListener('click', function() {
293
+ document.getElementById('loginModal').classList.add('hidden');
294
+ });
295
+
296
+ document.getElementById('loginForm').addEventListener('submit', function(e) {
297
+ e.preventDefault();
298
+ // In a real implementation, this would validate credentials and redirect to admin panel
299
+ alert('Login functionality would redirect to admin panel for data management');
300
+ document.getElementById('loginModal').classList.add('hidden');
301
+ });
302
+
303
+ // Close modal when clicking outside
304
+ document.getElementById('loginModal').addEventListener('click', function(e) {
305
+ if (e.target === this) {
306
+ this.classList.add('hidden');
307
+ }
308
+ });
309
+ </script>
310
+ </body>
311
  </html>
prompts.txt CHANGED
@@ -0,0 +1 @@
 
 
1
+ Create a clinic assessment dashboard that shows all clinic information in Kiribati. It should show the number of clinics in each islands in the Gilbert and Linnix group. It should show the number of nurses, coordinates (optional), source of power, internet provider, number of tablets, laptop, pc, landline, status of motorbikes, oxygen conectrators, solar fridges, etc that is required by the management within the Ministry of Health and Medical Services. I want the dashboard to be viewable publicly but data can only be entered requiring a login authentication. Also make sure that in login, we should be able to perform CRUD operations to update the data for the dashboard.