Code/components/footer.py
2025-05-13 16:31:53 +02:00

23 lines
1.2 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import streamlit as st
from utils.translations import _
def afficher_pied_de_page():
st.markdown("""
<section role="region" aria-label="Contenu principal" id="main-content">
""", unsafe_allow_html=True)
st.markdown(f"""
<div role='contentinfo' aria-labelledby='footer-appli' class='wide-footer'>
<div class='info-footer'>
<p id='footer-appli' class='info-footer'>
{_("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.powered_by", "🚀 Propulsé par")} <a href='https://streamlit.io/' target='_blank'>{_("footer.powered_by_name", "Streamlit")}</a>
</p>
</div>
</div>
""", unsafe_allow_html=True)