{% 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>Tutoriels vidéo</span>',
        banner_text: '<span>Bienvenue dans la section des tutoriels vidéo de Pipedrive, où vous trouverez des vidéos et des ressources de formation CRM pour aider votre entreprise à se développer avec notre logiciel CRM.</span>',
        banner_button_text: '<span>S&#39;inscrire à des cours</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: "fr"  %}
      {% 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>Débloquez des vidéos gratuitement</span>',
          banner_text: "",
          banner_button_text: '<span>S&#39;inscrire</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 %}
  