add progression system
This commit is contained in:
parent
6c26735680
commit
d3d1672b2f
3 changed files with 53 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ img {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--accent-yellow);
|
color: black;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
41
css/home.css
41
css/home.css
|
|
@ -15,4 +15,43 @@
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Barre de progression */
|
||||||
|
|
||||||
|
.progression {
|
||||||
|
animation: 3s loadbar;
|
||||||
|
width:auto;
|
||||||
|
background-color: white;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.7em 0.5em 0.5em 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes loadbar {
|
||||||
|
0% { width:0%; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar {
|
||||||
|
width : 50%;
|
||||||
|
margin : auto;
|
||||||
|
border : 2px solid white;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.progression > span {
|
||||||
|
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
font-family: MonTrappist;
|
||||||
|
font-size : 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lessthanhalf span {
|
||||||
|
padding-left: 100%;
|
||||||
|
color: white;
|
||||||
|
padding-left: calc(100% + 1em);
|
||||||
|
}
|
||||||
|
|
||||||
|
.morethanhalf {
|
||||||
|
text-align : end;
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
|
||||||
14
index.html
14
index.html
|
|
@ -80,8 +80,18 @@
|
||||||
Seule exigence, respecter toutes les marginalités, originalités, bizarreries et normaleries de
|
Seule exigence, respecter toutes les marginalités, originalités, bizarreries et normaleries de
|
||||||
chacun·es.</p>
|
chacun·es.</p>
|
||||||
</section>
|
</section>
|
||||||
|
<h3>
|
||||||
|
<span>Où en est-on ?</span>
|
||||||
|
</h3>
|
||||||
|
<section>
|
||||||
|
<p>Il y a</p>
|
||||||
|
<div class="places"><span class="bar"><span style="width:25%" class="progression lessthanhalf"><span>50/200</span></span></span></div>
|
||||||
|
<p>places déjà réservées</p>
|
||||||
|
<br>
|
||||||
|
<p>Et nous avons reçu</p>
|
||||||
|
<div class="places"><span class="bar"><span style="width:52.45%" class="progression morethanhalf"><span>52,45%</span></span></span></div>
|
||||||
|
<p>des dons dont nous avons besoin (voir le détail des comptes)</p>
|
||||||
|
</section>
|
||||||
<h3>
|
<h3>
|
||||||
<span>Iels y participent</span>
|
<span>Iels y participent</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue