YFDashboard / src /shared_page.py
Jon Solow
Use path relative to file
33ea4bb
raw
history blame
431 Bytes
import os
import streamlit as st
from page_selector import remove_seasonal_pages
from login_component import get_authorization_button
def local_css(file_name):
with open(file_name) as f:
st.markdown("<style>{}</style>".format(f.read()), unsafe_allow_html=True)
def common_page_config():
get_authorization_button()
remove_seasonal_pages()
local_css(os.path.join(os.path.dirname(__file__), "style.css"))