Skip to content

Commit 9d37ace

Browse files
authored
Merge pull request #23 from python-la-paz/feature/3-past-events-footer
Feature/3 past events footer
2 parents 8af389b + 348cda6 commit 9d37ace

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

home/templates/home/home_page.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,29 @@ <h2 class="subscribe-title" style="color: var(--footer-text);">{{page.footer_tit
236236
<div class="footer-logo">
237237
<img src="{{ tmp_logo.url }}" alt="{{ tmp_logo.alt }}">
238238
</div>
239+
<div class ="mb-5 row justify-content-center">
240+
<div class="past-events text-start mb-3">
241+
<div class="subscribe-inner" style="padding: 16px;">
242+
<h2 class="subscribe-title" style="color: var(--footer-text); margin-bottom:10px;">Eventos pasados</h2>
243+
</div>
244+
{% for sibling in page.get_siblings %}
245+
{% if sibling.title and sibling.live and sibling.get_parent.content_type == page.content_type %}
246+
<a class="nav-link" href="{{ sibling.get_url }}"
247+
target="_blank" style="color: {{ page.navbar_links_color }} !important;">
248+
{{ sibling.title }}
249+
</a>
250+
{% endif %}
251+
{% endfor %}
252+
{% for descendant in page.get_descendants %}
253+
{% if descendant.live and descendant.content_type == page.content_type %}
254+
<a class="nav-link" href="{{ descendant.get_url }}"
255+
target="_blank" style="color: {{ page.navbar_links_color }} !important;">
256+
{{ descendant.title }}
257+
</a>
258+
{% endif %}
259+
{% endfor %}
260+
</div>
261+
</div>
239262
<div class="social-icons-footer">
240263
<ul>
241264
{% for social in page.footer_networks %}

website/static/2023/css/main.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2535,4 +2535,10 @@ footer {
25352535
margin-left: auto;
25362536
padding: revert;
25372537
list-style: decimal !important;
2538-
}
2538+
}
2539+
2540+
.past-events {
2541+
display: flex;
2542+
flex-direction: column;
2543+
align-items: flex-start; /* Alineación a la izquierda */
2544+
}

0 commit comments

Comments
 (0)