{% 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>Video-Tutorials</span>',
        banner_text: '<span>Willkommen im Video-Tutorial-Bereich von Pipedrive. Hier finden Sie Videos und andere CRM-Schulungsressourcen, die Ihr Unternehmen beim Wachstum mit unserer CRM-Software unterstützen.</span>',
        banner_button_text: '<span>Für Kurse anmelden</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: "de"  %}
      {% 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>Videos kostenlos freischalten</span>',
          banner_text: "",
          banner_button_text: '<span>Anmelden</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 %}
  