Skip to content

Commit

Permalink
new structure in sections
Browse files Browse the repository at this point in the history
  • Loading branch information
aidamonfort committed May 19, 2023
1 parent 15efbf4 commit cb31e55
Show file tree
Hide file tree
Showing 20 changed files with 2,270 additions and 329 deletions.
4 changes: 2 additions & 2 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ <h1>

<!-- <li><a href="symptoms-platform.html">Platform</a></li> -->
<span class="menu-lang">
<li class="item-lang lang-disabled"><a href="index.html">EN</a></li>
<li class="item-lang lang"><a href="es/index.html">ES</a> </li>
<li class="item-lang lang-disabled"><a href="about.html">EN</a></li>
<li class="item-lang lang"><a href="es/about.html">ES</a> </li>
</span>
</ul>
</nav>
Expand Down
9 changes: 9 additions & 0 deletions assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,12 @@ p {
margin: 0 !important;
}

.hide {
display: none;
/* Hide all elements by default */
}

/* The "show" class is added to the filtered elements */
.show {
display: block;
}
4 changes: 2 additions & 2 deletions blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ <h1>

<!-- <li><a href="symptoms-platform.html">Platform</a></li> -->
<span class="menu-lang">
<li class="item-lang lang-disabled"><a href="index.html">EN</a></li>
<li class="item-lang lang"><a href="es/index.html">ES</a> </li>
<li class="item-lang lang-disabled"><a href="blog.html">EN</a></li>
<li class="item-lang lang"><a href="es/blog.html">ES</a> </li>
</span>
</ul>
</nav>
Expand Down
137 changes: 83 additions & 54 deletions es/about.html

Large diffs are not rendered by default.

330 changes: 330 additions & 0 deletions es/about_OLD.html

Large diffs are not rendered by default.

97 changes: 49 additions & 48 deletions es/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
'<div class="text-small">' + p.excerpt.rendered + '</div>' +
'<ul class="meta">' +
'<li class="icon fa-clock">' + d.toDateString() + '</li>' +
'<li class="icon fa-link"></li>' +
'</ul>' +
'</article>' +
'</a> </li>';
Expand All @@ -70,28 +69,29 @@
'<ul class="meta">' +
'<li class="icon fa-clock">' + d.toDateString() + '</li>' +
'<li class="icon fa-comments">';
;

p._embedded['wp:term'][1].forEach(tag => {
posts_html = posts_html + tag.name + '; ';
})

let post_image = p._embedded['wp:featuredmedia'][0];
let title_image = p._embedded['wp:featuredmedia'][0].title ? p._embedded['wp:featuredmedia'][0].title.rendered : '';

if (p.imgurl && post_image.title) {
if (p.imgurl) {

posts_html = posts_html + '</li>' +
'<li class="icon fa-link"> <a href="' + p.link + '" target= "_blank"> Ver post original</a></li>' +
'<li class="icon fa-link"> <a href="' + p.link + '" target= "_blank"> See original post</a></li>' +
'</ul>' +
'</header>' +
'' +
'<section>' +
'<span class="image featured"><img src="' + p.imgurl + '" alt="' + post_image.title.rendered + '" /></span>' +
'<span class="image featured"><img src="' + p.imgurl + '" alt="' + title_image + '" /></span>' +
'<p>' + p.content.rendered + '</p>' +
'</section> </div>';

more_posts = more_posts + '<div class="col-3 col-6-medium col-12-small">' +
'<section class="box feature">' +
'<span class="image featured"><img src="' + p.imgurl + '" /></span>' +
'<span class="image featured"><img src="' + p.imgurl + '" alt="' + title_image + '" /></span>' +
'<h3><a href="#" onclick="displayPost(' + p.id + ')">' + p.title.rendered + '</a></h3>' +
'<p>' + p.excerpt.rendered + '</p>' +
'</section>' +
Expand Down Expand Up @@ -170,15 +170,19 @@ <h1>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="index.html">Inicio</a></li>
<li>
<a href="symptoms-platform.html">Platforma</a>
</li>
<li><a href="about.html">Sobre nosotros</a></li>
<li class="current"><a href="blog.html">Blog</a></li>

<li class="lang"><a href="../blog.html">EN</a></li>
<li class="lang-disabled"><a href="../es/blog.html">ES</a></li>
<li><a href="index.html">Inicio</a></li>
<li><a href="research-lines.html">Lineas de investigación</a></li>
<li><a href="use-cases.html">Casos de Uso</a></li>
<li><a href="tools.html">Herramientas</a></li>
<li><a href="publications.html">Publicaciones</a></li>
<li class="current"><a href="blog.html">Blog</a></li>
<li><a href="about.html">Sobre nosotros</a></li>

<!-- <li><a href="symptoms-platform.html">Platform</a></li> -->
<span class="menu-lang">
<li class="item-lang lang"><a href="../blog.html">EN</a></li>
<li class="item-lang lang-disabled"><a href="blog.html">ES</a> </li>
</span>
</ul>
</nav>

Expand All @@ -193,10 +197,10 @@ <h1>

<!-- Recent Posts -->
<section>
<h2 class="major"><span>Recent Posts</span></h2>
<h2 class="major"><span>Posts Recientes</span></h2>
<ul class="divided" id="posts-summary">
</ul>
<a href="#" class="button alt">Archives</a>
<a href="#" class="button alt">Archivo</a>
</section>

</div>
Expand Down Expand Up @@ -249,43 +253,40 @@ <h2 class="major"><span>See more Symptoms posts</span></h2>
y financiado por el Ministerio de Ciencia, Innovación y Universidades.
</p>
</section>
</div>
<div class="col-12">
<!-- Contact -->
<section>
<h2 class="major"><span>Contacto</span></h2>
<ul class="contact">
<li>
<a class="icon brands fa-facebook-f" href="#"><span
class="label">Facebook</span></a>
</li>
<li>
<a class="icon brands fa-twitter" target="_blank"
href="https://twitter.com/geotecUJI"><span class="label">Twitter</span></a>
</li>
<li>
<a class="icon brands fa-instagram" href="#"><span
class="label">Instagram</span></a>
</li>
<li>
<a class="icon brands fa-dribbble" target="_blank"
href="http://geotec.uji.es/projects/symptoms/"><span
class="label">Dribbble</span></a>
</li>
<li>
<a class="icon brands fa-linkedin-in" target="_blank"
href="https://www.linkedin.com/company/geotec-geospatial-technologies-research-group---universitat-jaume-i/about/"><span
class="label">LinkedIn</span></a>
</li>
</ul>
</section>
</div>
<div class="col-12">
<!-- Contact -->
<section>
<h2 class="major"><span>Contacto</span></h2>
<ul class="contact">
<li>
<a class="icon brands fa-facebook-f" href="#"><span class="label">Facebook</span></a>
</li>
<li>
<a class="icon brands fa-twitter" target="_blank" href="https://twitter.com/geotecUJI"><span
class="label">Twitter</span></a>
</li>
<li>
<a class="icon brands fa-instagram" href="#"><span class="label">Instagram</span></a>
</li>
<li>
<a class="icon brands fa-dribbble" target="_blank" href="http://geotec.uji.es/projects/symptoms/"><span
class="label">Dribbble</span></a>
</li>
<li>
<a class="icon brands fa-linkedin-in" target="_blank"
href="https://www.linkedin.com/company/geotec-geospatial-technologies-research-group---universitat-jaume-i/about/"><span
class="label">LinkedIn</span></a>
</li>
</ul>
</section>
</div>
</div>

<!-- Copyright -->
<div id="copyright">
<ul class="menu">
<li>&copy; SyMptOMS. All rights reserved</li>
<li>&copy; Untitled. All rights reserved</li>
<li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</div>
Expand Down
Loading

0 comments on commit cb31e55

Please sign in to comment.