-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain-app.py
38 lines (30 loc) · 930 Bytes
/
main-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
#main-app.py
# import libraries
import streamlit as st
from google.cloud import bigquery
from google.oauth2 import service_account
st.set_page_config(layout="wide") # can only be used once and must be the first line
import about
import sql_basics
import sql_advanced
import sql_functions
import sql_string_functions
import sql_window_functions
import references
import contact
PAGES = {
"About": about,
"SQL - Basics": sql_basics,
"SQL - Advanced": sql_advanced,
"SQL - Functions": sql_functions,
"SQL - String Functions": sql_string_functions,
"SQL- Window Functions": sql_window_functions,
"References": references,
"Contact": contact
}
st.sidebar.title('Menu')
selection = st.sidebar.radio("Please make a selection ...", list(PAGES.keys()))
page = PAGES[selection]
page.app()
#with open('static/css/style.css') as f:
# st.markdown(f'<style>(f.read()</style>', unsafe_allow_html=True)