import streamlit as st import streamlit.components.v1 as components import base64 # Configure the app - this must be the first Streamlit command st.set_page_config( page_title="HeatTransPlan App", page_icon="", initial_sidebar_state="expanded" ) # Apply styles immediately to prevent flash st.markdown( """ """, unsafe_allow_html=True, ) # Display the logo st.image("../data/symbol.svg", width=200) # Home page content st.title("Home page") st.subheader("Information") # Display a clickable image from the HeatTransPlan website with open("../data/image_project.jpeg", "rb") as f: image_data = f.read() encoded_image = base64.b64encode(image_data).decode() st.markdown(f'', unsafe_allow_html=True) st.markdown("About HeatTransPlan") st.subheader("Navigate to Pages") st.page_link("pages/data_collection.py", label="📊 Energy Data Collection", help="Collect and manage energy data")