Update page_files/Home.py
Browse files- page_files/Home.py +11 -12
page_files/Home.py
CHANGED
|
@@ -523,16 +523,16 @@ def _build_showcase_html(extract_b64, search_b64):
|
|
| 523 |
"</div>"
|
| 524 |
)
|
| 525 |
extract_card = (
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
)
|
| 534 |
search_card = (
|
| 535 |
-
"<div class=\"s-card\"
|
| 536 |
"<img class=\"s-card-img\" src=\"" + search_b64 + "\" alt=\"Search\"/>"
|
| 537 |
"<div class=\"s-card-body\">"
|
| 538 |
"<div class=\"s-card-title\">Search</div>"
|
|
@@ -578,8 +578,7 @@ def _build_showcase_html(extract_b64, search_b64):
|
|
| 578 |
|
| 579 |
components.html(_build_showcase_html(extract_card_img, search_card_img), height=480, scrolling=False)
|
| 580 |
|
| 581 |
-
|
| 582 |
-
_col_gap, _col1, _col2 = st.columns([1, 1.3, 1.3])
|
| 583 |
with _col1:
|
| 584 |
if st.button("Open Extract Data β", key="_nav_upload", use_container_width=True):
|
| 585 |
st.switch_page("page_files/Upload_Data.py")
|
|
@@ -599,7 +598,8 @@ st.markdown("""
|
|
| 599 |
font-size: 0.88rem !important;
|
| 600 |
height: 44px !important;
|
| 601 |
box-shadow: none !important;
|
| 602 |
-
margin-
|
|
|
|
| 603 |
}
|
| 604 |
.st-key-_nav_upload button:hover, .st-key-_nav_search button:hover {
|
| 605 |
background: #1e3a30 !important;
|
|
@@ -608,7 +608,6 @@ st.markdown("""
|
|
| 608 |
}
|
| 609 |
</style>
|
| 610 |
""", unsafe_allow_html=True)
|
| 611 |
-
|
| 612 |
|
| 613 |
|
| 614 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
|
|
| 523 |
"</div>"
|
| 524 |
)
|
| 525 |
extract_card = (
|
| 526 |
+
"<div class=\"s-card\">"
|
| 527 |
+
"<img class=\"s-card-img\" src=\"" + extract_b64 + "\" alt=\"Extract Data\"/>"
|
| 528 |
+
"<div class=\"s-card-body\">"
|
| 529 |
+
"<div class=\"s-card-title\">Extract Data</div>"
|
| 530 |
+
"<p class=\"s-card-desc\">Upload experimental datasets and extract structured material property data into the AIM database.</p>"
|
| 531 |
+
"<span class=\"s-card-link\">Open platform →</span>"
|
| 532 |
+
"</div></div>"
|
| 533 |
)
|
| 534 |
search_card = (
|
| 535 |
+
"<div class=\"s-card\">"
|
| 536 |
"<img class=\"s-card-img\" src=\"" + search_b64 + "\" alt=\"Search\"/>"
|
| 537 |
"<div class=\"s-card-body\">"
|
| 538 |
"<div class=\"s-card-title\">Search</div>"
|
|
|
|
| 578 |
|
| 579 |
components.html(_build_showcase_html(extract_card_img, search_card_img), height=480, scrolling=False)
|
| 580 |
|
| 581 |
+
_left_gap, _col1, _col2 = st.columns([0.85, 1, 1])
|
|
|
|
| 582 |
with _col1:
|
| 583 |
if st.button("Open Extract Data β", key="_nav_upload", use_container_width=True):
|
| 584 |
st.switch_page("page_files/Upload_Data.py")
|
|
|
|
| 598 |
font-size: 0.88rem !important;
|
| 599 |
height: 44px !important;
|
| 600 |
box-shadow: none !important;
|
| 601 |
+
margin-top: -24px !important;
|
| 602 |
+
margin-bottom: 40px !important;
|
| 603 |
}
|
| 604 |
.st-key-_nav_upload button:hover, .st-key-_nav_search button:hover {
|
| 605 |
background: #1e3a30 !important;
|
|
|
|
| 608 |
}
|
| 609 |
</style>
|
| 610 |
""", unsafe_allow_html=True)
|
|
|
|
| 611 |
|
| 612 |
|
| 613 |
# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|