aarnal80 commited on
Commit
fe45a1c
·
verified ·
1 Parent(s): b9ad2d5

Update proa/proa.html

Browse files
Files changed (1) hide show
  1. proa/proa.html +9 -23
proa/proa.html CHANGED
@@ -7,15 +7,11 @@
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; */ }
@@ -32,36 +28,26 @@
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
 
38
- <div class="flex justify-between items-center mb-4">
39
- <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">
40
  <i class="fas fa-arrow-left mr-2"></i>Volver al Asistente
41
  </a>
42
- <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">
43
- <i class="fas fa-cogs mr-2"></i>Configuración IA
44
- </button>
45
- </div>
46
-
47
- <div id="configModal">
48
- <div id="configContent">
49
- <div id="iaConfigContainer"></div>
50
  </div>
51
- </div>
52
 
53
  <div class="bg-teal-50 p-6 rounded-lg mb-6 border border-teal-100 shadow">
54
-
55
  <div class="mb-4 flex justify-end items-center">
56
  <label for="togglePediatric" class="mr-3 text-sm font-medium text-gray-700">Mostrar Guías Pediátricas:</label>
57
  <input type="checkbox" id="togglePediatric" class="form-checkbox h-5 w-5 text-pink-600 rounded focus:ring-pink-500 cursor-pointer">
58
  </div>
59
-
60
  <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
61
  <div class="md:col-span-1">
62
  <h2 class="text-lg font-semibold text-teal-800 mb-3">Guías Disponibles:</h2>
63
  <div id="guide-list-container" class="max-h-96 overflow-y-auto pr-2">
64
- <p class="text-gray-500">Cargando lista de guías...</p>
 
 
65
  </div>
66
  </div>
67
  <div class="md:col-span-2">
@@ -80,5 +66,5 @@
80
  </div>
81
  </div> <script type="module" src="../js/proa.js"></script>
82
 
83
- </body>
84
  </html>
 
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 */
11
+ body { background-color: #f8fafc; font-family: 'Montserrat', sans-serif; }
12
+ /* ... (otros estilos sin cambios) ... */
 
 
13
  textarea, pre { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; }
14
  button:disabled, a:disabled { opacity: 0.6; cursor: not-allowed; }
 
 
15
  .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; }
16
  .guide-list-item:hover { background-color: #f9fafb; border-color: #9ca3af; }
17
  .guide-list-item.pediatric { /* border-left: 4px solid #db2777; */ }
 
28
  <h1 class="text-xl font-bold text-blue-800 flex items-center justify-center">
29
  <i class="fas fa-book-medical mr-3 text-teal-600"></i> Módulo Guías PROA
30
  </h1>
31
+ <p class="text-gray-600 mt-1">Consulta de Guías Clínicas Hospital de Alcañiz</p>
32
  </div>
33
 
34
+ <div class="flex justify-start 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">
 
35
  <i class="fas fa-arrow-left mr-2"></i>Volver al Asistente
36
  </a>
 
 
 
 
 
 
 
 
37
  </div>
 
38
 
39
  <div class="bg-teal-50 p-6 rounded-lg mb-6 border border-teal-100 shadow">
 
40
  <div class="mb-4 flex justify-end items-center">
41
  <label for="togglePediatric" class="mr-3 text-sm font-medium text-gray-700">Mostrar Guías Pediátricas:</label>
42
  <input type="checkbox" id="togglePediatric" class="form-checkbox h-5 w-5 text-pink-600 rounded focus:ring-pink-500 cursor-pointer">
43
  </div>
 
44
  <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
45
  <div class="md:col-span-1">
46
  <h2 class="text-lg font-semibold text-teal-800 mb-3">Guías Disponibles:</h2>
47
  <div id="guide-list-container" class="max-h-96 overflow-y-auto pr-2">
48
+ <p class="text-red-500 font-semibold">Error al cargar lista de guías.</p>
49
+ <p class="text-sm text-gray-600 mt-1">Detalle: Error HTTP 404 al cargar index.html: .</p>
50
+ <p class="text-xs text-gray-500 mt-2">Asegúrate de que el archivo 'index.html' exista en la raíz del proyecto y que la aplicación se ejecute desde un servidor web (Hugging Face o local), no como archivo local (file:///...).</p>
51
  </div>
52
  </div>
53
  <div class="md:col-span-2">
 
66
  </div>
67
  </div> <script type="module" src="../js/proa.js"></script>
68
 
69
+ </body>
70
  </html>