File size: 1,545 Bytes
f60c489
2229662
f60c489
 
 
 
 
 
 
02c6082
f60c489
 
 
 
 
 
 
 
02c6082
f60c489
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b09953b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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()