fix(style): fix missposition cards

This commit is contained in:
Romain J 2021-08-01 18:03:12 +02:00
parent 322ab9fa53
commit 02036a02dd
2 changed files with 12 additions and 14 deletions

View file

@ -5,11 +5,9 @@
{% block content %}
<div class="uk-flex uk-flex-middle">
<div class="uk-container uk-flex-auto uk-position-relative uk-margin-medium-top">
<div class="uk-width-1">
<h1 class="uk-margin-remove-bottom uk-text-bold">{% trans 'À propos' %}</h1>
</div>
<h1 class="uk-margin-remove-bottom uk-text-bold">{% trans 'À propos' %}</h1>
<div class="uk-width-1 uk-margin">
<div class="uk-margin">
{% blocktrans %}
<p>GnousEU est une communauté de passionnés du libre ayant débuté en février 2017 sur la plateforme Discord.
Depuis elle s'est diversifiée sur plusieurs plateformes hébergées par elle-même en favorisant les instances décentralisées.
@ -28,24 +26,23 @@ mais aussi par <code><a href="https://git.gnous.eu/Romain">Romain J.</a></code>,
<hr class="uk-margin-large">
<div class="uk-width-1">
<h2 class="uk-margin-remove-bottom uk-text-bold uk-text-center">{% trans 'Partenaires' %}</h2>
</div>
<h2 class="uk-margin-remove-bottom uk-text-bold uk-text-center">{% trans 'Partenaires' %}</h2>
<div class="uk-width-1 uk-margin">
<div class="uk-margin">
{% if partners|length >= 1 %}
<div class="uk-grid uk-grid-margin-medium uk-child-width-1-3@m">
{% for partner in partners %}
<div class="uk-padding">
<div class="uk-margin-bottom">
<div class="uk-card uk-card-secondary">
<div class="uk-card-media-top">
<img class="uk-align-center" src="{{ partner.photo.url }}" loading="lazy" alt="{{ partner.name }}">
</div>
<div class="uk-card-body">
<h3 class="uk-card-title">
<h3 class="uk-card-title uk-margin-remove-bottom">
{{ partner.name }}
<code>{{ partner.domain }}</code>
</h3>
<code>{{ partner.domain }}</code>
<p>{% get_current_language as LANGUAGE_CODE %}{% if LANGUAGE_CODE == 'en' and partner.description_en != None %}{{ partner.description_en }}{% else %}{{ partner.description }}{% endif %}</p>
<a href="https://{{ partner.domain }}" class="uk-text-large">{% trans "Voir" %}</a>
</div>

View file

@ -26,7 +26,7 @@
{% if services|length >= 1 %}
<div class="uk-grid uk-grid-margin-medium uk-child-width-1-3@m">
{% for service in services %}
<div class="uk-padding">
<div class="uk-margin-bottom">
<div class="uk-card uk-card-secondary">
<div class="uk-card-media-top">
<a href="https://{{ service.domain }}" target="_blank">
@ -34,10 +34,11 @@
</a>
</div>
<div class="uk-card-body">
<h3 class="uk-card-title">
<h3 class="uk-card-title uk-margin-remove-bottom">
<a href="https://{{ service.domain }}"target="_blank">{{ service.name }}</a>
<code>{{ service.domain }}</code>
</h3>
<code>{{ service.domain }}</code>
<p>{% get_current_language as LANGUAGE_CODE %}{% if LANGUAGE_CODE == 'en' and service.description_en != None %}{{ service.description_en }}{% else %}{{ service.description }}{% endif %}</p>
<a href="https://{{ service.domain }}" class="uk-text-large" target="_blank">{% trans "Rejoindre !" %}</a>
</div>