From 99ae3123e9e6e09cb30fcc4cceb11f73dca7dc79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabrication=20du=20Num=C3=A9rique?= Date: Wed, 14 May 2025 10:01:18 +0200 Subject: [PATCH] Modification footer et sidebar --- components/footer.py | 2 +- components/sidebar.py | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/components/footer.py b/components/footer.py index c512ac8..bc84bb8 100644 --- a/components/footer.py +++ b/components/footer.py @@ -14,7 +14,7 @@ def afficher_pied_de_page(): {_("footer.copyright", "Fabnum © 2025")} – {_("footer.contact", "Contact")} – {_("footer.license", "Licence")} {_("footer.license_text", "CC BY-NC-ND")}

diff --git a/components/sidebar.py b/components/sidebar.py index 7f09212..9f43fbb 100644 --- a/components/sidebar.py +++ b/components/sidebar.py @@ -59,10 +59,10 @@ def afficher_menu(): str(_("sidebar.theme_dark", "Sombre")) ] theme = st.radio( - str(_("sidebar.theme", "Thème")), - theme_options, - index=theme_options.index(st.session_state.theme_mode), - horizontal=True, + str(_("sidebar.theme", "Thème")), + theme_options, + index=theme_options.index(st.session_state.theme_mode), + horizontal=True, label_visibility="hidden" ) @@ -103,7 +103,7 @@ def afficher_menu(): def afficher_impact(total_bytes): impact_label = str(_("sidebar.impact", "Impact environnemental")) loading_text = str(_("sidebar.loading", "Chargement en cours…")) - + with st.sidebar: components.html(f""" @@ -157,3 +157,8 @@ def afficher_impact(total_bytes): """) + st.markdown(""" +
+ This website runs on green hosting - verified by thegreenwebfoundation.org +
+ """, unsafe_allow_html=True)