import streamlit as st # Set page configuration st.set_page_config( page_title="Contact Us | AI News Generator", page_icon="📞", layout="wide", initial_sidebar_state="collapsed" ) # Main Function def main(): # Apply Poppins font across the app st.markdown(""" """, unsafe_allow_html=True) # Include Font Awesome CDN for icons st.markdown(""" """, unsafe_allow_html=True) # Title Section st.markdown("

Contact Us

", unsafe_allow_html=True) st.markdown("

We'd love to hear from you! Reach out with any questions or feedback.

", unsafe_allow_html=True) # Contact Form st.markdown("

📬 Get in Touch

", unsafe_allow_html=True) st.write("Fill in the form below to contact us directly!") contact_form = st.form(key='contact_form') name = contact_form.text_input("Your Name") email = contact_form.text_input("Your Email") message = contact_form.text_area("Your Message") submit_button = contact_form.form_submit_button("Send Message") if submit_button: if name and email and message: st.success("Thank you for reaching out! We will get back to you soon.") else: st.error("Please fill in all the fields.") # Contact Information Section st.markdown("

📍 Our Location

", unsafe_allow_html=True) st.write("Find us at our office location:") st.markdown("""
""", unsafe_allow_html=True) # Social Media Section st.markdown("

💬 Follow Us

", unsafe_allow_html=True) st.write("Stay connected with us through social media:") social_media_links = { "GitHub": "https://github.com/yourprofile", "LinkedIn": "https://www.linkedin.com/in/yourprofile", "Twitter": "https://twitter.com/yourprofile" } for platform, link in social_media_links.items(): st.markdown(f""" {platform} """, unsafe_allow_html=True) # Footer st.markdown("---") st.markdown( '

💻 Developed with ❤️ using Streamlit | © 2024

', unsafe_allow_html=True ) # Run the app if __name__ == "__main__": main()