Skip to content

Commit

Permalink
Reorganized the the home page using expanders.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeaw committed Sep 6, 2024
1 parent b55700c commit 8fc4534
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app_util/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ def simulate_fit():

def viz_simulate_fit():
st.markdown("#### Next you can:")
left, center, right = st.columns(3)
left, right = st.columns(2)
left.page_link(
"pages/compartmental/visualize.py",
label="Visualize Model",
icon=":material/hub:",
)
center.page_link(
right.page_link(
"pages/compartmental/simulate.py",
label="Simulate Model",
icon=":material/laps:",
)
right.page_link(
left.page_link(
"pages/compartmental/fit.py",
label="Fit/Train Model",
icon=":material/model_training:",
Expand Down
22 changes: 14 additions & 8 deletions pages/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)


center.info("version 0.1.2-alpha")
center.info("version 0.2.0-alpha")
widgets.divider_blank()
st.subheader("Aurora PK/PD: Open Web App for Pharmacological Modeling and Analysis")
st.markdown(
Expand All @@ -42,16 +42,22 @@
"pages/support/info.py", label="Support Info", icon=":material/info:"
)

widgets.blank_divider_blank()
st.subheader("What would you like to do?")
left, center, right = st.columns(3)

widgets.divider_blank()
widgets.compartmental_options()
widgets.also_edit()
with left:
with st.expander("Compartmental Modeling", icon=":material/widgets:"):
widgets.compartmental_options()
widgets.also_edit()

widgets.divider_blank()
widgets.nca_options()
with center:
with st.expander("Non-compartmental Analysis", icon=":material/query_stats:"):
widgets.nca_options()

widgets.divider_blank()
widgets.pdanalysis_options()
with right:
with st.expander("Pharmacodynamic Analysis", icon=":material/bid_landscape:"):
widgets.pdanalysis_options()

from importlib.metadata import version

Expand Down

0 comments on commit 8fc4534

Please sign in to comment.