{% extends "index.html.twig" %}
{% block body %}
<div class="container-fluid p-0 px-lg-4 px-xl-5">
<!-- BANNER -->
<div class="row" id="carousel">
<div id="carouselControls" class="carousel slide px-0" data-bs-interval="false">
{# <ol class="carousel-indicators">
<li data-bs-target="#carouselControls" data-bs-slide-to="0" class="active"></li>
<li data-bs-target="#carouselControls" data-bs-slide-to="1"></li>
<li data-bs-target="#carouselControls" data-bs-slide-to="2"></li>
<li data-bs-target="#carouselControls" data-bs-slide-to="3"></li>
</ol> #}
<div class="carousel-inner">
<div class="carousel-item active">
<video class="img-fluid imgBanner d-none d-lg-block" id="video_1" loop muted preload = "none">
<source src="{{content[0].mediaObject.contentUrl}}" title="Video CUD" type="video/mp4" />
</video>
<img class="img-fluid imgBanner d-lg-none" src="{{content[1].mediaObject.contentUrl}}" title="Imagen carousel">
</div>
{# <div class="carousel-item">
<img class="img-fluid imgBanner" src="{{content[2].mediaObject.contentUrl}}">
</div>
<div class="carousel-item">
<img class="img-fluid imgBanner" src="{{content[3].mediaObject.contentUrl}}">
</div>
<div class="carousel-item">
<img class="img-fluid imgBanner" src="{{content[4].mediaObject.contentUrl}}">
</div> #}
</div>
</div>
</div>
<!-- DESCRIPCION CUD -->
<div class="row py-4">
<div class="col-12 text-center">
<img class="img-fluid escudoCUD" src="{{content[5].mediaObject.contentUrl}}" alt="Logo CUD">
</div>
<div class="col-12 text-center">
<div class="api-data pt-3 pb-2">{{content[2].content | raw }}</div>
<div class="api-data"> {{content[3].content | raw}} </div>
<div class="w-75 m-auto">
<span class="text-danger d-block d-lg-none" id="readMoreTrigger"> Leer Más ...</span>
<div class="d-none d-lg-inline">{{content[4].content | raw}} </div>
</div>
</div>
</div>
<!-- APARTADOS -->
<div class="row section text-white">
<div class="col-12 col-lg text-center px-0 position-relative" id="transparencyImg">
<img class=" h-100 w-100 imgSection" src="{{content[6].mediaObject.contentUrl}}" alt="Transparencia">
<a href="/indices/indice/transparencia">
<div class="h-100 w-100 d-flex justify-content-center align-items-center">
<h2 class="fw-bold text-white">{{content[6].footer}}</h2>
</div>
</a>
</div>
<div class="col-12 col-lg text-center px-0 position-relative" id="studiesImg">
<img class=" h-100 w-100 imgSection" src="{{content[7].mediaObject.contentUrl}}" alt="Estudios">
<a href="/indices/indice/estudios">
<div class="h-100 w-100 d-flex justify-content-center align-items-center">
<h2 class="fw-bold text-white">{{content[7].footer}}</h2>
</div>
</a>
</div>
<div class="col-12 col-lg text-center px-0 position-relative" id="studentsImg">
<img class=" h-100 w-100 imgSection" src="{{content[8].mediaObject.contentUrl}}" alt="Alumnos">
<a href="/indices/indice/alumnos">
<div class="h-100 w-100 d-flex justify-content-center align-items-center">
<h2 class="fw-bold text-white">{{content[8].footer}}</h2>
</div>
</a>
</div>
<div class="col-12 col-lg text-center px-0 position-relative" id="investigationImg">
<img class=" h-100 w-100 imgSection" src="{{content[9].mediaObject.contentUrl}}" alt="Investigación">
<a href="/indices/indice/investigacion">
<div class="h-100 w-100 d-flex justify-content-center align-items-center">
<h2 class="fw-bold text-white">{{content[9].footer}}</h2>
</div>
</a>
</div>
<div class="col-12 col-lg text-center px-0 position-relative" id="qualityImg">
<img class=" h-100 w-100 imgSection" src="{{content[10].mediaObject.contentUrl}}" alt="Calidad">
<a href="/indices/indice/calidad">
<div class="h-100 w-100 d-flex justify-content-center align-items-center">
<h2 class="fw-bold text-white">{{content[10].footer}}</h2>
</div>
</a>
</div>
</div>
<!-- TABLON DE ANUNCIOS Y NOTICIAS -->
<div class="row pt-5">
<div class="col-12 col-lg-6 text-center">
<div class="row">
<div class="col-12 ">
<div>{{content[11].content | raw}}</div>
<div class="mb-4">{{content[12].content | raw}}</div>
</div>
{% for newsItem in contestAnnouncement %}
<div class="col-12 col-lg-6 text-center">
<a href="{{ path('app_contest_item_show', {'id': newsItem.id}) }}" class="newsLink">
{% for mediaObject in newsItem.mediaObjectNewsItem %}
{% if mediaObject.fileKey == 'coverFile' %}
<img width="200" src="/media_object_news_item/{{mediaObject.filePath}}"
alt="noticia 2">
{% endif %}
{% endfor %}
</a>
<div class="w-90 m-auto">
<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>
<p class="mt-2 mb-0 text-muted news-date">Publicado: {{newsItem.publishDate ? newsItem.publishDate|date('d/m/Y'): ''}}</p>
<p class="pt-1">
{{newsItem.contentResume}}...
</p>
</div>
</div>
{% endfor %}
<div class="w-100 justify-content-center mt-3 pb-5 pb-lg-0">
<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>
</div>
</div>
</div>
<div class="col-12 col-lg-6 text-center">
<div class="row h-100">
<div class="col-12 ">
<div>{{content[15].content | raw}}</div>
<div class="mb-4">{{content[16].content | raw}}</div>
</div>
{% for newsItem in latestNews %}
<div class="col-12 col-lg-6 text-center">
<a href="{{ path('app_news_item_show', {'id': newsItem.id}) }}" class="newsLink">
{% for mediaObject in newsItem.mediaObjectNewsItem %}
{% if mediaObject.fileKey == 'coverFile' %}
<img width="200" src="/media_object_news_item/{{mediaObject.filePath}}"
alt="noticia 2">
{% endif %}
{% endfor %}
</a>
<div class="w-90 m-auto">
<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>
<p class="mt-2 mb-0 text-muted news-date">Publicado: {{newsItem.publishDate ? newsItem.publishDate|date('d/m/Y'): ''}}</p>
<p class="pt-1">
{{newsItem.contentResume}}...
</p>
</div>
</div>
{% endfor %}
<div class="w-100 justify-content-center mt-3 pb-lg-5 pb-lg-0">
<a href="{{ path('app_news_item_index') }}" class=" align-self-end btn btn-danger fw-bold p-3"> VER TODAS LAS NOTICIAS</a>
</div>
</div>
</div>
</div>
<!-- BIBLIOTECA Y SERVICIO DE PUBLICACIONES -->
<div class="row library mt-5">
<div class="col-12 text-center pb-3 pt-5">
<img class="iconoBiblioteca" src="../assets/recursos-cud/Biblioteca/icono_biblioteca.svg"
alt="Logo biblioteca">
</div>
<div class="col-12 text-center pb-5">
<div class="fw-bold">{{content[19].content | raw}}</div>
<div class="py-3 w-75 m-auto"> {{content[20].content | raw}}</div>
<a href="/indices/indice/biblioteca" class="btn btn-danger fw-bold p-3"> ACCEDER A BIBLIOTECA</a>
</div>
</div>
</div>
{% endblock %}