-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
50 lines (45 loc) · 1.56 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
import streamlit as st
import pandas as pd
import numpy as np
import os
st.set_page_config(
page_title="ShelfSide - The 10 Board Game Personalities Test",
page_icon="res/shelfside_logo.png",
# layout="wide",
initial_sidebar_state="collapsed",
menu_items={
'Get Help': 'https://github.com/Json-To-String/Shelfside/issues',
'Report a bug': "https://github.com/Json-To-String/Shelfside/issues",
'About': "# "
}
)
# here is where the user can switch between pages (only run in home or main.py)
pg = st.navigation([
st.Page('personality-quiz/00_start_page.py'),
st.Page('personality-quiz/01_question_page1.py'),
st.Page('personality-quiz/02_question_page2.py'),
st.Page('personality-quiz/03_question_page3.py'),
st.Page('personality-quiz/04_question_page4.py'),
st.Page('personality-quiz/05_question_page5.py'),
st.Page('personality-quiz/06_results_page.py'),
st.Page('personality-quiz/07_relationship_page.py'),
st.Page('personality-quiz/08_recommend_page.py')
])
pg.run()
## Bigger font for questions
st.markdown(
"""<style>
div[class*="stRadio"] > label > div[data-testid="stMarkdownContainer"] > p {
font-size: 18px;
}
</style>
""", unsafe_allow_html=True)
## hide navbar???
st.markdown('''
<style>
.stApp [data-testid="stToolbar"]{
display:none;
}
</style>
''', unsafe_allow_html=True)
st.set_option("client.showSidebarNavigation", False)