File size: 922 Bytes
557f143
 
 
 
451157d
557f143
 
451157d
557f143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import streamlit as st  
def main():
    st.header(":mailbox: Get In Touch With Us!")

    # <form action="https://formsubmit.co/[email protected]" method="POST">

    contact_form = """
    <form action="https://formsubmit.co/a31c8ec03a03a670e12e2b158e8e912e" method="POST">
        <input type="hidden" name="_captcha" value="false">
        <input type="text" name="name" placeholder="Your name" required>
        <input type="email" name="email" placeholder="Your email" required>
        <textarea name="message" placeholder="Your message here"></textarea>
        <button type="submit">Send</button>
    </form>
    """

    st.markdown(contact_form, unsafe_allow_html=True)

    # Use Local CSS File
    def local_css(file_name):
        with open(file_name) as f:
            st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)


    local_css("style/style.css")
if __name__ == 'main':
    main()