demarches-normaliennes/app/views/root/landing.html.haml

72 lines
2.8 KiB
Text
Raw Normal View History

- content_for :footer do
= render partial: "root/footer"
2022-11-30 16:25:42 +01:00
- content_for :title, t(".promise")
.landing
.landing-panel.hero-panel
.container
.hero-wrapper
.hero-text
2019-11-25 16:01:59 +01:00
%h1.hero-tagline
2023-01-04 17:03:18 +01:00
%em.hero-tagline-em= t(".promise")
.hero-illustration
%img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: '', width: 499, height: 280, loading: 'lazy' }
2018-07-06 13:49:53 +02:00
.landing-panel.usagers-panel
.container
.role-panel-wrapper
.role-panel-30.role-usagers-image
%img.role-image{ :src => image_url("landing/roles/usagers.svg"), alt: '', width: 176, height: 180, loading: 'lazy' }
.role-panel-70
2022-11-30 16:25:42 +01:00
%h2= t(".have_a_procedure")
%p.fr-h5= t(".fill_procedure")
= link_to t(".how_to_find_procedure"), t("links.common.faq.comment_trouver_ma_demarche_url"), class: "fr-btn fr-btn--lg fr-mr-1w fr-mb-2w", title: new_tab_suffix(t(".how_to_find_procedure")), **external_link_attributes
2022-11-30 16:25:42 +01:00
= link_to t("views.users.sessions.new.connection"), new_user_session_path, class: "fr-btn fr-btn--secondary fr-btn--lg"
2018-04-27 10:37:01 +02:00
- cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do
.landing-panel
.container
2022-11-30 16:25:42 +01:00
%h2.center.fr-mb-4w= t(".our_numbers", name: APPLICATION_NAME)
%ul.numbers
%li.number
.number-value
2022-11-30 16:25:42 +01:00
= number_with_delimiter(@stat&.administrations_partenaires)
2023-01-04 17:03:18 +01:00
%div.number-label= t(".numbers.administrations")
%li.number
.number-value
2022-11-30 16:25:42 +01:00
= number_with_delimiter(@stat&.dossiers_not_brouillon)
2023-01-04 17:03:18 +01:00
%div.number-label= t(".numbers.files")
%li.number
.number-value
2022-11-30 16:25:42 +01:00
= "#{number_with_delimiter(50)} %"
2023-01-05 10:04:53 +01:00
%div.number-label.number-label-third= t(".numbers.processing_time")
.landing-panel.cta-panel
.container
.cta-panel-wrapper
%div
2022-11-30 16:25:42 +01:00
%h2.cta-panel-title= t(".question")
%p.cta-panel-explanation= t(".answer_in_faq")
%div
= link_to t(".online_help"), t("links.common.faq.url"), class: "fr-btn fr-btn--lg", title: new_tab_suffix(t(".online_help")), **external_link_attributes
-# We temporarily disable the link to the contact page on the homepage
-# %p.cta-panel-explanation Notre équipe est disponible pour vous renseigner et vous aider
-# %div
-# = contact_link "Contactez-nous",
-# tags: 'landing',
-# class: "cta-panel-button-white",
-# target: "_blank",
-# rel: "noopener noreferrer"
.landing-panel
.container
.cta-panel-wrapper
%div
2022-11-30 16:25:42 +01:00
%h2.fr-h4= t(".administration_dematerialize")
%p.cta-panel-explanation.grey= t(".administration_fill_online")
%div
2022-11-30 16:25:42 +01:00
= link_to t(".administration_discover"), administration_path, class: "fr-btn fr-btn--lg"