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")} – <a href='mailto:stephan.peccini@polycrisis-observatory.org'>{_("footer.contact")}</a> – {_("footer.license")} <a href='https://creativecommons.org/licenses/by-nc-nd/4.0/deed.fr' target='_blank'>{_("footer.license_text")}</a>
                </p>
                    <a href="https://www.polycrisis-observatory.org/" target="_blank"><img src="/app/static/images/polycrisis_observatory.webp" alt="Logo de l'Observatoire des Polycrises"></a>
                </p>
                <p class='footer-note'>
                    {_("footer.eco_note")} <a href='https://www.thegreenwebfoundation.org/' target='_blank'>{_("footer.eco_provider")}</a><br>
                    {_("footer.powered_by")} <a href='https://streamlit.io/' target='_blank'>{_("footer.powered_by_name")}</a>
                </p>
            </div>
        </div>
    """, unsafe_allow_html=True)
