Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Les remerciements sont égaux, peu importe le montant donné. #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pages/fr/remerciements.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@ <h1>Celles et ceux qui ont aidé Sud Web 2019</h1>
<div class="wrapper">
<h2>Nos donateurs</h2>
<div class="thanks-grid" style="grid-template-columns: repeat({{ total | divided_by: 24 }}, 1fr);">
{% assign min = 1 %}
{% assign max = 16 %}
{% assign diff = max | minus: min %}
{% assign min = 1 %}
{% assign max = 16 %}
{% assign diff = max | minus: min %}

{% for mecene in site.data.mecenes %}
{% assign value = mecene.value | strip | remove: "&nbsp;" | plus: 0 %}
{% assign randomNumber = "now" | date: "%N" | modulo: diff | plus: min %}
{% assign width = value | divided_by: 30 | floor | plus: 1 %}
{% assign width = 2 %}
<div class="thanks-grid__bloc-{{ width }}" style="grid-area: auto / auto / span {{ width | divided_by: 10 | plus: 1 }} / span {{ width }};">
<a class="logo" title="{{ mecene.forname }} {{ mecene.lastname }}" href="{{ "/financer/#crowdfounding" | relative_url }}">
<img data-src="/2019/assets/images/merci/{% if mecene.image %}{{ mecene.image }}{% else %}anonymous/{{ randomNumber }}.svg{% endif %}" class="lozad" />
<span class="sr-only" tyle="font-size: {{ width | divided_by: 5 | plus: 1 }}vw;">{{ mecene.forname }} {{ mecene.lastname }}</span>
<span class="sr-only" tyle="font-size: {{ width | divided_by: 5 | plus: 1 }}vw;">{{ mecene.forname }} {{ mecene.lastname }} a donné {{ value }}€</span>
</a>
</div>
{% endfor %}
Expand Down