Replace <ul> by <dl> on landing pages

This commit is contained in:
Corinne Durrmeyer 2024-06-20 15:36:11 +02:00
parent 900d17d269
commit 229c48de7b
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6
3 changed files with 21 additions and 20 deletions

View file

@ -152,6 +152,7 @@ $landing-breakpoint: 1040px;
.number-label {
max-width: 10rem;
margin: auto;
padding-inline-start: 0;
font-weight: 600;
font-size: 1.25rem;
line-height: 1.5rem;

View file

@ -74,25 +74,25 @@
.fr-py-6w.fr-background-alt--blue-france
.container
%h2.center.fr-mb-4w #{Current.application_name} en chiffres
%ul.numbers
%li.number
.number-value
%dl.numbers
.number
%dt.number-value
= number_with_delimiter(Administrateur.with_publiees_ou_closes.uniq.count, :locale => :fr)
.number-label<
%dd.number-label<
administrations
%br<>
partenaires
%li.number
.number-value
.number
%dt.number-value
= number_with_delimiter(Dossier.state_not_brouillon.count, :locale => :fr)
.number-label<
%dd.number-label<
dossiers
%br<>
déposés
%li.number
.number-value
.number
%dt.number-value
= "#{number_with_delimiter(50, :locale => :fr)} %"
.number-label<
%dd.number-label<
de réduction
%br<>
des délais de traitement

View file

@ -30,19 +30,19 @@
.container
%h2.center.fr-mb-4w= t(".our_numbers", name: Current.application_name)
- cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do
%ul.numbers
%li.number
.number-value
%dl.numbers
.number
%dt.number-value
= number_with_delimiter(@stat&.administrations_partenaires)
.number-label= t(".numbers.administrations")
%li.number
.number-value
%dd.number-label= t(".numbers.administrations")
.number
%dt.number-value
= number_with_delimiter(@stat&.dossiers_not_brouillon)
.number-label= t(".numbers.files")
%li.number
.number-value
%dd.number-label= t(".numbers.files")
.number
%dt.number-value
= "#{number_with_delimiter(50)} %"
.number-label.number-label-third= t(".numbers.processing_time")
%dd.number-label.number-label-third= t(".numbers.processing_time")
.fr-background-alt--blue-france.fr-py-6w
.container