simplify html and css for landing pages and improve dark mode
This commit is contained in:
parent
f4283392b7
commit
a3307553b7
5 changed files with 23 additions and 86 deletions
|
@ -3,10 +3,6 @@
|
||||||
@import "mixins";
|
@import "mixins";
|
||||||
@import "placeholders";
|
@import "placeholders";
|
||||||
|
|
||||||
.landing-panel {
|
|
||||||
@include vertical-padding(60px);
|
|
||||||
}
|
|
||||||
|
|
||||||
$landing-breakpoint: 1040px;
|
$landing-breakpoint: 1040px;
|
||||||
|
|
||||||
.hero-wrapper {
|
.hero-wrapper {
|
||||||
|
@ -27,16 +23,6 @@ $landing-breakpoint: 1040px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-tagline {
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-tagline-em {
|
|
||||||
color: $blue-france-500;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-illustration {
|
.hero-illustration {
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
|
|
||||||
|
@ -74,7 +60,6 @@ $landing-breakpoint: 1040px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-text {
|
.feature-text {
|
||||||
color: #FFFFFF;
|
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -139,17 +124,7 @@ $landing-breakpoint: 1040px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.usagers-panel,
|
|
||||||
.numbers-panel,
|
|
||||||
.cta-panel-2 {
|
|
||||||
background-color: var(--background-alt-blue-france);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.landing {
|
.landing {
|
||||||
.more-info {
|
|
||||||
background-color: #FFFFFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
.numbers {
|
.numbers {
|
||||||
@extend %horizontal-list;
|
@extend %horizontal-list;
|
||||||
|
@ -229,15 +204,6 @@ $users-breakpoint: 950px;
|
||||||
height: 180px;
|
height: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta-panel {
|
|
||||||
background-color: $blue-france-500;
|
|
||||||
color: #FFFFFF;
|
|
||||||
|
|
||||||
.fr-btn {
|
|
||||||
box-shadow: inset 0 0 0 1px var(--text-inverted-blue-france);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.role-panel-wrapper {
|
.role-panel-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -274,25 +240,6 @@ $users-breakpoint: 950px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta-panel-title {
|
|
||||||
font-size: 24px;
|
|
||||||
font-weight: bold;
|
|
||||||
margin-top: 13px;
|
|
||||||
color: #FFFFFF;
|
|
||||||
|
|
||||||
&.grey {
|
|
||||||
color: $g700;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.cta-panel-explanation {
|
|
||||||
font-size: 22px;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
|
|
||||||
&.grey {
|
|
||||||
color: $g700;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.role-administrations-image {
|
.role-administrations-image {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.landing-panel
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
%h2.center.fr-mb-4w Ce que les utilisateurs pensent du service
|
%h2.center.fr-mb-4w Ce que les utilisateurs pensent du service
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.landing-panel.users-panel
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
%h2.center.fr-mb-4w Ils utilisent déjà #{APPLICATION_NAME}
|
%h2.center.fr-mb-4w Ils utilisent déjà #{APPLICATION_NAME}
|
||||||
|
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
= render partial: "root/footer"
|
= render partial: "root/footer"
|
||||||
|
|
||||||
.landing
|
.landing
|
||||||
.landing-panel.hero-panel
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
.hero-wrapper
|
.hero-wrapper
|
||||||
.hero-text
|
.hero-text
|
||||||
%h1.hero-tagline
|
%h1.fr-mb-0
|
||||||
%em.hero-tagline-em Dématérialisez et simplifiez
|
Dématérialisez et simplifiez
|
||||||
vos démarches administratives
|
vos démarches administratives
|
||||||
|
|
||||||
.hero-illustration
|
.hero-illustration
|
||||||
%img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: "" }
|
%img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: "" }
|
||||||
|
|
||||||
.landing-panel.more-info
|
.fr-py-6w.fr-background-alt--blue-france
|
||||||
.container
|
.container
|
||||||
.role-panel-wrapper.role-administrations-panel
|
.role-panel-wrapper.role-administrations-panel
|
||||||
.role-panel-70
|
.role-panel-70
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
.role-panel-30.role-more-info-image.fr-mt-2w
|
.role-panel-30.role-more-info-image.fr-mt-2w
|
||||||
%img.role-image{ :src => image_url("landing/roles/usagers.svg"), alt: "" }
|
%img.role-image{ :src => image_url("landing/roles/usagers.svg"), alt: "" }
|
||||||
|
|
||||||
.landing-panel.usagers-panel
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
.role-panel-wrapper.role-administrations-panel
|
.role-panel-wrapper.role-administrations-panel
|
||||||
.role-panel-30.role-administrations-image
|
.role-panel-30.role-administrations-image
|
||||||
|
@ -44,9 +44,7 @@
|
||||||
%br
|
%br
|
||||||
|
|
||||||
|
|
||||||
|
.fr-py-6w.fr-background-flat--blue-france.fr-text-inverted--blue-france
|
||||||
|
|
||||||
.landing-panel.features-panel
|
|
||||||
.container
|
.container
|
||||||
%ul.features
|
%ul.features
|
||||||
%li.feature
|
%li.feature
|
||||||
|
@ -73,7 +71,7 @@
|
||||||
= render partial: "root/testimonials" if LANDING_TESTIMONIALS_ENABLED
|
= render partial: "root/testimonials" if LANDING_TESTIMONIALS_ENABLED
|
||||||
|
|
||||||
- cache "numbers-panel", :expires_in => 3.hours do
|
- cache "numbers-panel", :expires_in => 3.hours do
|
||||||
.landing-panel.numbers-panel
|
.fr-py-6w.fr-background-alt--blue-france
|
||||||
.container
|
.container
|
||||||
%h2.center.fr-mb-4w #{APPLICATION_NAME} en chiffres
|
%h2.center.fr-mb-4w #{APPLICATION_NAME} en chiffres
|
||||||
%ul.numbers
|
%ul.numbers
|
||||||
|
@ -113,11 +111,11 @@
|
||||||
- c.with_footer_button do
|
- c.with_footer_button do
|
||||||
= link_to("Inscription à notre prochain webinaire", INSCRIPTION_WEBINAIRE_URL, class: "fr-btn", **external_link_attributes)
|
= link_to("Inscription à notre prochain webinaire", INSCRIPTION_WEBINAIRE_URL, class: "fr-btn", **external_link_attributes)
|
||||||
|
|
||||||
.landing-panel.cta-panel
|
.fr-py-6w.fr-background-alt--blue-france
|
||||||
.container
|
.container
|
||||||
.cta-panel-wrapper
|
.cta-panel-wrapper
|
||||||
%div
|
%div
|
||||||
%h1.cta-panel-title Une question, un problème ?
|
%h2 Une question, un problème ?
|
||||||
%p.cta-panel-explanation Consultez notre FAQ
|
%p.fr-h5 Consultez notre FAQ
|
||||||
%div
|
%div
|
||||||
= link_to "Voir la FAQ", t("links.common.faq.url"), class: "fr-btn fr-btn--lg", **external_link_attributes
|
= link_to "Voir la FAQ", t("links.common.faq.url"), class: "fr-btn fr-btn--lg", **external_link_attributes
|
||||||
|
|
|
@ -3,17 +3,17 @@
|
||||||
- content_for :title, t(".promise")
|
- content_for :title, t(".promise")
|
||||||
|
|
||||||
.landing
|
.landing
|
||||||
.landing-panel.hero-panel
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
.hero-wrapper
|
.hero-wrapper
|
||||||
.hero-text
|
.hero-text
|
||||||
%h1.hero-tagline
|
%h1.fr-mb-0
|
||||||
%em.hero-tagline-em= t(".promise")
|
= t(".promise")
|
||||||
|
|
||||||
.hero-illustration
|
.hero-illustration
|
||||||
%img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: '', width: 499, height: 280, loading: 'lazy' }
|
%img{ :src => image_url("landing/hero/dematerialiser.svg"), alt: '', width: 499, height: 280, loading: 'lazy' }
|
||||||
|
|
||||||
.landing-panel.usagers-panel
|
.fr-background-alt--blue-france.fr-py-6w
|
||||||
.container
|
.container
|
||||||
.role-panel-wrapper
|
.role-panel-wrapper
|
||||||
.role-panel-30.role-usagers-image
|
.role-panel-30.role-usagers-image
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
= link_to t("views.users.sessions.new.connection"), new_user_session_path, class: "fr-btn fr-btn--secondary fr-btn--lg"
|
= link_to t("views.users.sessions.new.connection"), new_user_session_path, class: "fr-btn fr-btn--secondary fr-btn--lg"
|
||||||
|
|
||||||
- cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do
|
- cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do
|
||||||
.landing-panel
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
%h2.center.fr-mb-4w= t(".our_numbers", name: APPLICATION_NAME)
|
%h2.center.fr-mb-4w= t(".our_numbers", name: APPLICATION_NAME)
|
||||||
%ul.numbers
|
%ul.numbers
|
||||||
|
@ -44,28 +44,20 @@
|
||||||
= "#{number_with_delimiter(50)} %"
|
= "#{number_with_delimiter(50)} %"
|
||||||
.number-label.number-label-third= t(".numbers.processing_time")
|
.number-label.number-label-third= t(".numbers.processing_time")
|
||||||
|
|
||||||
.landing-panel.cta-panel
|
.fr-background-alt--blue-france.fr-py-6w
|
||||||
.container
|
.container
|
||||||
.cta-panel-wrapper
|
.cta-panel-wrapper
|
||||||
%div
|
%div
|
||||||
%h2.cta-panel-title= t(".question")
|
%h2= t(".question")
|
||||||
%p.cta-panel-explanation= t(".answer_in_faq")
|
%p.fr-h5= t(".answer_in_faq")
|
||||||
%div
|
%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
|
= 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
|
.fr-py-6w
|
||||||
.container
|
.container
|
||||||
.cta-panel-wrapper
|
.cta-panel-wrapper
|
||||||
%div
|
%div
|
||||||
%h2.fr-h4= t(".administration_dematerialize")
|
%h2= t(".administration_dematerialize")
|
||||||
%p.cta-panel-explanation.grey= t(".administration_fill_online")
|
%p.fr-h5= t(".administration_fill_online")
|
||||||
%div
|
%div
|
||||||
= link_to t(".administration_discover"), administration_path, class: "fr-btn fr-btn--lg"
|
= link_to t(".administration_discover"), administration_path, class: "fr-btn fr-btn--lg"
|
||||||
|
|
Loading…
Reference in a new issue