app/Resources/views/main/home.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block head %}
  3.   {% if app.request.locale == 'fr' %}
  4.     <script src="https://web-chat.trizzy.io/chat-widget.js"></script>
  5.   {% endif %}
  6. {% endblock %}
  7. {% block body %}
  8.     <main id="homePage" class="home-page">
  9.         <div class="home-page__hero">
  10.       {% if app.request.locale == 'es' %}
  11.         <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  12.           <source src="{{ asset('assets/video/efc-cannes-2025-ES.mp4') }}" type="video/mp4">
  13.           Your browser does not support the video tag.
  14.         </video>
  15.         {% elseif app.request.locale == 'it' %}
  16.       <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  17.           <source src="{{ asset('assets/video/efc-cannes-2025-IT.mp4') }}" type="video/mp4">
  18.           Your browser does not support the video tag.
  19.         </video>
  20.       {% elseif app.request.locale == 'pt' %}
  21.       <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  22.           <source src="{{ asset('assets/video/efc-cannes-2025-PT.mp4') }}" type="video/mp4">
  23.           Your browser does not support the video tag.
  24.         </video>
  25.       {% elseif app.request.locale == 'fr' %}
  26.         <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  27.           <source src="{{ asset('assets/video/efc-cannes-2025-FR.mp4') }}" type="video/mp4">
  28.           Your browser does not support the video tag.
  29.         </video>
  30.         {% elseif app.request.locale == 'be' %}
  31.         <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  32.           <source src="{{ asset('assets/video/efc-cannes-2025-BE.mp4') }}" type="video/mp4">
  33.           Your browser does not support the video tag.
  34.         </video>
  35.       {% elseif app.request.locale == 'sl' %}
  36.         <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  37.           <source src="{{ asset('assets/video/berlinale-2025-slo.mp4') }}" type="video/mp4">
  38.           Your browser does not support the video tag.
  39.         </video>
  40.       {% elseif app.request.locale == 'de' %}
  41.         <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  42.           <source src="{{ asset('assets/video/heading-es-it-pt.mp4') }}" type="video/mp4">
  43.           Your browser does not support the video tag.
  44.         </video>
  45.       {% elseif app.request.locale == 'mk' %}
  46.       <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  47.           <source src="{{ asset('assets/video/heading-es-it-pt.mp4') }}" type="video/mp4">
  48.           Your browser does not support the video tag.
  49.         </video>
  50.       {% else %}
  51.         <video class="home-page__video" width="320" height="240" autoplay playsinline muted loop>
  52.           <source src="{{ asset('assets/video/video-header.mp4') }}" type="video/mp4">
  53.           Your browser does not support the video tag.
  54.         </video>
  55.       {% endif %}
  56.             <div class="home-page__hero--container">
  57.         <div class="home-page__hero--info">
  58.           <h1>
  59.             {{ 'home.welcome'|trans|desc('European Film Challenge es una comunidad de jóvenes cinéfilos europeos que quiere vivir el cine desde dentro a través de contenidos exclusivos, recomendaciones reales y acceso a los mejores festivales de cine del mundo.') }}
  60.           </h1>
  61.           <a href="{{ path('app_faq_page') }}" class="global-button">
  62.             {{ 'home.button_info'|trans|desc('More info')}}
  63.           </a>
  64.         </div>
  65.             </div>
  66.         </div>
  67.         <div class="home-page__challenge">
  68.             <h2 class="title-secondary home-page__challenge--title">
  69.                 {{ 'home.challenge_title'|trans|desc('El Reto')}}
  70.             </h2>
  71.             {% if stage_service.isChallengeActive %}
  72.                 <p>
  73.                     {{ 'home.challenge_positive_info'|trans|desc('Los jugadores tienen 10 Semanas para ver 10 Películas Europeas.')}}
  74.                 </p>
  75.                 <a href="{{ path('profile_show') }}" class="global-button">
  76.                     {{ 'home.challenge_cta'|trans|desc('Participar')}}
  77.                 </a>
  78.             {% else %}
  79.                 <p>
  80.                     {{ 'home.challenge_over_info'|trans|desc('El próximo reto estará disponible muy pronto')}}
  81.                 </p>
  82.             {% endif %}
  83.         </div>
  84.     {# {% if app.request.locale == 'es' %}
  85.        <section class="home-page__cinefilo">
  86.        <img class="home-page__cinefilo--image" src="{{ asset('assets/img/home-cinefilo.jpg') }}" alt="">
  87.         <div class="home-page__cinefilo--content">
  88.           <h3 class="title">
  89.             MOVIE LOVER DEL FUTURO
  90.           </h3>
  91.           <h4 class="subtitle">
  92.          Demuestra que eres un verdadero MOVIE LOVER 💖 para viajar con EFC a los mejores festivales y ganar un año de cine.
  93.           </h4>
  94.                     <a href="https://movieloverdelfuturo.es/" target="_blank" class="btn">
  95.             ¡Regístrate y participa!
  96.           </a>
  97.         </div>
  98.        </section>
  99.     {% endif %} #}
  100.         {% if featuredMovies is defined and featuredMovies is not empty%}
  101.             <div class="home-page__films">
  102.                 <div class="size-container">
  103.           <div class="icon-square home-page__films--square">
  104.             {{ source('inline/efc-square-icon.svg.twig') }}
  105.           </div>
  106.                     <div class="home-page__films--info">
  107.                         <h3 class="title-secondary">
  108.                             {{ 'home.films_title'|trans}}
  109.                         </h3>
  110.                         <p>
  111.                             {{ 'home.films_desc'|trans|desc('A collection of hand-picked European films you can enjoy thanks to our highest algorithm: cinema-lovers.')}}
  112.                         </p>
  113.             <a href="{{ path('featured_movie_index') }}" class="global-button">
  114.                             {{ 'home.films_cta'|trans|desc('Ir a películas recomendadas')}}
  115.                         </a>
  116.                     </div>
  117.                     <div class="home-page__films--carousel movies gallery">
  118.                         <div class="movies-list">
  119.                             {% for movie in featuredMovies %}
  120.                 <div class="movie__home">
  121.                    {{ include('featured_movie/_single.html.twig') }}
  122.                 </div>
  123.                             {% endfor %}
  124.                         </div>
  125.                     </div>
  126.                 </div>
  127.             </div>
  128.         {% endif %}
  129.         {% if blogPosts is defined and blogPosts is not empty%}
  130.             <div class="home-page__blog">
  131.                 <div class="size-container">
  132.         <div class="icon-square home-page__blog--square">
  133.                     {{ source('inline/efc-square-icon.svg.twig') }}
  134.                 </div>
  135.                     <div class="home-page__blog--info">
  136.                         <h3 class="title-secondary">
  137.                             {{ 'home.blog_title'|trans|desc('CINEMA LOVERS COMMUNITY')}}
  138.                         </h3>
  139.                         <p>
  140.                             {{ 'home.blog_desc'|trans|desc('Film reviews, events, podcast, challenges and news. A cinema-lovers survival guide with the need-to-knows of European cinema.')}}
  141.                         </p>
  142.             <a href="{{ path('blog_post_index') }}" class="global-button">
  143.                             {{ 'home.blog_cta'|trans|desc('Ir a comunidad')}}
  144.                         </a>
  145.                     </div>
  146.                     <div class="home-page__blog--carousel movies gallery">
  147.                         <div class="posts-list">
  148.                             {% for post in blogPosts %}
  149.                 <div class="layout-post__home">
  150.                                   {{ include('blog_post/_single.html.twig') }}
  151.                 </div>
  152.                             {% endfor %}
  153.                         </div>
  154.                     </div>
  155.                 </div>
  156.             </div>
  157.         {% endif %}
  158.     {% if app.request.locale == 'fr' %}
  159.             <chat-widget token="57aa4470-dbd4-4ef1-9a11-1770bb245f19" show_notification="false"></chat-widget>
  160.         {% endif %}
  161.     </main>
  162. {% endblock %}