generated from streamlit/streamlit-hello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
67 lines (57 loc) · 1.78 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
import streamlit as st
import streamlit_book as stb
import geemap
from pathlib import Path
# geemap.ee_initialize(**{'project':'ee-spiruel'})
import os
st.session_state["warned_about_save_answers"] = True
st.set_page_config(layout="wide", page_title="SatSchool", page_icon="🛰️")
hide_streamlit_style = """
<style>
#MainMenu {visibility: hidden;}
footer {visibility: hidden;}
</style>
"""
st.markdown(hide_streamlit_style, unsafe_allow_html=True)
# Set multipage
current_path = Path(__file__).parent.absolute()
# Streamit book properties
stb.set_book_config(menu_title="Main Menu",
menu_icon="",
options=[
"Introduction",
"Land",
"Oceans",
"Ice",
"Quiz"
],
paths=[
current_path / "apps/intro",
current_path / "apps/land",
current_path / "apps/oceans",
current_path / "apps/ice.py",
current_path / "apps/quiz.py",
],
icons=[
"house",
"",
"",
"",
"",
"trophy"
],
save_answers=True,
)
with st.sidebar:
st.sidebar.title("About")
st.sidebar.info(
f"""
🌐 https://eo-cdt.org
©️ 2022 SatSchool
"""
)
if 'analytics' in st.experimental_get_query_params().keys():
if st.experimental_get_query_params()['analytics'] == ['on']:
stb.admin.configuration()
stb.admin.user_info()
#stb.admin.answer_info()