module valeurs/equipe

This commit is contained in:
Ouidade Soussi Chiadmi 2021-06-22 10:20:20 +02:00
parent 0a7a10c92d
commit 416d183223
4 changed files with 76 additions and 32 deletions

View File

@ -2980,13 +2980,38 @@ header nav.dropmenu > ul {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 70%; } width: 70%; }
.module { #module {
width: 75%; width: 60%;
margin: auto; margin: auto;
padding-right: 10%; } margin-top: 4rem;
.module .valeurs { margin-bottom: 4rem;
padding-right: 4rem;
display: flex; display: flex;
flexdirection: row; flex-direction: column; }
align-items: baseline; } #module .titre-module {
.module .valeurs .valeur { font-family: "now_alt_bold";
font-weight: 400;
font-size: 1.5rem;
line-height: 2rem;
padding-bottom: 2rem;
text-align: center;
color: #0093a3; }
#module .valeurs {
display: flex;
flex-direction: row; }
#module .valeurs .valeur {
width: 33%;
display: flex;
flex-direction: column;
padding: 10px; } padding: 10px; }
#module .valeurs .valeur .images_v {
width: 100%;
max-height: 10rem;
overflow: hidden; }
#module .valeurs .valeur .images_v img {
padding-bottom: 20px; }
#module .valeurs .valeur h5 {
padding-top: 20px;
padding-bottom: 5px;
font-family: "bold";
font-size: 1.3rem; }

View File

@ -1595,26 +1595,47 @@
width: 70%; width: 70%;
} }
} }
.titre-module{
}
.module {
width: 75%; #module{
width: 60%;
margin: auto; margin: auto;
padding-right: 10%; margin-top: 4rem;
margin-bottom: 4rem;
padding-right: 4rem;
display: flex;
flex-direction: column;
.titre-module{
font-family: "now_alt_bold";
font-weight: 400;
font-size: 1.5rem;
line-height: 2rem;
padding-bottom: 2rem;
text-align: center;
color: #0093a3;
}
.valeurs{ .valeurs{
display: flex; display: flex;
flexdirection: row; flex-direction: row;
align-items: baseline;
.valeur{ .valeur{
// display: flex; width:33%;
// flexdirection: column; display: flex;
// align-items: baseline; flex-direction: column;
padding: 10px; padding: 10px;
.images_v{
width:100%;
max-height: 10rem;
overflow: hidden;
img{
padding-bottom: 20px;
}
}
h5{
padding-top: 20px;
padding-bottom: 5px;
font-family: "bold";
font-size: 1.3rem;
}
} }
} }
} }

View File

@ -2,7 +2,7 @@
{% for module in page.collection() %} {% for module in page.collection() %}
<div id="{{ _self.pageLinkName(module.menu) }}"> <div id="module{{ _self.pageLinkName(module.menu) }}">
{{ module.content|raw }} {{ module.content|raw }}
</div> </div>

View File

@ -8,13 +8,12 @@
{% for valeur in page.header.valeurs %} {% for valeur in page.header.valeurs %}
<div class="valeur"> <div class="valeur">
<div class="images_v">
<!-- <div class="photo"> -->
{% if valeur.image %} {% if valeur.image %}
<img src="{{page.media[valeur.image].url|e }}" alt="photo de {{valeur.titre}}" /> <img src="{{page.media[valeur.image].url|e }}" alt="photo de {{valeur.titre}}" />
{% endif %} {% endif %}
<!-- </div> </div>
<div class="title"> -->
{% if valeur.titre %} {% if valeur.titre %}
<h5>{{ valeur.titre }}</h5> <h5>{{ valeur.titre }}</h5>
{% endif %} {% endif %}
@ -22,8 +21,7 @@
{% if valeur.texte %} {% if valeur.texte %}
<p>{{ valeur.texte|markdown }} </p> <p>{{ valeur.texte|markdown }} </p>
{% endif %} {% endif %}
<!--
</div> -->
</div> </div>