diff --git a/app/views/root/_footer.html.haml b/app/views/root/_footer.html.haml index 1a1da8ea7fc..322808f4a8f 100644 --- a/app/views/root/_footer.html.haml +++ b/app/views/root/_footer.html.haml @@ -44,7 +44,7 @@ .fr-footer__body .fr-footer__brand.fr-enlarge-link = link_to t("links.provider.url"), title: t("links.provider.title") do - = image_tag t("links.provider.logo.src"), alt: t("links.provider.logo.alt"), width: t("links.provider.logo.width"), height: t("links.provider.logo.height"), loading: 'lazy' + = image_tag t("links.provider.logo.src"), srcset: { t("links.provider.logo.srcset")[0] => "1x", t("links.provider.logo.srcset")[1] => "2x", t("links.provider.logo.srcset")[2] => "3x", t("links.provider.logo.srcset")[3] => "4x" }, alt: t("links.provider.logo.alt"), width: t("links.provider.logo.width"), height: t("links.provider.logo.height"), loading: 'lazy' = link_to t("links.footer.dinum.url"), title: t("links.footer.dinum.title"), class: "fr-footer__brand-link" do = image_tag("footer/logo-dinum.svg", class: "fr-footer__logo logo-beta-gouv-fr", alt: t("links.footer.dinum.alt")) .fr-footer__content diff --git a/config/custom_locales/links.fr.yml b/config/custom_locales/links.fr.yml index 965bf1124b0..d6f137eae1b 100644 --- a/config/custom_locales/links.fr.yml +++ b/config/custom_locales/links.fr.yml @@ -2,7 +2,12 @@ fr: links: provider: logo: - src: "footer/logo-dmra-horisontal.png" + src: "footer/logo-dmra-horisontal-1-1x.webp" + srcset: + - "footer/logo-dmra-horisontal-1-1x.webp" + - "footer/logo-dmra-horisontal-1-2x.webp" + - "footer/logo-dmra-horisontal-1-3x.webp" + - "footer/logo-dmra-horisontal-1-4x.webp" alt: "Logo DMRA" height: 90 width: 240