forked from thomaspj10/Groep1ProjectD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
55 lines (50 loc) · 1.63 KB
/
main.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
import streamlit as st
import pages.download_event
import utils.cookies as cookies
st.set_page_config(
page_title="Chengeta Dashboard",
page_icon=":deer:",
initial_sidebar_state="expanded",
layout="wide"
)
hide_streamlit_style = """
<style>
.css-18e3th9 {
padding-top: 0rem;
}
div[data-testid="stToolbar"] {
visibility: hidden;
height: 0%;
position: fixed;
}
div[data-testid="stDecoration"] {
visibility: hidden;
height: 0%;
position: fixed;
}
div[data-testid="stStatusWidget"] {
visibility: hidden;
height: 0%;
position: fixed;
}
#MainMenu {
visibility: hidden;
height: 0%;
}
header {
visibility: hidden;
height: 0%;
}
footer {
visibility: hidden;
height: 0%;
}
</style>
"""
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
cookies.initialize_cookes()
if "event" in st.experimental_get_query_params():
pages.download_event.create_download()
else:
import components.sidebar
components.sidebar.create_page()