diff --git a/app/assets/images/flag_of_europe.svg b/app/assets/images/flag_of_europe.svg new file mode 100644 index 000000000..754f1480f --- /dev/null +++ b/app/assets/images/flag_of_europe.svg @@ -0,0 +1 @@ +European flag \ No newline at end of file diff --git a/app/assets/stylesheets/new_design/login.scss b/app/assets/stylesheets/new_design/login.scss index fcd7a7977..af3917862 100644 --- a/app/assets/stylesheets/new_design/login.scss +++ b/app/assets/stylesheets/new_design/login.scss @@ -49,7 +49,7 @@ $login-padding: 60px; .preview { font-size: 24px; - img { + .paperless-logo { width: 100%; margin-bottom: 60px; } @@ -58,6 +58,29 @@ $login-padding: 60px; color: $blue; font-weight: bold; } + + .close-procedure { + font-size: 12px; + } + + .procedure-title { + font-size: 30px; + margin: 50px 0 32px; + } + + .procedure-description { + font-size: 14px; + } + + .procedure-logos { + display: flex; + justify-content: space-around; + + img { + max-height: 130px; + margin: 0 10px; + } + } } .login-form { diff --git a/app/views/users/sessions/new.html.haml b/app/views/users/sessions/new.html.haml index 23b9d295d..84ae32d70 100644 --- a/app/views/users/sessions/new.html.haml +++ b/app/views/users/sessions/new.html.haml @@ -1,13 +1,27 @@ .two-columns .login-wrapper .preview - = image_tag "landing/hero/dematerialiser.svg" - .baseline.center - %h3 Un outil simple - %p - pour gérer les formulaires - %br - administratifs dématérialisés. + - unless @dossier + = image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo" + .baseline.center + %h3 Un outil simple + %p + pour gérer les formulaires + %br + administratifs dématérialisés. + - else + .text-right + = link_to "Fermer", users_no_procedure_url, class: "link close-procedure" + .procedure-logos + = image_tag @dossier.procedure.decorate.logo_img + - if @dossier.procedure.euro_flag + = image_tag "flag_of_europe.svg" + + %h2.procedure-title + = @dossier.procedure.libelle + %p.procedure-description + = h @dossier.procedure.description.html_safe + .login-form %h1.center Connectez-vous