test1 / Home.py
dvaz's picture
Update Home.py
e0930d9
import requests
import streamlit as st
import streamlit.components.v1 as components
from streamlit_lottie import st_lottie
st.set_page_config('Home',":shark:","wide",menu_items={'About': "This is an *extremely* cool app!"})
x=requests.get('https://assets3.lottiefiles.com/packages/lf20_jtbfg2nb.json')
r=x.json()
with st.container():
st.subheader('Hi, I am Daniel :wave:')
st.title('A Data Analyst From Denmark')
st.write('This is a homepage to run and test different python scripts!')
with st.container():
st.write('---')
lc , rc =st.columns(2)
with lc:
st.header('What i do')
st.write('##')
st.write('''
- 1111111111111111111
- 2222222222222222222
- 3333333333333333333
''')
with rc:
st_lottie(r,height=300)
with st.container():
st.write('---')
st.title('Contact me')
components.html("""
<form action="https://formsubmit.co/vazirij@yahoo.com" method="POST">
<input type="hidden" name="_captcha" value="false">
<input type="text" name="name" required placeholder="Your name">
<input type="email" name="email" required placeholder="Your email">
<textarea name="message" placeholder="Your message here" required></textarea>
<br></br>
<button type="submit">Send</button>
</form>
<style>
input[type=text],input[type=email], textarea {width: 50%;padding: 12px;border: 1px solid #ccc;border-radius: 4px;box-sizing: border-box;margin-top: 6px;margin-bottom: 16px;resize: vertical;}
button[type=submit] {background-color: #04AA6D;color: white;padding: 12px 20px;border: none;border-radius: 4px;cursor: pointer;}
button[type=submit]:hover {background-color: #45a049}
</style>
""",height=300)
st.write('---')