diff --git a/app/assets/stylesheets/static_page.scss b/app/assets/stylesheets/static_page.scss new file mode 100644 index 000000000..61d2012fd --- /dev/null +++ b/app/assets/stylesheets/static_page.scss @@ -0,0 +1,12 @@ +.static-page { + margin: 0 auto; + padding-top: 1.8rem; +} + +.legal { + margin-bottom: 0.5rem; +} + +.legal-block { + margin-bottom: 2rem; +} diff --git a/app/assets/stylesheets/stats.scss b/app/assets/stylesheets/stats.scss index 430064ef6..e7aeb9586 100644 --- a/app/assets/stylesheets/stats.scss +++ b/app/assets/stylesheets/stats.scss @@ -17,8 +17,8 @@ $new-h2-margin-bottom: 3 * $default-space; } .new-h1 { - margin-bottom: $new-h1-margin-bottom; - font-size: 41px; + margin-bottom: 3.75rem; + font-size: 2.5rem; } .new-h2 { diff --git a/app/controllers/legal_notice_controller.rb b/app/controllers/legal_notice_controller.rb new file mode 100644 index 000000000..0e834885a --- /dev/null +++ b/app/controllers/legal_notice_controller.rb @@ -0,0 +1,8 @@ +class LegalNoticeController < ApplicationController +invisible_captcha only: [:create], on_spam: :redirect_to_root + +def index + +end + +end diff --git a/app/views/legal_notice/index.html.haml b/app/views/legal_notice/index.html.haml new file mode 100644 index 000000000..1eaf5d060 --- /dev/null +++ b/app/views/legal_notice/index.html.haml @@ -0,0 +1,29 @@ +- content_for(:title, t('views.legal_notice.title')) +- content_for :footer do + = render partial: "root/footer" + +#legal-notice.static-page + .container + %h1.new-h1 + = t('views.legal_notice.title') + + .legal-block + %h2 + = t('views.legal_notice.editing') + %p.legal= t('views.legal_notice.editing_content.line_one') + %p.legal= t('views.legal_notice.editing_content.line_two') + %p.legal= t('views.legal_notice.editing_content.line_three') + + .legal-block + %h2 + = t('views.legal_notice.direction') + %p.legal= t('views.legal_notice.direction_content') + + .legal-block + %h2 + = t('views.legal_notice.hosting') + %p.legal= t('views.legal_notice.hosting_content.line_one') + %p.legal= t('views.legal_notice.hosting_content.line_two') + %p.legal= t('views.legal_notice.hosting_content.line_three') + %p.legal= t('views.legal_notice.hosting_content.line_four') + %p.legal= t('views.legal_notice.hosting_content.line_five') diff --git a/app/views/root/_footer.html.haml b/app/views/root/_footer.html.haml index 9304a1e8e..ea4dd307a 100644 --- a/app/views/root/_footer.html.haml +++ b/app/views/root/_footer.html.haml @@ -13,7 +13,7 @@ %h3.fr-footer__top-cat= t("links.footer.top_labels.legals") %ul.fr-footer__top-list %li.fr-footer__top-link - = link_to t("links.footer.mentions_legales.label"), t("links.footer.mentions_legales.url"), title: t("links.footer.mentions_legales.title"), class: "fr-footer__top-link", rel: "noopener noreferrer" + = link_to t("links.footer.mentions_legales.label"), mentions_legales_path, title: t("links.footer.mentions_legales.title"), class: "fr-footer__top-link", rel: "noopener noreferrer" %li.fr-footer__top-link = link_to t("links.footer.suivi.label"), suivi_path, title: t("links.footer.suivi.title"), class: "fr-footer__top-link" %li.fr-footer__top-link diff --git a/app/views/users/_general_footer_row.html.haml b/app/views/users/_general_footer_row.html.haml index e728a1b27..637118df1 100644 --- a/app/views/users/_general_footer_row.html.haml +++ b/app/views/users/_general_footer_row.html.haml @@ -2,6 +2,6 @@ %li.fr-footer__bottom-item = link_to t("links.footer.accessibilite.label"), t("links.footer.accessibilite.url"), title: t("links.footer.accessibilite.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer" %li.fr-footer__bottom-item - = link_to t("links.footer.mentions_legales.label"), t("links.footer.mentions_legales.url"), title: t("links.footer.mentions_legales.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer" + = link_to t("links.footer.mentions_legales.label"), mentions_legales_path, title: t("links.footer.mentions_legales.title"), class: "fr-footer__bottom-link", rel: "noopener noreferrer" %li.fr-footer__bottom-item = link_to t("links.footer.cookies.label"), suivi_path, title: t("links.footer.cookies.title"), class: "fr-footer__bottom-link" diff --git a/config/locales/en.yml b/config/locales/en.yml index 6410dadb8..0a7b5ed9a 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -86,6 +86,17 @@ en: instructeur: 'Go to procedures list' admin: 'Go to administration panel' views: + legal_notice: + title: "Legal Notices" + editing: "Editor" + editing_content: + line_one: "Interministerial Directorate for Digital Affairs (DINUM)" + direction: "Publishing Department" + direction_content: "Ms. Stéphanie Schaer , Interministerial Director of Digital Affairs." + hosting: "Hosting provider" + hosting_content: + line_four: "VAT NUMBER: FR 22 424 761 419" + line_five: "Head office : 2 rue Kellermann - 59100 Roubaix - France." commencer: show: start_procedure: Start the procedure diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 70c52acfc..6f9cd1391 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -77,6 +77,22 @@ fr: instructeur: 'Aller à la liste des démarches' admin: "Aller au panneau d’administration" views: + legal_notice: + title: "Mentions légales" + editing: "Éditeur" + editing_content: + line_one: "Direction Interministérielle au Numérique (DINUM)" + line_two: "20 Avenue de Ségur" + line_three: "75007 PARIS" + direction: "Direction de la publication" + direction_content: "Madame Stéphanie Schaer , Directrice interministérielle du numérique." + hosting: "Prestataire d'hébergement" + hosting_content: + line_one: "OVH" + line_two: "RCS Roubaix – Tourcoing 424 761 419 00045" + line_three: "Code APE 6202A" + line_four: "N° TVA : FR 22 424 761 419" + line_five: "Siège social : 2 rue Kellermann - 59100 Roubaix - France." commencer: show: start_procedure: Commencer la démarche diff --git a/config/routes.rb b/config/routes.rb index e295e8179..263c3682c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -193,6 +193,8 @@ Rails.application.routes.draw do get "contact-admin", to: "support#admin" + get "mentions_legales", to: "legal_notice#index" + post "webhooks/sendinblue", to: "webhook#sendinblue" post "webhooks/helpscout", to: "webhook#helpscout" post "webhooks/helpscout_support_dev", to: "webhook#helpscout_support_dev"