import streamlit as st # Function to display the Home page def show_home(): st.header("Welcome to the Home Page") st.write("This is the home page of the website.") st.image("https://via.placeholder.com/800x300", caption="Welcome Image") st.write("### Introduction") st.write("Here you can find various information about our website and what we offer.") # Function to display the About page def show_about(): st.header("About Us") st.write("This is the About page.") st.write("### Our Mission") st.write("We aim to provide quality content and information.") st.write("### Our Team") st.write("We have a dedicated team working hard to achieve our goals.") # Function to display the Contact page def show_contact(): st.header("Contact Us") st.write("This is the Contact page.") st.write("If you have any questions, feel free to reach out!") st.text_input("Your Name") st.text_input("Your Email") st.text_area("Your Message") if st.button("Send"): st.success("Your message has been sent!") # Main function to run the app def main(): st.title("My Big Streamlit Website") # Sidebar for navigation st.sidebar.title("Navigation") page = st.sidebar.radio("Go to", ("Home", "About", "Contact")) # Load the respective page based on selection if page == "Home": show_home() elif page == "About": show_about() elif page == "Contact": show_contact() # Run the main function if __name__ == "__main__": main()