Modification footer et sidebar

This commit is contained in:
Fabrication du Numérique 2025-05-14 10:01:18 +02:00
parent a76cde5c0f
commit 99ae3123e9
2 changed files with 11 additions and 6 deletions

View File

@ -14,7 +14,7 @@ def afficher_pied_de_page():
{_("footer.copyright", "Fabnum © 2025")} <a href='mailto:stephan-pro@peccini.fr'>{_("footer.contact", "Contact")}</a> {_("footer.license", "Licence")} <a href='https://creativecommons.org/licenses/by-nc-nd/4.0/deed.fr' target='_blank'>{_("footer.license_text", "CC BY-NC-ND")}</a> {_("footer.copyright", "Fabnum © 2025")} <a href='mailto:stephan-pro@peccini.fr'>{_("footer.contact", "Contact")}</a> {_("footer.license", "Licence")} <a href='https://creativecommons.org/licenses/by-nc-nd/4.0/deed.fr' target='_blank'>{_("footer.license_text", "CC BY-NC-ND")}</a>
</p> </p>
<p class='footer-note'> <p class='footer-note'>
{_("footer.eco_note", "🌱 Calculs CO₂ via")} <a href='https://www.thegreenwebfoundation.org/' target='_blank'>{_("footer.eco_provider", "The Green Web Foundation")}</a><br> {_("footer.eco_note", "🌱 Calculs eqCO₂ via")} <a href='https://www.thegreenwebfoundation.org/' target='_blank'>{_("footer.eco_provider", "The Green Web Foundation")}</a><br>
{_("footer.powered_by", "🚀 Propulsé par")} <a href='https://streamlit.io/' target='_blank'>{_("footer.powered_by_name", "Streamlit")}</a> {_("footer.powered_by", "🚀 Propulsé par")} <a href='https://streamlit.io/' target='_blank'>{_("footer.powered_by_name", "Streamlit")}</a>
</p> </p>
</div> </div>

View File

@ -59,10 +59,10 @@ def afficher_menu():
str(_("sidebar.theme_dark", "Sombre")) str(_("sidebar.theme_dark", "Sombre"))
] ]
theme = st.radio( theme = st.radio(
str(_("sidebar.theme", "Thème")), str(_("sidebar.theme", "Thème")),
theme_options, theme_options,
index=theme_options.index(st.session_state.theme_mode), index=theme_options.index(st.session_state.theme_mode),
horizontal=True, horizontal=True,
label_visibility="hidden" label_visibility="hidden"
) )
@ -103,7 +103,7 @@ def afficher_menu():
def afficher_impact(total_bytes): def afficher_impact(total_bytes):
impact_label = str(_("sidebar.impact", "Impact environnemental")) impact_label = str(_("sidebar.impact", "Impact environnemental"))
loading_text = str(_("sidebar.loading", "Chargement en cours…")) loading_text = str(_("sidebar.loading", "Chargement en cours…"))
with st.sidebar: with st.sidebar:
components.html(f""" components.html(f"""
<html lang="fr"> <html lang="fr">
@ -157,3 +157,8 @@ def afficher_impact(total_bytes):
</body> </body>
</html> </html>
""") """)
st.markdown("""
<div style="text-align: center;">
<img src="https://app.greenweb.org/api/v3/greencheckimage/fabnum-dev.peccini.fr?nocache=true" alt="This website runs on green hosting - verified by thegreenwebfoundation.org" width="200px" height="95px">
</div>
""", unsafe_allow_html=True)