feat: improve members section responsiveness

This commit is contained in:
Corentin 2024-05-22 22:03:08 +02:00
parent efd93dc736
commit 2585f9cab2
2 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{% macro comrade(name, title, alt, avatar) %}
<div class="comrade">
<img src="{{ avatar }}" alt-text="{{ alt }}" title="{{ title }}"></img>
<img class="comrade--picture" src="{{ avatar }}" alt-text="{{ alt }}" title="{{ title }}"></img>
<h4 aria-hidden="True">{{ name }}</h4>
</div>
{% endmacro %}
@ -52,7 +52,7 @@
where small is mighty, and fun knows no bounds!
{% endtrans %}
</p>
<h2>{{ gettext("The team") }}</h2>
<h2 class="comrades--title">{{ gettext("The team") }}</h2>
<div class="comrades">
{{ comrade(
"Aurel",

View File

@ -7,8 +7,10 @@
display: flex;
justify-content: center;
gap: var(--space-medium);
@media ($mobile-breakpoint) {
flex-direction: column;
flex-wrap: wrap;
&--title {
text-align: center;
}
}
@ -16,6 +18,12 @@
display: flex;
flex-direction: column;
align-items: center;
&--picture {
@media($mobile-breakpoint) {
max-width: 120px;
}
}
}