diff --git a/app.py b/app.py index 5054441..55ae985 100644 --- a/app.py +++ b/app.py @@ -11,8 +11,19 @@ pages = { "results": st.Page(results_page.render, title="成果浏览", icon="📦", url_path="results"), } st.session_state["pages"] = pages +nav = st.navigation( + {"工具": [pages["home"], pages["market"], pages["buildings"]], + "工作记录": [pages["tasks"], pages["results"]]}, + position="hidden", +) with st.sidebar: st.title("MarketGrid") - st.caption("本地空间数据工具箱") -st.navigation({"工具": [pages["home"], pages["market"], pages["buildings"]], - "工作记录": [pages["tasks"], pages["results"]]}).run() + st.caption("空间数据工具箱") + st.subheader("工具") + st.page_link(pages["home"], label="工具箱首页", icon="🏠", use_container_width=True) + st.page_link(pages["market"], label="市场网格出图", icon="🗺️", use_container_width=True) + st.page_link(pages["buildings"], label="楼宇数据查询", icon="🏢", use_container_width=True) + st.subheader("工作记录") + st.page_link(pages["tasks"], label="任务中心", icon="⏳", use_container_width=True) + st.page_link(pages["results"], label="成果浏览", icon="📦", use_container_width=True) +nav.run()