feat: redesign Schedules, Discover, and Routes views with SIBU Main HUD aesthetic and Tailwind v4
This commit is contained in:
@ -5,7 +5,6 @@ import { useScheduleStore } from '@/stores/schedule'
|
||||
import { useRouteStore } from '@/stores/route'
|
||||
import { formatTo12Hour } from '@/utils/timeFormatter'
|
||||
import { analyticsService } from '@/services/analyticsService'
|
||||
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
|
||||
const { t } = useI18n()
|
||||
@ -15,27 +14,14 @@ const router = useRouter()
|
||||
const scheduleStore = useScheduleStore()
|
||||
const routeStore = useRouteStore()
|
||||
|
||||
const showRouteDropdown = ref(false)
|
||||
const routeCardRef = ref<HTMLElement | null>(null)
|
||||
|
||||
// Close dropdown when clicking outside
|
||||
function handleClickOutside(event: MouseEvent) {
|
||||
if (routeCardRef.value && !routeCardRef.value.contains(event.target as Node)) {
|
||||
showRouteDropdown.value = false
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
analyticsService.logEvent({ event_name: 'screen_view', screen_name: 'Schedules' })
|
||||
document.addEventListener('click', handleClickOutside)
|
||||
await routeStore.loadRoutes()
|
||||
|
||||
// Point 1: Smart synchronization from MapView
|
||||
const queryRouteId = route.query.routeId as string
|
||||
if (queryRouteId) {
|
||||
const foundRoute = routeStore.allRoutes.find(r => r.id === queryRouteId)
|
||||
if (foundRoute) {
|
||||
// FIX: Use sync function to avoid redirect loop back to map
|
||||
syncRouteSelection(foundRoute.id, foundRoute.name)
|
||||
}
|
||||
}
|
||||
@ -54,14 +40,12 @@ const unwatchQuery = watch(
|
||||
)
|
||||
|
||||
onUnmounted(() => {
|
||||
document.removeEventListener('click', handleClickOutside)
|
||||
unwatchQuery()
|
||||
})
|
||||
|
||||
function syncRouteSelection(routeId: string, routeName: string) {
|
||||
routeStore.selectRoute(routeId, routeName)
|
||||
scheduleStore.loadRouteSchedules(routeId)
|
||||
showRouteDropdown.value = false
|
||||
}
|
||||
|
||||
function selectRouteAndClose(routeId: string, routeName: string) {
|
||||
@ -73,7 +57,6 @@ function selectRouteAndClose(routeId: string, routeName: string) {
|
||||
|
||||
routeStore.selectRoute(routeId, routeName)
|
||||
scheduleStore.loadRouteSchedules(routeId)
|
||||
showRouteDropdown.value = false
|
||||
}
|
||||
|
||||
function goToMap() {
|
||||
@ -84,457 +67,148 @@ function goToMap() {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
function clearRouteAndClose() {
|
||||
routeStore.clearSelection()
|
||||
scheduleStore.schedules = []
|
||||
showRouteDropdown.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="schedules-view">
|
||||
<h1>{{ t('schedules.title') }}</h1>
|
||||
|
||||
<div v-if="routeStore.isLoadingRoutes">
|
||||
<p>{{ t('schedules.loadingRoutes') }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="routeStore.allRoutes.length === 0">
|
||||
<p>{{ t('schedules.noRoutesAvailable') }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else>
|
||||
<!-- Quick Select Route Buttons (Nexus Style) -->
|
||||
<div class="quick-routes-container">
|
||||
<div
|
||||
v-for="route in routeStore.allRoutes"
|
||||
:key="route.id"
|
||||
class="route-chip-nexus"
|
||||
:class="{ 'active': route.id === routeStore.selectedRouteId }"
|
||||
@click="selectRouteAndClose(route.id, route.name)"
|
||||
>
|
||||
<span class="material-icons chip-icon">directions_bus</span>
|
||||
<span class="chip-text">{{ route.name }}</span>
|
||||
<div v-if="route.id === routeStore.selectedRouteId" class="active-dot"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Route selector card (As backup/dropdown) -->
|
||||
<div class="route-card" ref="routeCardRef">
|
||||
<div class="route-card-content" @click.stop="showRouteDropdown = !showRouteDropdown">
|
||||
<span class="material-icons route-icon">search</span>
|
||||
<div class="route-info">
|
||||
<div v-if="routeStore.selectedRouteId && routeStore.selectedRouteName" class="route-name">
|
||||
{{ routeStore.selectedRouteName }}
|
||||
</div>
|
||||
<div v-else class="route-name">Buscar otra ruta...</div>
|
||||
</div>
|
||||
<span class="material-icons arrow-icon" :class="{ 'rotated': showRouteDropdown }">
|
||||
keyboard_arrow_down
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Dropdown menu -->
|
||||
<div v-if="showRouteDropdown" class="route-dropdown" @click.stop>
|
||||
<div
|
||||
v-for="route in routeStore.allRoutes"
|
||||
:key="route.id"
|
||||
class="route-option"
|
||||
:class="{ 'selected': route.id === routeStore.selectedRouteId }"
|
||||
@click="selectRouteAndClose(route.id, route.name)"
|
||||
>
|
||||
{{ route.name }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="schedules-view-redesign bg-slate-50 dark:bg-zinc-950 text-slate-900 dark:text-slate-100 min-h-screen">
|
||||
<!-- Header Sticky con Blur -->
|
||||
<header class="sticky top-0 z-50 bg-white/90 dark:bg-zinc-900/90 backdrop-blur-md px-6 pt-10 pb-4 border-b border-slate-200 dark:border-zinc-800">
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<button @click="router.back()" class="w-10 h-10 flex items-center justify-center -ml-2 rounded-full active:bg-slate-100 dark:active:bg-zinc-800 transition-colors">
|
||||
<span class="material-icons text-2xl">arrow_back</span>
|
||||
</button>
|
||||
<h1 class="text-xl font-bold tracking-tight">{{ t('schedules.title') }}</h1>
|
||||
<div class="w-10"></div>
|
||||
</div>
|
||||
|
||||
<div v-if="routeStore.selectedRouteId" class="schedules-content">
|
||||
<div class="schedules-header">
|
||||
<h2 v-if="routeStore.selectedRouteName">{{ routeStore.selectedRouteName }}</h2>
|
||||
<button class="view-route-btn" @click="goToMap">
|
||||
<span class="material-icons">map</span>
|
||||
Ver ruta
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div v-if="scheduleStore.isLoading" class="schedules-loading">
|
||||
<span class="material-icons spin">refresh</span>
|
||||
<p>Cargando horarios...</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="scheduleStore.error" class="schedules-error">
|
||||
<p>{{ scheduleStore.error }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="scheduleStore.schedules.length > 0">
|
||||
<ul class="schedule-list">
|
||||
<li v-for="schedule in scheduleStore.schedules" :key="schedule.id" class="schedule-item">
|
||||
<div class="schedule-item-info">
|
||||
<span class="material-icons">schedule</span>
|
||||
<span class="departure-time">{{ formatTo12Hour(schedule.departure_time) }}</span>
|
||||
</div>
|
||||
<span class="schedule-type">{{ schedule.schedule_type }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div v-else class="schedules-empty">
|
||||
<span class="material-icons">event_busy</span>
|
||||
<p>No hay horarios disponibles para esta ruta.</p>
|
||||
<!-- Selector de Línea -->
|
||||
<div class="relative group" v-if="!routeStore.isLoadingRoutes && routeStore.allRoutes.length > 0">
|
||||
<label class="block text-[10px] font-bold text-slate-400 dark:text-zinc-500 uppercase tracking-widest mb-1.5 ml-1">{{ t('schedules.selectRoute') || 'Seleccionar Línea' }}</label>
|
||||
<div class="relative">
|
||||
<select
|
||||
class="w-full pl-4 pr-12 py-4 bg-slate-50 dark:bg-zinc-800 border-2 border-transparent focus:border-primary focus:ring-0 rounded-2xl text-lg font-bold transition-all cursor-pointer appearance-none"
|
||||
id="route-select"
|
||||
:value="routeStore.selectedRouteId"
|
||||
@change="e => {
|
||||
const target = e.target as HTMLSelectElement;
|
||||
if (target) {
|
||||
const selectedRoute = routeStore.allRoutes.find(r => r.id === target.value);
|
||||
if (selectedRoute) selectRouteAndClose(target.value, selectedRoute.name);
|
||||
}
|
||||
}"
|
||||
>
|
||||
<option value="" disabled>{{ t('schedules.placeholder') || 'Elige una ruta...' }}</option>
|
||||
<option v-for="route in routeStore.allRoutes" :key="route.id" :value="route.id">
|
||||
{{ route.name }}
|
||||
</option>
|
||||
</select>
|
||||
<span class="material-icons absolute right-4 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none">expand_more</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="flex-1 px-6 pt-6 pb-32">
|
||||
<div v-if="routeStore.isLoadingRoutes" class="flex flex-col items-center justify-center py-20">
|
||||
<div class="w-12 h-12 border-4 border-primary/20 border-t-primary rounded-full animate-spin mb-4"></div>
|
||||
<p class="text-slate-500 dark:text-zinc-400 font-medium">{{ t('schedules.loadingRoutes') }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else-if="!routeStore.selectedRouteId" class="flex flex-col items-center justify-center py-20 text-center">
|
||||
<span class="material-icons text-6xl text-slate-200 dark:text-zinc-800 mb-4">route</span>
|
||||
<p class="text-slate-500 dark:text-zinc-400 font-medium italic">Selecciona una ruta para ver sus horarios</p>
|
||||
</div>
|
||||
|
||||
<template v-else>
|
||||
<!-- Estado Próximas Salidas -->
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<h2 class="text-sm font-semibold text-slate-500 dark:text-zinc-400">{{ t('schedules.upcoming') || 'Próximas salidas' }}</h2>
|
||||
<div class="flex items-center gap-1.5 px-2.5 py-1 bg-[#fee715]/10 rounded-full">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-[#fee715] animate-pulse"></span>
|
||||
<span class="text-[10px] font-bold text-slate-700 dark:text-[#fee715] tracking-wide">EN VIVO</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Listado de Horarios -->
|
||||
<div v-if="scheduleStore.isLoading" class="flex justify-center py-10">
|
||||
<div class="w-8 h-8 border-2 border-primary/20 border-t-primary rounded-full animate-spin"></div>
|
||||
</div>
|
||||
|
||||
<div v-else-if="scheduleStore.schedules.length === 0" class="bg-white dark:bg-zinc-800/50 p-8 rounded-2xl border border-slate-100 dark:border-zinc-800 text-center">
|
||||
<span class="material-icons text-slate-300 dark:text-zinc-700 text-4xl mb-2">event_busy</span>
|
||||
<p class="text-slate-500 dark:text-zinc-400">{{ t('schedules.noSchedules') || 'No hay salidas programadas para hoy' }}</p>
|
||||
</div>
|
||||
|
||||
<div v-else class="space-y-4">
|
||||
<div
|
||||
v-for="schedule in scheduleStore.schedules"
|
||||
:key="schedule.id"
|
||||
class="p-4 bg-white dark:bg-zinc-800/50 border border-slate-100 dark:border-zinc-800 rounded-2xl flex items-center justify-between hover:border-primary/50 transition-all shadow-sm"
|
||||
>
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="text-3xl font-extrabold tracking-tighter text-slate-900 dark:text-white">
|
||||
{{ formatTo12Hour(schedule.departure_time) }}
|
||||
</div>
|
||||
<div class="h-8 w-px bg-slate-200 dark:bg-zinc-700"></div>
|
||||
<div>
|
||||
<p class="text-[10px] font-medium text-slate-400 dark:text-zinc-500 uppercase tracking-wider">Línea</p>
|
||||
<p class="font-bold text-slate-900 dark:text-white leading-tight">
|
||||
{{ routeStore.selectedRouteName }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<span
|
||||
class="px-3 py-1 text-[10px] font-bold uppercase tracking-wider rounded-full"
|
||||
:class="schedule.schedule_type === 'weekday' ? 'bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400' : 'bg-slate-100 dark:bg-zinc-700 text-slate-500 dark:text-zinc-400'"
|
||||
>
|
||||
{{ t(`schedules.types.${schedule.schedule_type}`) || schedule.schedule_type }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</main>
|
||||
|
||||
<!-- Botón Flotante para ir al Mapa -->
|
||||
<Transition name="fade">
|
||||
<button
|
||||
v-if="routeStore.selectedRouteId"
|
||||
@click="goToMap"
|
||||
class="fixed bottom-24 right-6 w-14 h-14 bg-primary text-slate-900 rounded-full shadow-2xl flex items-center justify-center active:scale-95 transition-all z-40"
|
||||
>
|
||||
<span class="material-icons text-3xl">map</span>
|
||||
</button>
|
||||
</Transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.schedules-view {
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
padding: 1.5rem 1rem 150px;
|
||||
color: var(--text-primary);
|
||||
.schedules-view-redesign {
|
||||
font-family: 'Plus Jakarta Sans', sans-serif;
|
||||
overflow-x: hidden;
|
||||
background: var(--bg-primary) !important;
|
||||
}
|
||||
|
||||
|
||||
/* Asegurar que el contenido flote sobre el fondo */
|
||||
.schedules-view > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
select {
|
||||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 1rem center;
|
||||
background-size: 1.25rem;
|
||||
}
|
||||
|
||||
.schedules-view h1 {
|
||||
font-size: 2.2rem;
|
||||
font-weight: 800;
|
||||
text-shadow: 0 2px 10px rgba(0,0,0,0.3);
|
||||
margin-bottom: 2rem;
|
||||
text-align: center;
|
||||
.fade-enter-active, .fade-leave-active {
|
||||
transition: opacity 0.3s ease, transform 0.3s ease;
|
||||
}
|
||||
|
||||
.quick-routes-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 24px;
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
.fade-enter-from, .fade-leave-to {
|
||||
opacity: 0;
|
||||
transform: translateY(20px);
|
||||
}
|
||||
|
||||
.route-chip-nexus {
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid var(--border-color);
|
||||
padding: 12px 20px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
/* Transiciones para la lista */
|
||||
.space-y-4 > * {
|
||||
animation: slideUp 0.4s ease-out forwards;
|
||||
}
|
||||
|
||||
.route-chip-nexus:hover {
|
||||
background: rgba(254, 231, 21, 0.1);
|
||||
border-color: var(--active-color);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.route-chip-nexus.active {
|
||||
background: var(--active-color);
|
||||
border-color: var(--active-color);
|
||||
color: #101820;
|
||||
box-shadow: 0 8px 20px rgba(254, 231, 21, 0.3);
|
||||
}
|
||||
|
||||
.chip-icon {
|
||||
font-size: 20px;
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.route-chip-nexus.active .chip-icon {
|
||||
color: #101820;
|
||||
}
|
||||
|
||||
.chip-text {
|
||||
font-weight: 800;
|
||||
font-size: 0.9rem;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.active-dot {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: #101820;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.route-card {
|
||||
margin-bottom: 2rem;
|
||||
max-width: 400px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.route-card-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 18px;
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 16px;
|
||||
box-shadow: var(--shadow);
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, box-shadow 0.3s ease;
|
||||
}
|
||||
|
||||
.route-card-content:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 12px 30px rgba(0,0,0,0.2);
|
||||
}
|
||||
|
||||
.route-card-content:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
|
||||
.route-icon {
|
||||
color: var(--active-color);
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.route-info {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.route-name {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.route-stops {
|
||||
font-size: 0.9rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.arrow-icon {
|
||||
color: var(--text-secondary);
|
||||
font-size: 24px;
|
||||
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.arrow-icon.rotated {
|
||||
transform: rotate(180deg);
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.route-dropdown {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin-top: 10px;
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 16px;
|
||||
box-shadow: var(--shadow);
|
||||
max-height: 250px;
|
||||
overflow-y: auto;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.route-option {
|
||||
padding: 14px 20px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
color: var(--text-primary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.route-option:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.route-option:hover {
|
||||
background-color: var(--hover-bg);
|
||||
padding-left: 24px;
|
||||
}
|
||||
|
||||
.route-option.selected {
|
||||
background-color: var(--active-bg);
|
||||
color: var(--active-color);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.route-option.clear-option {
|
||||
color: #ef4444; /* Rojo para limpiar */
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.schedules-content {
|
||||
margin-top: 1.5rem;
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(16px);
|
||||
-webkit-backdrop-filter: blur(16px);
|
||||
padding: 24px;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 24px;
|
||||
box-shadow: var(--shadow);
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.schedules-content h2 {
|
||||
text-align: center;
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--active-color);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.schedules-loading, .schedules-empty, .schedules-error {
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
.spin {
|
||||
animation: spin 1s linear infinite;
|
||||
font-size: 3rem;
|
||||
color: var(--active-color);
|
||||
margin-bottom: 16px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.schedule-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.schedule-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 16px 20px;
|
||||
background: var(--bg-secondary);
|
||||
border-radius: 16px;
|
||||
border: 1px solid var(--border-color);
|
||||
transition: all 0.2s ease;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
||||
}
|
||||
|
||||
.schedule-item:hover {
|
||||
transform: translateY(-3px) scale(1.02);
|
||||
border-color: var(--active-color);
|
||||
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
.schedule-item-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.schedule-item .material-icons {
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.departure-time {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 800;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.schedule-type {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
padding: 5px 10px;
|
||||
background: var(--active-bg);
|
||||
color: var(--active-color);
|
||||
border-radius: 8px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.schedules-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 2rem;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.schedules-header h2 {
|
||||
margin-bottom: 0 !important;
|
||||
text-align: left !important;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.view-route-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 12px 24px;
|
||||
background: #FEE715;
|
||||
color: #101820;
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.view-route-btn:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
|
||||
filter: brightness(1.1);
|
||||
}
|
||||
|
||||
.view-route-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.schedules-header {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
.schedules-header h2 {
|
||||
text-align: center !important;
|
||||
}
|
||||
.view-route-btn {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
@keyframes slideUp {
|
||||
from { opacity: 0; transform: translateY(10px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user