# components.py import streamlit as st def apply_styles(): """ Applies CSS styles to the Streamlit app from an external file. """ with open(r'./static/styles.css') as f: st.markdown(f'', unsafe_allow_html=True) def add_header(title): """ Adds a header to the page. """ st.markdown(f"

{title}

", unsafe_allow_html=True) def add_footer(text): """ Adds a footer to the page. """ st.markdown(f"", unsafe_allow_html=True)