-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
69 lines (60 loc) · 3.41 KB
/
index.php
File metadata and controls
69 lines (60 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
// public/index.php
$page_title = "Menú Dinámico — Prueba Técnica";
include __DIR__ . '/src/includes/header.php';
?>
<!-- ====================== CONTENIDO PRINCIPAL ====================== -->
<section id="inicio" class="py-8">
<!-- ===== Barra de acciones secundarias (botón y píldora de estado) ===== -->
<div class="container mx-auto max-w-5xl px-4">
<button type="button"
onclick="resetMenu()"
class="px-3 py-2 bg-brand-teal text-brand-light text-sm rounded-md hover:bg-brand-navy">
Restaurar menú
</button>
<!-- Píldora de estado (opcional: muestra el filtro activo) -->
<span id="menuFilterPill" class="hidden text-sm px-2 py-1 rounded-full bg-brand-teal/10 text-brand-teal">
Mostrando: <b id="menuFilterName"></b>
</span>
</div>
<!-- ===== Contenedor principal del panel de acciones ===== -->
<div class="container mx-auto max-w-5xl px-4">
<h2 class="text-2xl font-semibold text-brand-navy mb-4">Panel principal — Acciones rápidas</h2>
<!-- ===== Grid de 4 tarjetas (botones principales del panel) ===== -->
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-5">
<!-- --- Tarjeta: Monitoreo de Alarmas --- -->
<button type="button"
onclick="sendMenuFilter('Monitoreo')"
class="group p-5 rounded-xl bg-white border border-gray-200 shadow-sm hover:shadow-md transition-all hover:-translate-y-0.5 text-center">
<img src="/livia/assets/img/001.png" alt="Monitoreo de alarmas" class="mx-auto w-14 h-14 mb-3">
<div class="text-base font-semibold text-brand-navy group-hover:text-brand-teal">Monitoreo de Alarmas</div>
<p class="text-xs text-gray-500 mt-1">Ver alarmas activas y por criticidad.</p>
</button>
<!-- --- Tarjeta: Estado General de Sensores --- -->
<button type="button"
onclick="sendMenuFilter('Sensores')"
class="group p-5 rounded-xl bg-white border border-gray-200 shadow-sm hover:shadow-md transition-all hover:-translate-y-0.5 text-center">
<img src="/livia/assets/img/005.png" alt="Estado general de sensores" class="mx-auto w-14 h-14 mb-3">
<div class="text-base font-semibold text-brand-navy group-hover:text-brand-teal">Estado de Sensores</div>
<p class="text-xs text-gray-500 mt-1">Temperatura, presión y vibración.</p>
</button>
<!-- --- Tarjeta: Alertas de Mantenimiento --- -->
<button type="button"
onclick="sendMenuFilter('Mantenimiento')"
class="group p-5 rounded-xl bg-white border border-gray-200 shadow-sm hover:shadow-md transition-all hover:-translate-y-0.5 text-center">
<img src="/livia/assets/img/006.png" alt="Alertas de mantenimiento" class="mx-auto w-14 h-14 mb-3">
<div class="text-base font-semibold text-brand-navy group-hover:text-brand-teal">Alertas de Mantenimiento</div>
<p class="text-xs text-gray-500 mt-1">Predictivo y próximas revisiones.</p>
</button>
<!-- --- Tarjeta: Mapa de Flota --- -->
<button type="button"
onclick="sendMenuFilter('Flota')"
class="group p-5 rounded-xl bg-white border border-gray-200 shadow-sm hover:shadow-md transition-all hover:-translate-y-0.5 text-center">
<img src="/livia/assets/img/003.png" alt="Mapa de flota" class="mx-auto w-14 h-14 mb-3">
<div class="text-base font-semibold text-brand-navy group-hover:text-brand-teal">Mapa de Flota</div>
<p class="text-xs text-gray-500 mt-1">Unidades por zona y estado.</p>
</button>
</div>
</div>
</section>
<?php include __DIR__ . '/src/includes/footer.php'; ?>