feat(eta): rewrite useETA to use database times and update ETACard

This commit is contained in:
2026-02-27 13:55:44 -05:00
parent 504e61bfb2
commit 7c800a0551
2 changed files with 112 additions and 78 deletions

View File

@ -85,10 +85,17 @@
<span class="text-sm font-bold text-gray-900 dark:text-white line-clamp-1">
{{ index === 0 ? 'Bus más cercano' : 'Siguiente bus' }}
</span>
<span class="text-xs font-semibold text-gray-500 dark:text-gray-400 flex items-center gap-1 mt-0.5">
<span class="material-icons" style="font-size: 14px">schedule</span>
Salió de terminal a las {{ bus.hora_salida }}
</span>
<div class="flex flex-col mt-0.5 gap-0.5">
<span class="text-xs font-semibold text-gray-500 dark:text-gray-400 flex items-center gap-1">
<span class="material-icons" style="font-size: 14px">schedule</span>
{{ bus.estado === 'pasó' ? 'Salió a las' : 'Sale a las' }} {{ bus.hora_salida }}
</span>
<span class="text-[11px] font-medium text-gray-500 dark:text-gray-400 pl-4">
<span v-if="bus.estado === 'pasó'">Pasó por tu parada a las</span>
<span v-else>Llega a tu parada ~</span>
{{ bus.horaLlegadaParada }}
</span>
</div>
</div>
</div>