Update page_files/Home.py
Browse files- page_files/Home.py +13 -10
page_files/Home.py
CHANGED
|
@@ -189,6 +189,14 @@ st.markdown("""
|
|
| 189 |
|
| 190 |
|
| 191 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
|
| 193 |
|
| 194 |
|
|
@@ -524,7 +532,7 @@ with _card1:
|
|
| 524 |
<p style="font-size:.82rem;color:#7a9e8f;margin:6px 0 0;font-family:'DM Sans',sans-serif;">Upload experimental datasets and extract structured material property data into the AIM database.</p>
|
| 525 |
</div>
|
| 526 |
""", unsafe_allow_html=True)
|
| 527 |
-
if st.button("Open Extract Data
|
| 528 |
st.switch_page("page_files/Upload_Data.py")
|
| 529 |
|
| 530 |
with _card2:
|
|
@@ -535,12 +543,12 @@ with _card2:
|
|
| 535 |
<p style="font-size:.82rem;color:#7a9e8f;margin:6px 0 0;font-family:'DM Sans',sans-serif;">Browse and filter polymer, fiber, and composite material properties across the full database.</p>
|
| 536 |
</div>
|
| 537 |
""", unsafe_allow_html=True)
|
| 538 |
-
if st.button("Open Search
|
| 539 |
st.switch_page("page_files/Categorized_Search.py")
|
| 540 |
|
| 541 |
st.markdown("""
|
| 542 |
<style>
|
| 543 |
-
.st-key-
|
| 544 |
background: #0f1f1a !important;
|
| 545 |
color: #8ACAFF !important;
|
| 546 |
border: 1.5px solid #1e3a30 !important;
|
|
@@ -553,7 +561,7 @@ st.markdown("""
|
|
| 553 |
margin-top: -8px !important;
|
| 554 |
margin-bottom: 40px !important;
|
| 555 |
}
|
| 556 |
-
.st-key-
|
| 557 |
background: #1e3a30 !important;
|
| 558 |
border-color: #8ACAFF !important;
|
| 559 |
color: #8ACAFF !important;
|
|
@@ -561,8 +569,6 @@ st.markdown("""
|
|
| 561 |
</style>
|
| 562 |
""", unsafe_allow_html=True)
|
| 563 |
|
| 564 |
-
|
| 565 |
-
|
| 566 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 567 |
# 6. ABOUT + FOOTER (static HTML)
|
| 568 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
@@ -723,7 +729,4 @@ with _:
|
|
| 723 |
st.page_link(
|
| 724 |
"page_files/Contact_Team.py",
|
| 725 |
label="Contact Team",
|
| 726 |
-
)
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
|
|
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
+
# Card click navigation handler
|
| 193 |
+
_nav = st.query_params.get("nav", None)
|
| 194 |
+
if _nav == "upload":
|
| 195 |
+
st.query_params.clear()
|
| 196 |
+
st.switch_page("page_files/Upload_Data.py")
|
| 197 |
+
elif _nav == "search":
|
| 198 |
+
st.query_params.clear()
|
| 199 |
+
st.switch_page("page_files/Categorized_Search.py")
|
| 200 |
|
| 201 |
|
| 202 |
|
|
|
|
| 532 |
<p style="font-size:.82rem;color:#7a9e8f;margin:6px 0 0;font-family:'DM Sans',sans-serif;">Upload experimental datasets and extract structured material property data into the AIM database.</p>
|
| 533 |
</div>
|
| 534 |
""", unsafe_allow_html=True)
|
| 535 |
+
if st.button("Open Extract Data", key="btn_extract", use_container_width=True):
|
| 536 |
st.switch_page("page_files/Upload_Data.py")
|
| 537 |
|
| 538 |
with _card2:
|
|
|
|
| 543 |
<p style="font-size:.82rem;color:#7a9e8f;margin:6px 0 0;font-family:'DM Sans',sans-serif;">Browse and filter polymer, fiber, and composite material properties across the full database.</p>
|
| 544 |
</div>
|
| 545 |
""", unsafe_allow_html=True)
|
| 546 |
+
if st.button("Open Search", key="btn_search", use_container_width=True):
|
| 547 |
st.switch_page("page_files/Categorized_Search.py")
|
| 548 |
|
| 549 |
st.markdown("""
|
| 550 |
<style>
|
| 551 |
+
.st-key-btn_extract button, .st-key-btn_search button {
|
| 552 |
background: #0f1f1a !important;
|
| 553 |
color: #8ACAFF !important;
|
| 554 |
border: 1.5px solid #1e3a30 !important;
|
|
|
|
| 561 |
margin-top: -8px !important;
|
| 562 |
margin-bottom: 40px !important;
|
| 563 |
}
|
| 564 |
+
.st-key-btn_extract button:hover, .st-key-btn_search button:hover {
|
| 565 |
background: #1e3a30 !important;
|
| 566 |
border-color: #8ACAFF !important;
|
| 567 |
color: #8ACAFF !important;
|
|
|
|
| 569 |
</style>
|
| 570 |
""", unsafe_allow_html=True)
|
| 571 |
|
|
|
|
|
|
|
| 572 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 573 |
# 6. ABOUT + FOOTER (static HTML)
|
| 574 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 729 |
st.page_link(
|
| 730 |
"page_files/Contact_Team.py",
|
| 731 |
label="Contact Team",
|
| 732 |
+
)
|
|
|
|
|
|
|
|
|