templates/home/index.html.twig line 1

  1. {# templates/home/index.html.twig #}
  2. {% extends 'base.html.twig' %}
  3. {% block homebanner %}
  4.     {% if app.user == false %}
  5.         <div class="fullscreen-bg">
  6.             <div class="block-fullscreen">
  7.                 <div class="block-column">
  8.                     <div class="">
  9.                         <h2 class="gb-headline news gb-headline-text"><strong>Novedades 23/24</strong></h2>
  10.                         <h5 class="gb-headline gb-headline-text">FOL</h5>
  11.                         <h5 class="gb-headline gb-headline-text">MATEMÁTICAS</h5>
  12.                         <h5 class="gb-headline gb-headline-text">FÍSICA Y QUÍMICA</h5>
  13.                         <h5 class="gb-headline gb-headline-text">FP BÁSICA</h5>
  14.                         <div class="">
  15.                             <a class="gb-button gb-button-28443d3d gb-button-text" href="{{ path('app_login') }}">Identificarse</a>
  16.                         </div>
  17.                     </div>
  18.                 </div>
  19.             </div>
  20.             <div class="gb-shapes">
  21.                 <div class="gb-shape gb-shape-1">
  22.                     <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 96.2" preserveAspectRatio="none"><path d="M0 96.2h1200V72.9l-50-8.9c-50-8.6-150-26.9-250-22.2C800 46.2 700 72.9 600 64 500 55.4 400 10.4 300 1.8 200-7.1 100 19.5 50 32.9L0 46.2v50z"></path></svg></div><div class="gb-shape gb-shape-2"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 130.3" preserveAspectRatio="none"><path d="M0 107.9l40-22.2c40-21.9 120-66.9 200-62.2 80 4.4 160 57.8 240 53.3C560 72 640 10.4 720 1.2S880 37 960 59c80 22.3 160 22.3 200 22.3h40v49H0v-22.4z"></path></svg></div><div class="gb-shape gb-shape-3"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 218" preserveAspectRatio="none"><path d="M0 218h1200v-31.3l-40 4.4c-40 4.8-120 13.1-200 0-80-13.6-160-48.6-240-66.7-80-17.8-160-17.8-240-8.8-80 8.6-160 26.9-240 8.8-80-17.7-160-71.1-200-97.7L0 0v218z"></path></svg></div><div class="gb-shape gb-shape-4"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 194.3" preserveAspectRatio="none"><path d="M1200 133.3l-50 8.9c-50 8.6-150 26.9-250 31.1-100 4.2-200-4.2-300-26.7S400 89.2 300 62.2C200 35.8 100 17.5 50 8.9L0 0v194.3h1200v-61z"></path></svg>
  23.                 </div>
  24.             </div>
  25.         </div>
  26.     {% endif %}
  27. {% endblock %}
  28. {% block body %}
  29.     <div class="clearfix" style="height:100%;width:100%;"></div>
  30.     <div class="col-md-12">
  31.     {% if app.user == false %}
  32.         <div class="">
  33.                 <h3 class="gb-headline">
  34.                     <span class="gb-icon">
  35.                         <svg class="feather feather-minus" viewBox="0 0 24 24" height="48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path></svg></span><span class="gb-headline-text"><strong>Actualízate</strong>
  36.                     </span>
  37.                 </h3>
  38.                 <p class="text-center has-medium-font-size">Da el paso a la trasformación digital del aprendizaje, aprovecha los recursos interactivos del libro digital para conseguir la atención del alumnado del siglo XXI.</p>
  39.                 <div class="gb-container">
  40.                     <div class="gb-container-box column-shadow">
  41.                         <div class="gb-headline gb-headline-d45ca32d">
  42.                             <span class="gb-icon">
  43.                                 <svg viewBox="0 0 16 16" class="bi bi-cast" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg">   <path d="m7.646 9.354-3.792 3.792a.5.5 0 0 0 .353.854h7.586a.5.5 0 0 0 .354-.854L8.354 9.354a.5.5 0 0 0-.708 0z"></path>   <path d="M11.414 11H14.5a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h3.086l-1 1H1.5A1.5 1.5 0 0 1 0 10.5v-7A1.5 1.5 0 0 1 1.5 2h13A1.5 1.5 0 0 1 16 3.5v7a1.5 1.5 0 0 1-1.5 1.5h-2.086l-1-1z"></path> </svg>
  44.                             </span>
  45.                         </div>
  46.                         <h4 class="gb-headline gb-headline-ea4869ee gb-headline-text">PROYÉCTALO</h4>
  47.                         <p class="text-center">Proyecta todos los contenidos en el aula y mejora la experiencia de  aprendizaje del alumnado.</p>
  48.                         <p></p>
  49.                     </div>
  50.                     <div class="gb-container-box column-shadow">
  51.                         <div class="gb-headline gb-headline-7da7af6b">
  52.                             <span class="gb-icon">
  53.                                 <svg viewBox="0 0 16 16" class="bi bi-play-btn" fill="currentColor" height="16" width="16" xmlns="http://www.w3.org/2000/svg">   <path d="M6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814l-3.5-2.5z"></path>   <path d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm15 0a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z"></path> </svg>
  54.                             </span>
  55.                         </div>
  56.                         <h4 class="gb-headline gb-headline-135abca3 gb-headline-text">VIDEOS</h4>
  57.                         <p class="text-center">Accede a los enlaces de los vídeos directamente. Aprovecha los contenidos que ofrece la red.</p>
  58.                         <p></p>
  59.                     </div>
  60.                     <div class="gb-container-box column-shadow">
  61.                         <div class="gb-headline gb-headline-8d0ff61e">
  62.                             <span class="gb-icon">
  63.                                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-journal-text" viewBox="0 0 16 16">   <path d="M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z"></path>   <path d="M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"></path>   <path d="M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"></path> </svg>
  64.                             </span>
  65.                         </div>
  66.                         <h4 class="gb-headline gb-headline-7a2dc2f2 gb-headline-text">NOTAS</h4>
  67.                         <p class="text-center">Crea tus notas en la plataforma y guárdalas.</p>
  68.                         <p></p>
  69.                     </div>
  70.                 </div>
  71.             </div>
  72.         </div>
  73.     {% else %}
  74.         <h3 class="gb-headline">
  75.             <span class="gb-icon">
  76.                 <svg class="feather feather-minus" viewBox="0 0 24 24" height="48" width="48" xmlns="http://www.w3.org/2000/svg"><path d="M5 12h14"></path></svg></span><span class="gb-headline-text"><strong>Bienvenido a EditorialTuLibro</strong>
  77.             </span>
  78.         </h3>
  79.         <p class="text-center">Busca los libros digitales a los que tienes acceso en el panel de usuario</p>
  80.         <script>
  81.             function mostrarAviso(aviso) {
  82.                 var avisado = sessionStorage.getItem('{{sessionid}}');
  83.                 if (avisado) {
  84.                     return;
  85.                 }
  86.                 // Crear elementos HTML para la ventana modal y su contenido
  87.                 var modal = document.createElement("div");
  88.                 modal.id="modalaviso";
  89.                 modal.style.display = "none";
  90.                 modal.style.position = "fixed";
  91.                 modal.style.top = "0";
  92.                 modal.style.left = "0";
  93.                 modal.style.width = "100%";
  94.                 modal.style.height = "100%";
  95.                 modal.style.backgroundColor = "rgba(0, 0, 0, 0.7)";
  96.                 modal.style.zIndex = "1";
  97.                 var modalContent = document.createElement("div");
  98.                 modalContent.style.backgroundColor = "#fff";
  99.                 modalContent.style.borderRadius = "5px";
  100.                 modalContent.style.textAlign = "center";
  101.                 modalContent.style.padding = "20px";
  102.                 modalContent.style.position = "absolute";
  103.                 modalContent.style.top = "50%";
  104.                 modalContent.style.left = "50%";
  105.                 modalContent.style.transform = "translate(-50%, -50%)";
  106.                 var message = document.createElement("p");
  107.                 message.textContent = aviso;
  108.                 var btnOk = document.createElement("button");
  109.                 btnOk.style.padding = "10px 20px";
  110.                 btnOk.style.backgroundColor = "#007bff";
  111.                 btnOk.style.color = "#fff";
  112.                 btnOk.style.border = "none";
  113.                 btnOk.style.cursor = "pointer";
  114.                 btnOk.textContent = "OK";
  115.                 btnOk.addEventListener("click", cerrarAviso.bind(null, modal));
  116.                 // Agregar elementos al DOM
  117.                 modalContent.appendChild(message);
  118.                 modalContent.appendChild(btnOk);
  119.                 modal.appendChild(modalContent);
  120.                 document.body.appendChild(modal);
  121.                 // Mostrar la ventana modal
  122.                 modal.style.display = "block";
  123.                 sessionStorage.setItem('{{sessionid}}', true);
  124.             }
  125.             mostrarAviso("Recuerda que debes cerrar la sesión desde la opción del panel superior y no desde el aspa. Si cierras desde el aspa y no desde el panel, la sesión se quedará abierta y podría bloquearse.");
  126.             function cerrarAviso(elemento) {
  127.                 document.getElementById('modalaviso').remove();
  128.             }
  129.         </script>
  130.     {% endif %}
  131.     </div>
  132. {% endblock %}