{% 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>Tutoriais em vídeo</span>',
        banner_text: '<span>Bem-vindo(a) à seção de tutoriais em vídeo da Pipedrive, onde você encontrará recursos de treinamento em vídeo e CRM para ajudar seu negócio a crescer com nosso software de CRM.</span>',
        banner_button_text: '<span>Inscreva-se nos 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: "br"  %}
      {% 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 de graça</span>',
          banner_text: "",
          banner_button_text: '<span>Cadastre-se</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 %}
  