Modification footer et sidebar
This commit is contained in:
parent
a76cde5c0f
commit
99ae3123e9
@ -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>
|
||||
</p>
|
||||
<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>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@ -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"""
|
||||
<html lang="fr">
|
||||
@ -157,3 +157,8 @@ def afficher_impact(total_bytes):
|
||||
</body>
|
||||
</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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user