aarnal80 commited on
Commit
87f14a8
·
verified ·
1 Parent(s): 7a9e431

Create proa.html

Browse files
Files changed (1) hide show
  1. proa/proa.html +83 -0
proa/proa.html ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="es">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>PROA - Asistente Médico Modular</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ /* Estilos copiados de index.html para consistencia */
11
+ body { background-color: #f8fafc; font-family: 'Montserrat', sans-serif; /* Añadido font */ }
12
+ #configModal { display: flex; visibility: hidden; opacity: 0; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.2s, visibility 0.2s; }
13
+ #configModal.active { visibility: visible; opacity: 1; }
14
+ #configContent { background: white; padding: 24px 20px; border-radius: 8px; width: 100%; max-width: 420px; box-shadow: 0 8px 32px rgba(0,0,0,0.25); position: relative; z-index: 10000; }
15
+ textarea, pre { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; }
16
+ button:disabled, a:disabled { opacity: 0.6; cursor: not-allowed; }
17
+
18
+ /* Estilos específicos para el visor de guías */
19
+ .guide-list-item { display: block; padding: 0.75rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; margin-bottom: 0.5rem; background-color: white; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; font-weight: 500; color: #374151; }
20
+ .guide-list-item:hover { background-color: #f9fafb; border-color: #9ca3af; }
21
+ .guide-list-item.pediatric { /* border-left: 4px solid #db2777; */ }
22
+ .pediatric-tag-inline { font-size: 0.75rem; font-weight: 500; color: #db2777; background-color: #fce7f3; padding: 0.125rem 0.5rem; border-radius: 9999px; margin-left: 0.5rem; display: inline-block; vertical-align: middle; }
23
+ #guide-content-area { background-color: white; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1.5rem; margin-top: 1rem; min-height: 300px; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
24
+ .hidden { display: none; }
25
+ </style>
26
+ </head>
27
+ <body class="bg-gray-50 min-h-screen">
28
+
29
+ <div class="mx-auto max-w-4xl p-6 my-8 bg-white rounded-xl shadow-md">
30
+
31
+ <div class="text-center mb-4">
32
+ <h1 class="text-xl font-bold text-blue-800 flex items-center justify-center">
33
+ <i class="fas fa-book-medical mr-3 text-teal-600"></i> Módulo Guías PROA
34
+ </h1>
35
+ <p class="text-gray-600 mt-1">Consulta de Guías Clínicas</p>
36
+ </div>
37
+ <div class="flex justify-between items-center mb-4"> <a href="index.html" class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded-lg flex items-center text-base shadow transition-colors" title="Volver al Asistente">
38
+ <i class="fas fa-arrow-left mr-2"></i>Volver al Asistente
39
+ </a>
40
+ <button id="btnConfigProa" class="border border-blue-500 text-blue-700 hover:bg-blue-50 px-4 py-2 rounded-lg flex items-center transition-colors">
41
+ <i class="fas fa-cogs mr-2"></i>Configuración IA
42
+ </button>
43
+ </div>
44
+ <div id="configModal">
45
+ <div id="configContent">
46
+ <div id="iaConfigContainer"></div>
47
+ </div>
48
+ </div>
49
+ <div class="bg-teal-50 p-6 rounded-lg mb-6 border border-teal-100 shadow">
50
+
51
+ <div class="mb-4 flex justify-end items-center">
52
+ <label for="togglePediatric" class="mr-3 text-sm font-medium text-gray-700">Mostrar Guías Pediátricas:</label>
53
+ <input type="checkbox" id="togglePediatric" class="form-checkbox h-5 w-5 text-pink-600 rounded focus:ring-pink-500 cursor-pointer">
54
+ </div>
55
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
56
+
57
+ <div class="md:col-span-1">
58
+ <h2 class="text-lg font-semibold text-teal-800 mb-3">Guías Disponibles:</h2>
59
+ <div id="guide-list-container" class="max-h-96 overflow-y-auto pr-2">
60
+ <p class="text-gray-500">Cargando lista de guías...</p>
61
+ </div>
62
+ </div>
63
+
64
+ <div class="md:col-span-2">
65
+ <h2 class="text-lg font-semibold text-teal-800 mb-3">Contenido de la Guía:</h2>
66
+ <div id="guide-content-area">
67
+ <p class="text-gray-500 text-center mt-10">Selecciona una guía de la lista para ver su contenido aquí.</p>
68
+ </div>
69
+ </div>
70
+
71
+ </div>
72
+ </div>
73
+ <div class="text-center mt-8 pt-6 border-t border-gray-200">
74
+ <p class="text-gray-600">
75
+ Desarrollado por el Dr. Antonio J. Arnal Meinhardt<br>
76
+ <span class="text-sm">Médico de Urgencias | Atención Primaria</span>
77
+ </p>
78
+ <p class="text-xs text-gray-500 mt-1">Guías PROA basadas en documentación del Hospital de Alcañiz.</p>
79
+ </div>
80
+ </div>
81
+ <script type="module" src="./js/proa.js"></script>
82
+ </body>
83
+ </html>