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 { .number-label {
max-width: 10rem; max-width: 10rem;
margin: auto; margin: auto;
padding-inline-start: 0;
font-weight: 600; font-weight: 600;
font-size: 1.25rem; font-size: 1.25rem;
line-height: 1.5rem; line-height: 1.5rem;

View file

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

View file

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