|
|
|
|
|
|
|
|
|
import random |
|
|
|
import pandas as pd |
|
|
|
|
|
import streamlit as st |
|
import sys |
|
from pathlib import Path |
|
script_dir = Path(__file__).resolve().parent |
|
project_root = script_dir.parent |
|
sys.path.append(str(project_root)) |
|
|
|
|
|
|
|
|
|
from src.Streamlit_Magic_Sheet.components.header import * |
|
from src.Streamlit_Magic_Sheet.components.body import * |
|
from src.Streamlit_Magic_Sheet.components.navigation import * |
|
from src.Streamlit_Magic_Sheet.components.siderbar import * |
|
from src.Streamlit_Magic_Sheet.components.metrics import * |
|
from src.Streamlit_Magic_Sheet.components.charts import * |
|
from src.Streamlit_Magic_Sheet.components.test import * |
|
from src.Streamlit_Magic_Sheet.components.elements import * |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def page_config(page_title, page_icon, layout): |
|
|
|
st.set_page_config( |
|
page_title=page_title, |
|
page_icon=page_icon, |
|
layout=layout |
|
) |
|
st.markdown('''<style> |
|
div.block-container{padding-top:0.1rem;} |
|
font-family: 'Roboto', sans-serif; /* Add Roboto font */ |
|
color: blue; /* Make the text blue */ |
|
</style>''', |
|
unsafe_allow_html=True) |
|
with open('custom_styles.css') as f: |
|
css = f.read() |
|
st.markdown(f'<style>{css}</style>', unsafe_allow_html=True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|