Update page_files/Home.py
Browse files- page_files/Home.py +3 -4
page_files/Home.py
CHANGED
|
@@ -57,7 +57,7 @@ def img_to_b64(path):
|
|
| 57 |
_HERE = Path(__file__).parent # page_files/
|
| 58 |
_ROOT = _HERE.parent # project root
|
| 59 |
|
| 60 |
-
home_img = img_to_b64(str(
|
| 61 |
logo_img = img_to_b64(str(_ROOT / "logo.png"))
|
| 62 |
extract_card_img = img_to_b64(str(_ROOT / "extract_card_img.png"))
|
| 63 |
search_card_img = img_to_b64(str(_ROOT / "search_card_img.png"))
|
|
@@ -677,15 +677,14 @@ with right_col:
|
|
| 677 |
</style>
|
| 678 |
""", unsafe_allow_html=True)
|
| 679 |
|
| 680 |
-
|
| 681 |
st.markdown(
|
| 682 |
'<div class="aim-showcase-card-wrap"><img src="' + extract_card_img + '" style="width:100%;max-height:190px;object-fit:cover;display:block;"/>'
|
| 683 |
'<div class="aim-card-footer"><div class="aim-card-footer-title">Extract Data</div>'
|
| 684 |
'<div class="aim-card-footer-tag">Platform</div></div></div>',
|
| 685 |
unsafe_allow_html=True
|
| 686 |
-
)
|
| 687 |
-
if st.button("Go to Extract Data →", key="showcase_extract_btn"):
|
| 688 |
st.switch_page("page_files/Upload_Data.py")
|
|
|
|
| 689 |
|
| 690 |
# ── Search card ──
|
| 691 |
if search_card_img:
|
|
|
|
| 57 |
_HERE = Path(__file__).parent # page_files/
|
| 58 |
_ROOT = _HERE.parent # project root
|
| 59 |
|
| 60 |
+
home_img = img_to_b64(str(_ROOT / "Home.png"))
|
| 61 |
logo_img = img_to_b64(str(_ROOT / "logo.png"))
|
| 62 |
extract_card_img = img_to_b64(str(_ROOT / "extract_card_img.png"))
|
| 63 |
search_card_img = img_to_b64(str(_ROOT / "search_card_img.png"))
|
|
|
|
| 677 |
</style>
|
| 678 |
""", unsafe_allow_html=True)
|
| 679 |
|
| 680 |
+
if st.button("Go to Extract Data →", key="showcase_extract_btn"):
|
| 681 |
st.markdown(
|
| 682 |
'<div class="aim-showcase-card-wrap"><img src="' + extract_card_img + '" style="width:100%;max-height:190px;object-fit:cover;display:block;"/>'
|
| 683 |
'<div class="aim-card-footer"><div class="aim-card-footer-title">Extract Data</div>'
|
| 684 |
'<div class="aim-card-footer-tag">Platform</div></div></div>',
|
| 685 |
unsafe_allow_html=True
|
|
|
|
|
|
|
| 686 |
st.switch_page("page_files/Upload_Data.py")
|
| 687 |
+
)
|
| 688 |
|
| 689 |
# ── Search card ──
|
| 690 |
if search_card_img:
|