|
134 | 134 | <div class="absolute inset-0 bg-gradient-to-br from-transparent via-blue-500/5 to-purple-500/5 pointer-events-none"></div> |
135 | 135 |
|
136 | 136 | <!-- Terminal Header --> |
137 | | - <div class="bg-gray-800/90 backdrop-blur-sm px-4 py-3 flex items-center space-x-2 border-b border-gray-700/50"> |
138 | | - <div class="flex space-x-1.5"> |
139 | | - <div class="w-2.5 h-2.5 bg-red-500 rounded-full hover:bg-red-400 transition-colors cursor-pointer"></div> |
140 | | - <div class="w-2.5 h-2.5 bg-yellow-500 rounded-full hover:bg-yellow-400 transition-colors cursor-pointer"></div> |
141 | | - <div class="w-2.5 h-2.5 bg-green-500 rounded-full hover:bg-green-400 transition-colors cursor-pointer"></div> |
| 137 | + <div class="bg-gray-800/90 backdrop-blur-sm px-2 sm:px-4 py-2 sm:py-3 flex items-center space-x-2 border-b border-gray-700/50"> |
| 138 | + <div class="flex space-x-1"> |
| 139 | + <div class="w-2 h-2 sm:w-2.5 sm:h-2.5 bg-red-500 rounded-full hover:bg-red-400 transition-colors cursor-pointer"></div> |
| 140 | + <div class="w-2 h-2 sm:w-2.5 sm:h-2.5 bg-yellow-500 rounded-full hover:bg-yellow-400 transition-colors cursor-pointer"></div> |
| 141 | + <div class="w-2 h-2 sm:w-2.5 sm:h-2.5 bg-green-500 rounded-full hover:bg-green-400 transition-colors cursor-pointer"></div> |
142 | 142 | </div> |
143 | 143 | <div class="flex-1 text-center"> |
144 | | - <span class="text-gray-300 text-xs font-medium">PICO API Terminal</span> |
| 144 | + <span class="text-gray-300 text-[10px] sm:text-xs font-medium">PICO API Terminal</span> |
145 | 145 | </div> |
146 | | - <div class="flex items-center space-x-1.5 text-xs text-gray-500"> |
147 | | - <div class="w-1.5 h-1.5 bg-green-500 rounded-full animate-pulse"></div> |
148 | | - <span class="text-xs">Live</span> |
| 146 | + <div class="flex items-center space-x-1 text-[10px] sm:text-xs text-gray-500"> |
| 147 | + <div class="w-1 h-1 sm:w-1.5 sm:h-1.5 bg-green-500 rounded-full animate-pulse"></div> |
| 148 | + <span>Live</span> |
149 | 149 | </div> |
150 | 150 | </div> |
151 | 151 |
|
152 | 152 | <!-- Code Content --> |
153 | | - <div class="p-2 sm:p-3 md:p-4 font-mono text-xs relative bg-gray-900/50 overflow-x-auto"> |
| 153 | + <div class="p-1 sm:p-2 md:p-4 font-mono text-[8px] sm:text-xs relative bg-gray-900/50 overflow-x-auto"> |
154 | 154 | <!-- Request --> |
155 | | - <div class="mb-4 sm:mb-6"> |
156 | | - <div class="text-green-400 mb-2 typing-animation whitespace-nowrap overflow-x-auto"> |
157 | | - <span class="text-gray-500">$</span> curl https://pico-api.banuacoder.com/api/v1/national/latest |
| 155 | + <div class="mb-2 sm:mb-4"> |
| 156 | + <div class="text-green-400 mb-1 sm:mb-2 typing-animation overflow-x-auto"> |
| 157 | + <div class="whitespace-nowrap"> |
| 158 | + <span class="text-gray-500">$</span> curl https://pico-api.banuacoder.com/api/v1/national/latest |
| 159 | + </div> |
158 | 160 | </div> |
159 | 161 | </div> |
160 | 162 |
|
161 | 163 | <!-- Response --> |
162 | | - <div class="text-gray-300 leading-tight sm:leading-relaxed response-animation opacity-0 overflow-x-auto"> |
| 164 | + <div class="text-gray-300 leading-none sm:leading-tight md:leading-relaxed response-animation opacity-0 overflow-x-auto"> |
163 | 165 | <div class="text-blue-400">{</div> |
164 | | - <div class="pl-2 sm:pl-4"> |
| 166 | + <div class="pl-1 sm:pl-2 md:pl-4"> |
165 | 167 | <span class="text-yellow-400">"status"</span>: <span class="text-green-300">"success"</span>, |
166 | 168 | </div> |
167 | | - <div class="pl-2 sm:pl-4"> |
| 169 | + <div class="pl-1 sm:pl-2 md:pl-4"> |
168 | 170 | <span class="text-yellow-400">"data"</span>: <div class="text-blue-400 inline">{</div> |
169 | 171 | </div> |
170 | | - <div class="pl-4 sm:pl-8"> |
| 172 | + <div class="pl-2 sm:pl-4 md:pl-8"> |
171 | 173 | <span class="text-yellow-400">"day"</span>: <span class="text-orange-400">1247</span>, |
172 | 174 | </div> |
173 | | - <div class="pl-4 sm:pl-8"> |
| 175 | + <div class="pl-2 sm:pl-4 md:pl-8"> |
174 | 176 | <span class="text-yellow-400">"date"</span>: <span class="text-green-300">"2024-09-07T00:00:00Z"</span>, |
175 | 177 | </div> |
176 | | - <div class="pl-4 sm:pl-8"> |
| 178 | + <div class="pl-2 sm:pl-4 md:pl-8"> |
177 | 179 | <span class="text-yellow-400">"daily"</span>: <div class="text-blue-400 inline">{</div> |
178 | 180 | </div> |
179 | | - <div class="pl-6 sm:pl-12"> |
| 181 | + <div class="pl-3 sm:pl-6 md:pl-12"> |
180 | 182 | <span class="text-yellow-400">"positive"</span>: <span class="text-orange-400">127</span>, |
181 | 183 | </div> |
182 | | - <div class="pl-6 sm:pl-12"> |
| 184 | + <div class="pl-3 sm:pl-6 md:pl-12"> |
183 | 185 | <span class="text-yellow-400">"recovered"</span>: <span class="text-orange-400">98</span>, |
184 | 186 | </div> |
185 | | - <div class="pl-6 sm:pl-12"> |
| 187 | + <div class="pl-3 sm:pl-6 md:pl-12"> |
186 | 188 | <span class="text-yellow-400">"deceased"</span>: <span class="text-orange-400">2</span> |
187 | 189 | </div> |
188 | | - <div class="pl-4 sm:pl-8 text-blue-400">},</div> |
189 | | - <div class="pl-4 sm:pl-8"> |
| 190 | + <div class="pl-2 sm:pl-4 md:pl-8 text-blue-400">},</div> |
| 191 | + <div class="pl-2 sm:pl-4 md:pl-8"> |
190 | 192 | <span class="text-yellow-400">"cumulative"</span>: <div class="text-blue-400 inline">{</div> |
191 | 193 | </div> |
192 | | - <div class="pl-6 sm:pl-12"> |
| 194 | + <div class="pl-3 sm:pl-6 md:pl-12"> |
193 | 195 | <span class="text-yellow-400">"positive"</span>: <span class="text-orange-400">6754298</span>, |
194 | 196 | </div> |
195 | | - <div class="pl-6 sm:pl-12"> |
| 197 | + <div class="pl-3 sm:pl-6 md:pl-12"> |
196 | 198 | <span class="text-yellow-400">"recovered"</span>: <span class="text-orange-400">6589567</span>, |
197 | 199 | </div> |
198 | | - <div class="pl-6 sm:pl-12"> |
| 200 | + <div class="pl-3 sm:pl-6 md:pl-12"> |
199 | 201 | <span class="text-yellow-400">"deceased"</span>: <span class="text-orange-400">161031</span> |
200 | 202 | </div> |
201 | | - <div class="pl-4 sm:pl-8 text-blue-400">}</div> |
202 | | - <div class="pl-2 sm:pl-4 text-blue-400">}</div> |
| 203 | + <div class="pl-2 sm:pl-4 md:pl-8 text-blue-400">}</div> |
| 204 | + <div class="pl-1 sm:pl-2 md:pl-4 text-blue-400">}</div> |
203 | 205 | <div class="text-blue-400">}</div> |
204 | 206 |
|
205 | 207 | <!-- Typing cursor --> |
|
322 | 324 | </div> |
323 | 325 | </div> |
324 | 326 |
|
325 | | - <!-- API Endpoints Preview --> |
326 | | - <div class="py-16 bg-gray-50"> |
327 | | - <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
328 | | - <div class="text-center mb-16"> |
329 | | - <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">Quick API Overview</h2> |
330 | | - <p class="text-xl text-gray-600">Essential endpoints to get you started</p> |
331 | | - </div> |
332 | | - |
333 | | - <div class="grid grid-cols-1 lg:grid-cols-2 gap-8"> |
334 | | - <div class="bg-white rounded-xl shadow-lg p-8"> |
335 | | - <h3 class="text-2xl font-semibold text-gray-900 mb-4">Health Check</h3> |
336 | | - <div class="bg-gray-900 rounded-lg p-4 text-green-400 font-mono text-sm"> |
337 | | - GET /api/v1/health |
338 | | - </div> |
339 | | - <p class="text-gray-600 mt-4">Check API status and database connectivity</p> |
340 | | - </div> |
341 | | - |
342 | | - <div class="bg-white rounded-xl shadow-lg p-8"> |
343 | | - <h3 class="text-2xl font-semibold text-gray-900 mb-4">National Data</h3> |
344 | | - <div class="bg-gray-900 rounded-lg p-4 text-green-400 font-mono text-sm"> |
345 | | - GET /api/v1/national<br/> |
346 | | - GET /api/v1/national/latest |
347 | | - </div> |
348 | | - <p class="text-gray-600 mt-4">National COVID-19 statistics and latest data</p> |
349 | | - </div> |
350 | | - |
351 | | - <div class="bg-white rounded-xl shadow-lg p-8"> |
352 | | - <h3 class="text-2xl font-semibold text-gray-900 mb-4">Province Data</h3> |
353 | | - <div class="bg-gray-900 rounded-lg p-4 text-green-400 font-mono text-sm"> |
354 | | - GET /api/v1/provinces<br/> |
355 | | - GET /api/v1/provinces/cases |
356 | | - </div> |
357 | | - <p class="text-gray-600 mt-4">Province information and case data with pagination</p> |
358 | | - </div> |
359 | | - |
360 | | - <div class="bg-white rounded-xl shadow-lg p-8"> |
361 | | - <h3 class="text-2xl font-semibold text-gray-900 mb-4">Specific Province</h3> |
362 | | - <div class="bg-gray-900 rounded-lg p-4 text-green-400 font-mono text-sm"> |
363 | | - GET /api/v1/provinces/72/cases |
364 | | - </div> |
365 | | - <p class="text-gray-600 mt-4">Central Sulawesi specific COVID-19 data</p> |
366 | | - </div> |
367 | | - </div> |
368 | | - </div> |
369 | | - </div> |
370 | | - |
371 | | - |
372 | 327 | <!-- Footer --> |
373 | 328 | <footer class="bg-gray-900 text-white py-12"> |
374 | 329 | <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
|
0 commit comments