{% comment %} skip-auth {% endcomment %}
{% if current_person.signed_in? == false and current_school.sso_active? == false %}
    <script> window.location.replace('/learners/sign_in')</script>
  {% else %}
    {% include "header" %}
    
    <main class="video-tutorials">
      {% include "green_banner_image",
        banner_title: '<span>Tutoriales en vídeo</span>',
        banner_text: '<span>Bienvenido a la sección de tutoriales en vídeo de Pipedrive, donde encontrarás recursos de formación en vídeo y CRM para ayudar a tu empresa a crecer con nuestro software CRM.</span>',
        banner_button_text: '<span>Inscríbete en los cursos</span>',
        banner_button_link: "#sso-widget",
        banner_image_url: "https://s3.amazonaws.com/static.northpass.com/pipedrive/homepage-card-webinars.webp"
      %}
      
      {% include "video_tutorials_courses", lang: "es"  %}
      {% include "video_tutorials_page_info" %}
      {% include 'opinions' %}
      {% include 'video_tutorials_faq' %}
      
      {% unless current_person.signed_in? %}
        {% include "green_banner_text_bg_image",
          banner_title: '<span>Desbloquear vídeos gratis</span>',
          banner_text: "",
          banner_button_text: '<span>Regístrate</span>',
          banner_button_link: "#sso-widget"
        %}
      {% endunless %}
      </main>
    
    {% include "footer" %}
  {% endif %}
  
  {% if current_person.signed_in? == false and current_school.sso_active? %}
    <script>
      const redirectionLink = 'https://user-learn.pipedrive.com/app/video-tutorials'
      document.querySelector('#redirect-between-academies').setAttribute('href', redirectionLink)
    </script>
  {% endif %}
  