-
Notifications
You must be signed in to change notification settings - Fork 5
/
home.py
27 lines (21 loc) · 787 Bytes
/
home.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
import streamlit as st
import streamlit_antd_components as sac
from views import gsc_api, about
from PIL import Image
favicon = Image.open("./assets/favicon.png")
st.set_page_config(
page_title="Google Search Console Python API",
page_icon=favicon,
layout="wide",
initial_sidebar_state='collapsed',
)
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
with st.sidebar:
menu = sac.menu([
sac.MenuItem('GSC API', icon='google'),
sac.MenuItem('About Me', icon='file-person-fill',),
], index=0, format_func='upper', size='middle', indent=30, open_index=None, open_all=True, return_index=False)
if menu == 'GSC API':
gsc_api.createPage()
elif menu == 'About Me':
about.createPage()