Amélioration mise en page à venir

This commit is contained in:
Jean-Marie Favreau 2024-10-18 18:57:33 +02:00
parent 727f505307
commit 7a46bf4733
2 changed files with 18 additions and 7 deletions

View File

@ -390,6 +390,15 @@ article.day>ul {
.right {
text-align: right;
}
.description {
padding: 0;
position: relative;
}
.right.bottom {
position: absolute;
bottom: 0.5em;
right: 0;
}
header .title {
text-align: center;

View File

@ -69,19 +69,21 @@
<div class="description">
<div>
<p>{{ event.description |linebreaks2 | truncatewords:60 }}</p>
<div class="right">
<a href="{{ event.get_absolute_url }}">Voir l'événement <svg width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
</div>
<div class="right bottom">
<a role="button" href="{{ event.get_absolute_url }}">Voir l'événement <svg width="1em" height="1em" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<use href="{% static 'images/feather-sprite.svg' %}#chevron-right" />
</svg></a>
</div>
</div>
</div>
<article class='illustration'>
{% if event.image or event.local_image %}
<img src="{% if event.local_image %}{{ event.local_image.url }}{% else %}{{ event.image }}{% endif %}" alt="{{ event.image_alt }}" />
{% if event.image or event.local_image %}
<div>
<article class='illustration'>
<img src="{% if event.local_image %}{{ event.local_image.url }}{% else %}{{ event.image }}{% endif %}" alt="{{ event.image_alt }}" />
</article>
</div>
{% endif %}
</article>
</article>