templates/front/home.html.twig line 1

Open in your IDE?
  1. {% extends "index.html.twig" %}
  2. {% block body %}
  3.   <div class="container-fluid p-0 px-lg-4 px-xl-5">
  4.     <!-- BANNER -->
  5.     <div class="row" id="carousel">
  6.       <div id="carouselControls" class="carousel slide px-0" data-bs-interval="false">
  7.         {# <ol class="carousel-indicators">
  8.           <li data-bs-target="#carouselControls" data-bs-slide-to="0" class="active"></li>
  9.           <li data-bs-target="#carouselControls" data-bs-slide-to="1"></li>
  10.           <li data-bs-target="#carouselControls" data-bs-slide-to="2"></li>
  11.           <li data-bs-target="#carouselControls" data-bs-slide-to="3"></li>
  12.         </ol> #}
  13.         <div class="carousel-inner">
  14.           <div class="carousel-item active">
  15.     
  16.             <video class="img-fluid imgBanner d-none d-lg-block" id="video_1" loop muted preload = "none">
  17.               <source src="{{content[0].mediaObject.contentUrl}}" title="Video CUD" type="video/mp4" />
  18.             </video>
  19.             <img class="img-fluid imgBanner d-lg-none" src="{{content[1].mediaObject.contentUrl}}" title="Imagen carousel">
  20.           </div>
  21.           {# <div class="carousel-item">
  22.             <img class="img-fluid imgBanner" src="{{content[2].mediaObject.contentUrl}}">
  23.           </div>
  24.           <div class="carousel-item">
  25.             <img class="img-fluid imgBanner" src="{{content[3].mediaObject.contentUrl}}">
  26.           </div>
  27.           <div class="carousel-item">
  28.             <img class="img-fluid imgBanner" src="{{content[4].mediaObject.contentUrl}}">
  29.           </div> #}
  30.         </div>
  31.       </div>
  32.     </div>
  33.     <!-- DESCRIPCION CUD -->
  34.     <div class="row py-4">
  35.       <div class="col-12 text-center">
  36.         <img class="img-fluid escudoCUD" src="{{content[5].mediaObject.contentUrl}}" alt="Logo CUD">
  37.       </div>
  38.       <div class="col-12 text-center">
  39.         <div class="api-data pt-3 pb-2">{{content[2].content | raw }}</div>
  40.         <div class="api-data"> {{content[3].content | raw}} </div>
  41.         <div class="w-75 m-auto"> 
  42.           <span class="text-danger d-block d-lg-none" id="readMoreTrigger">  Leer Más ...</span>
  43.             
  44.           <div class="d-none d-lg-inline">{{content[4].content | raw}} </div> 
  45.         </div>
  46.       </div>
  47.     </div>
  48.     <!-- APARTADOS -->
  49.     <div class="row section text-white">
  50.       <div class="col-12 col-lg  text-center px-0 position-relative" id="transparencyImg">
  51.         
  52.         <img class=" h-100 w-100 imgSection" src="{{content[6].mediaObject.contentUrl}}" alt="Transparencia">
  53.         <a  href="/indices/indice/transparencia">
  54.           <div class="h-100 w-100 d-flex justify-content-center align-items-center">
  55.             <h2 class="fw-bold text-white">{{content[6].footer}}</h2>
  56.           </div>
  57.         </a>
  58.       </div>
  59.       <div class="col-12 col-lg text-center px-0 position-relative" id="studiesImg">
  60.        <img class=" h-100 w-100 imgSection" src="{{content[7].mediaObject.contentUrl}}" alt="Estudios">
  61.         <a  href="/indices/indice/estudios">
  62.           <div class="h-100 w-100 d-flex justify-content-center align-items-center">
  63.             <h2 class="fw-bold text-white">{{content[7].footer}}</h2>
  64.           </div>
  65.         </a>
  66.       </div>
  67.       <div class="col-12 col-lg text-center px-0 position-relative" id="studentsImg">
  68.         <img class=" h-100 w-100 imgSection" src="{{content[8].mediaObject.contentUrl}}" alt="Alumnos">
  69.         <a  href="/indices/indice/alumnos">
  70.           <div class="h-100 w-100 d-flex justify-content-center align-items-center">
  71.             <h2 class="fw-bold text-white">{{content[8].footer}}</h2>
  72.           </div>
  73.         </a>
  74.       </div>
  75.       <div class="col-12 col-lg text-center px-0 position-relative" id="investigationImg">
  76.         <img class=" h-100 w-100 imgSection" src="{{content[9].mediaObject.contentUrl}}" alt="Investigación">
  77.         <a  href="/indices/indice/investigacion">
  78.           <div class="h-100 w-100 d-flex justify-content-center align-items-center">
  79.             <h2 class="fw-bold text-white">{{content[9].footer}}</h2>
  80.           </div>
  81.         </a>
  82.       </div>
  83.       <div class="col-12 col-lg text-center px-0 position-relative" id="qualityImg">
  84.         <img class=" h-100 w-100 imgSection" src="{{content[10].mediaObject.contentUrl}}" alt="Calidad">
  85.         <a  href="/indices/indice/calidad">
  86.           <div class="h-100 w-100 d-flex justify-content-center align-items-center">
  87.             <h2 class="fw-bold text-white">{{content[10].footer}}</h2>
  88.           </div>
  89.         </a>
  90.       </div>
  91.     </div>
  92.     <!-- TABLON DE ANUNCIOS Y NOTICIAS -->
  93.     <div class="row pt-5">
  94.       <div class="col-12 col-lg-6 text-center">
  95.         <div class="row">
  96.           <div class="col-12 ">
  97.             <div>{{content[11].content | raw}}</div>
  98.             <div class="mb-4">{{content[12].content | raw}}</div>
  99.           </div>
  100.           {% for newsItem in contestAnnouncement %}
  101.         
  102.             <div class="col-12 col-lg-6 text-center">
  103.               <a href="{{ path('app_contest_item_show', {'id': newsItem.id}) }}" class="newsLink">
  104.                 {% for mediaObject in newsItem.mediaObjectNewsItem %}
  105.                   {% if mediaObject.fileKey == 'coverFile' %}
  106.                     <img width="200" src="/media_object_news_item/{{mediaObject.filePath}}"
  107.                       alt="noticia 2">
  108.                   {% endif %}
  109.                 {% endfor %}
  110.               </a>
  111.               <div class="w-90 m-auto">
  112.                 <a  href="{{ path('app_contest_item_show', {'id': newsItem.id}) }}" class="newsLink"> <h4 class="pt-3 m-0 fw-bold text-danger text-ellipsis ">{{newsItem.title}}</h4></a>
  113.                 <p class="mt-2 mb-0 text-muted news-date">Publicado: {{newsItem.publishDate ? newsItem.publishDate|date('d/m/Y'): ''}}</p>
  114.                 <p class="pt-1">
  115.                   {{newsItem.contentResume}}...
  116.                 </p>
  117.               </div>
  118.             </div>
  119.      
  120.           {% endfor %}
  121.           <div class="w-100 justify-content-center mt-3 pb-5 pb-lg-0">
  122.             <a href="{{ path('app_contest_item_index') }}" class=" align-self-end btn btn-danger fw-bold p-3"> VER TODO EL TABLÓN DE ANUNCIOS</a>
  123.           </div>
  124.         </div>
  125.       </div>
  126.       <div class="col-12 col-lg-6 text-center">
  127.         <div class="row h-100">
  128.           <div class="col-12 ">
  129.             <div>{{content[15].content | raw}}</div>
  130.             <div class="mb-4">{{content[16].content | raw}}</div>
  131.           </div>
  132.          
  133.           {% for newsItem in latestNews %}
  134.         
  135.             <div class="col-12 col-lg-6 text-center">
  136.               <a href="{{ path('app_news_item_show', {'id': newsItem.id}) }}" class="newsLink">
  137.                 {% for mediaObject in newsItem.mediaObjectNewsItem %}
  138.                   {% if mediaObject.fileKey == 'coverFile' %}
  139.                     <img width="200" src="/media_object_news_item/{{mediaObject.filePath}}"
  140.                       alt="noticia 2">
  141.                   {% endif %}
  142.                 {% endfor %}
  143.               </a>
  144.               <div class="w-90 m-auto">
  145.                 <a  href="{{ path('app_news_item_show', {'id': newsItem.id}) }}" class="newsLink"> <h4 class="pt-3 m-0 fw-bold text-danger text-ellipsis ">{{newsItem.title}}</h4></a>
  146.                 <p class="mt-2 mb-0 text-muted news-date">Publicado: {{newsItem.publishDate ? newsItem.publishDate|date('d/m/Y'): ''}}</p>
  147.                 <p class="pt-1">
  148.                   {{newsItem.contentResume}}...
  149.                 </p>
  150.               </div>
  151.             </div>
  152.      
  153.           {% endfor %}
  154.           <div class="w-100 justify-content-center mt-3 pb-lg-5 pb-lg-0">
  155.             <a href="{{ path('app_news_item_index') }}" class=" align-self-end btn btn-danger fw-bold p-3"> VER TODAS LAS NOTICIAS</a>
  156.           </div>
  157.         </div>
  158.       </div>
  159.     </div>
  160.     <!-- BIBLIOTECA Y SERVICIO DE PUBLICACIONES -->
  161.     <div class="row library mt-5">
  162.       <div class="col-12 text-center pb-3 pt-5">
  163.         <img class="iconoBiblioteca" src="../assets/recursos-cud/Biblioteca/icono_biblioteca.svg"
  164.           alt="Logo biblioteca">
  165.       </div>
  166.       <div class="col-12 text-center pb-5">
  167.         <div class="fw-bold">{{content[19].content | raw}}</div>
  168.         <div class="py-3 w-75 m-auto">  {{content[20].content | raw}}</div>
  169.         <a href="/indices/indice/biblioteca" class="btn btn-danger fw-bold p-3"> ACCEDER A BIBLIOTECA</a>
  170.       </div>
  171.     </div>
  172.   </div>
  173. {% endblock %}