-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
71 lines (66 loc) · 1.63 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import os
import streamlit as st
from streamlit_navigation_bar import st_navbar
import pages as pg
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
# Inject custom CSS for the sidebar collapse button
st.markdown(
"""
<style>
/* Customize the sidebar collapse widget */
svg.eyeqlp53.st-emotion-cache-1f3w014.ex0cdmw0 {
color: #0c00e6 !important; /* Change text color if needed */
}
/* Customize the Page Title element */
.title {
font-family: 'Roboto', sans-serif;
text-align: center;
font-size: 3em; /* Adjust the size if needed */
color: black; /* Change the color if needed */
text-decoration: underline; /* Underline the text */
}
</style>
""",
unsafe_allow_html=True
)
pages = [""]
parent_dir = os.path.dirname(os.path.abspath(__file__))
logo_path = os.path.join(parent_dir, "microsoft_logo.svg")
styles = {
"nav": {
"background-color": "#0c00e6",
"justify-content": "left",
},
"img": {
"padding-right": "10px",
"width": "100px",
"height": "50px",
"margin-top": "-10px"
},
"span": {
"color": "FFFFFF",
"padding": "14px",
},
"active": {
"background-color": "FFFFFF",
"color": "000000",
"font-weight": "normal",
"padding": "14px",
}
}
options = {
"show_menu": False,
"show_sidebar": False,
}
page = st_navbar(
pages=pages,
logo_path=logo_path,
styles=styles,
options=options,
)
functions = {
"Home": pg.home
}
go_to = functions.get(page)
if go_to:
go_to()