fase 3.4: PWA instalable (manifest e iconos, service worker propio con app shell precacheado y cache versionada por build, API nunca cacheada, fallback offline, aviso de instalacion con guia iOS y banner sin conexion) + branding: perfiles de ticket por instancia (defaults neutros, sin filtrar datos de SKEEN) y Dashboard sin nombre hardcodeado
This commit is contained in:
84
frontend/public/offline.html
Normal file
84
frontend/public/offline.html
Normal file
@@ -0,0 +1,84 @@
|
||||
<!doctype html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#1f3a4d" />
|
||||
<title>Sin conexión · Panel Clínico</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/icons/icon.svg" />
|
||||
<style>
|
||||
:root {
|
||||
--bg: #f8f6f4;
|
||||
--surface: #ffffff;
|
||||
--border: #e5e0dc;
|
||||
--text: #2d2d2d;
|
||||
--muted: #6b6b6b;
|
||||
--heading: #1a1a1a;
|
||||
--accent: #1f3a4d;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { height: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||
}
|
||||
.card {
|
||||
width: 100%;
|
||||
max-width: 420px;
|
||||
text-align: center;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 18px;
|
||||
padding: 32px 28px;
|
||||
}
|
||||
.mark {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin: 0 auto 18px;
|
||||
display: block;
|
||||
border-radius: 14px;
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 20px;
|
||||
line-height: 1.25;
|
||||
color: var(--heading);
|
||||
}
|
||||
p {
|
||||
margin: 0 0 20px;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: var(--muted);
|
||||
}
|
||||
button {
|
||||
appearance: none;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
padding: 11px 20px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background: var(--accent);
|
||||
cursor: pointer;
|
||||
}
|
||||
button:active { opacity: 0.9; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="card">
|
||||
<img class="mark" src="/icons/icon.svg" alt="" width="56" height="56" />
|
||||
<h1>Sin conexión</h1>
|
||||
<p>
|
||||
No hay conexión a internet en este momento. Revisa tu red e intenta de nuevo;
|
||||
la aplicación seguirá trabajando en cuanto vuelvas a estar en línea.
|
||||
</p>
|
||||
<button type="button" onclick="location.reload()">Reintentar</button>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user