Skip to content

Commit

Permalink
Merge pull request #3 from hariszaf/develop
Browse files Browse the repository at this point in the history
order pages with st_pages
  • Loading branch information
sofiamonsalve authored May 2, 2024
2 parents 63ee095 + 2ddc3d3 commit 39e26a2
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 25 deletions.
29 changes: 29 additions & 0 deletions app/.streamlit/pages.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[[pages]]
path = "Welcome.py"
name = "Home"
icon = ":house:"

[[pages]]
path = "pages/Database_Search.py"
name = "Search"
icon = ":paperclip:"

[[pages]]
path = "pages/Visualization_Dashboard.py"
name = "Dashboard"
icon = ":books:"

[[pages]]
path = "pages/Upload_Data.py"
name = "Upload data"
icon = "📖"

[[pages]]
path = "pages/Help.py"
name = "Help"
icon = "🧰"

[[pages]]
path = "pages/About_Us.py"
name = "About us"
icon = "✏️"
27 changes: 2 additions & 25 deletions app/Welcome.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import streamlit as st
from streamlit_extras.app_logo import add_logo
from st_pages import show_pages_from_config


st.set_page_config(page_title="µGrowthDB", page_icon="🔍", layout='wide')
Expand All @@ -8,7 +9,6 @@
with open("style.css") as css:
st.markdown(f'<style>{css.read()}</style>', unsafe_allow_html=True)


st.image('figs/logo.png')
st.write('')
st.write('')
Expand Down Expand Up @@ -56,27 +56,4 @@
st.write('')
st.write('')

r1, r2, r3, r4, r5 = st.columns(5)


with r1:
st.image('figs/search.png',width=100)
st.page_link("pages/Database_Search.py",label= f':blue[**Search**]')


with r2:
st.image('figs/folder.png',width=100)
st.page_link("pages/3_Upload Data.py",label= f':blue[**Upload**]')


with r3:
st.image('figs/download.png',width=100)
st.page_link("pages/Database_Search.py",label= f':blue[**Download**]')

with r4:
st.image('figs/question.png',width=100)
st.page_link("pages/4_Help.py",label= f':blue[**Help**]')

with r5:
st.image('figs/people.png',width=100)
st.page_link("pages/5_About Us.py",label= f':blue[**About Us**]')
show_pages_from_config()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 39e26a2

Please sign in to comment.