-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
32 lines (25 loc) · 1.25 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import streamlit as st
import pathlib
CURRENT_DIR = pathlib.Path(__file__).parent.resolve()
# Initialize session_state
if 'page' not in st.session_state:
st.session_state.page = 'Home Page'
if 'fetch_data_running' not in st.session_state:
st.session_state.fetch_data_running = False
st.logo(str(CURRENT_DIR / "logo.png"), link="", icon_image=str(CURRENT_DIR / "logo.png"))
# Import all pages
from webpages import home,liquidity_dashboard, about, exchanges_metrics, crypto_analysis, article
# Navigations
pg = st.navigation({
"Overview": [
st.Page(home.app, title='Home', default=True, icon=':material/home:', url_path=""),
st.Page(about.app, title='About Me', icon=':material/account_circle:', url_path="/about"),
st.Page(article.app, title='Articles', icon=':material/auto_stories:', url_path="/article")
],
"Projects / Dashboards ": [
st.Page(liquidity_dashboard.app, title='Liquidity Dashboard', icon=':material/area_chart:', url_path="/liquidity_dashboard"),
st.Page(exchanges_metrics.app, title='Exchanges Metrics', icon=':material/analytics:', url_path="/exchanges_metrics"),
st.Page(crypto_analysis.app, title='Crypto Analysis', icon=':material/poll:', url_path="/crypto_analysis")
]
})
pg.run()