base.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <meta name="csrf-token" content="{{ csrf_token() }}">
  7. <title>{{ page_title or 'Dashboard Squid' }}</title>
  8. <!-- Dynamic favicon -->
  9. <link rel="icon" href="{{ url_for('static', filename=page_icon) }}" type="image/x-icon"/>
  10. <!-- Stylesheets -->
  11. <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}"/>
  12. <link rel="stylesheet" href="{{url_for('static',filename='dist/output.css')}}"/> <!-- Tailwind CSS -->
  13. <link rel="stylesheet" href="{{ url_for('static', filename='all.min.css') }}"/> <!-- Font Awesome -->
  14. <!-- Logs CSS Custom-->
  15. <link rel="stylesheet" href="{{ url_for('static', filename='logs.css') }}"/>
  16. <!-- Toastr CSS -->
  17. <link rel="stylesheet" href="{{ url_for('static', filename='css/toastr.min.css') }}"/>
  18. <!-- Toastr Custom CSS -->
  19. <link rel="stylesheet" href="{{ url_for('static', filename='css/toastr-custom.css') }}"/>
  20. <!-- Page-specific styles -->
  21. {% block styles %}{% endblock styles %}
  22. </head>
  23. <body class="overflow-x-hidden overflow-auto" style="visibility: hidden" onload="document.body.style.visibility='visible';">
  24. <!-- Common navigation bar -->
  25. <div class="relative">
  26. {% include 'components/navbar.html' %}
  27. <!-- Main content with MORE SPACE for the navbar -->
  28. <main class="min-h-screen pt-16 lg:pt-20 pb-20">
  29. <!-- UNIFIED MAIN CONTAINER -->
  30. <div class="w-full px-4 sm:px-6 lg:px-8">
  31. {% block header %}
  32. <!-- Default header - IMPROVED FOR RESPONSIVE -->
  33. <div class="max-w-7xl mx-auto flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4 mb-8">
  34. <!-- Title and subtitle -->
  35. <div class="flex items-center flex-shrink-0">
  36. {% if icon %}
  37. <i class="{{icon}} text-2xl sm:text-3xl text-blue-600 mr-3 sm:mr-4"></i>
  38. {% endif %}
  39. <div class="min-w-0">
  40. <h1 class="text-2xl sm:text-3xl font-bold text-gray-800 truncate">{{page_title}}</h1>
  41. <p class="text-gray-500 text-sm sm:text-base mt-1 line-clamp-2">
  42. {{subtitle}}
  43. </p>
  44. </div>
  45. </div>
  46. <!-- Header actions area - editable by pages -->
  47. <div class="flex items-center justify-start lg:justify-end flex-wrap gap-2 sm:gap-3 min-w-0">
  48. {% block header_actions %}
  49. <!-- Empty by default - pages can add content here -->
  50. {% endblock %}
  51. </div>
  52. </div>
  53. {% endblock %}
  54. <!-- Content area - editable by pages -->
  55. <div class="max-w-7xl mx-auto w-full">
  56. {% block content %}{% endblock %}
  57. </div>
  58. </div>
  59. </main>
  60. </div>
  61. <!-- Footer -->
  62. {% include 'components/footer.html' %}
  63. <!-- Socket.IO -->
  64. <script src="{{ url_for('static', filename='js/socket.io.min.js') }}"></script>
  65. <!-- Flowbite scripts (UI components) -->
  66. <script src="{{ url_for('static', filename='src/flowbite.min.js') }}"></script>
  67. <!-- jQuery (requerido por toastr) -->
  68. <script src="{{ url_for('static', filename='js/jquery-4.0.0.min.js') }}"></script>
  69. <!-- Toastr JS -->
  70. <script src="{{ url_for('static', filename='js/toastr.min.js') }}"></script>
  71. <!-- Configuración global de Toastr -->
  72. <script src="{{ url_for('static', filename='js/toastr-config.js') }}"></script>
  73. <!-- Page-specific scripts -->
  74. {% block scripts %}{% endblock scripts %}
  75. </body>
  76. </html>