templates/page/about_us/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layout/base.html.twig' %}
  2. {% block title %}About Us – {{ parent() }}{% endblock %}
  3. {% block seo_en %}{{ url('about_us_index') }}{% endblock %}
  4. {% block seo_hu %}{{ url('about_us_index', {'lang': 'hu'}) }}{% endblock %}
  5. {% block seo_x %}{{ url('about_us_index') }}{% endblock %}
  6. {% block body_classes %}about-us-index{% endblock %}
  7. {% block content %}
  8.     {% include 'page/about_us/components/banner.html.twig' %}
  9.     <div class="about-us-page" id="about-us">
  10.         {% include 'page/about_us/components/page_text.html.twig' %}
  11.         {% include 'page/about_us/components/timeline.html.twig' %}
  12.     </div>
  13.     {% include 'common/components/contact_form.html.twig' with { defaultInquiry: true } only %}
  14.     <script>
  15.         const players = document.querySelectorAll('lottie-player');
  16.         for(const player of players){
  17.             const observer = new IntersectionObserver((entries) => {
  18.                 if(entries[0].intersectionRatio > 0){
  19.                     player.play();
  20.                 }
  21.             }, {
  22.                 root: null,
  23.                 rootMargin: '0px',
  24.                 threshold: 1.0
  25.             });
  26.             observer.observe(player);
  27.         }
  28.     </script>
  29. {% endblock %}