-
Notifications
You must be signed in to change notification settings - Fork 2
/
Contact.py
23 lines (19 loc) · 855 Bytes
/
Contact.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import streamlit as st
# Define the contacts page
def contacts():
st.title("Contacts Page")
st.write("Welcome to the Contacts Page! Here, you can find some contact information.")
# Sample contact information
contact_data = [
{"Name": "John Doe", "Email": "johndoe@example.com", "Phone": "+1 (123) 456-7890"},
{"Name": "Jane Smith", "Email": "janesmith@example.com", "Phone": "+1 (234) 567-8901"},
{"Name": "Bob Johnson", "Email": "bobjohnson@example.com", "Phone": "+1 (345) 678-9012"},
]
# Display contact information
for contact in contact_data:
st.subheader(contact["Name"])
st.write(f"Email: {contact['Email']}")
st.write(f"Phone: {contact['Phone']}")
st.write("-" * 40) # Add a separator line
# Call the contacts function to display the contact page
contacts()