-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout.py
78 lines (63 loc) · 2.36 KB
/
About.py
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import streamlit as st
from auth0_component import login_button
import streamlit.components.v1 as components
from streamlit_extras.mention import mention
import leafmap.foliumap as leafmap
st.set_page_config(page_title="MLheads",
page_icon="🤯",
layout="wide",
initial_sidebar_state="expanded",
menu_items={
'Get help': 'https://github.com/diaa-shalaby/HackUPC2023',
'Report a bug': "https://github.com/diaa-shalaby/HackUPC2023",
})
st.title("MLheads 🏠")
st.sidebar.info("Explore the real estate market in Spain! Meanwhile, walk through the city of Barcelona with the OpenStreetMap.")
# with open('style.css') as f:
# st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
# st.markdown("""
# <style>
# .css-8hkptd {
# margin-right: 15px;
# }
# </style>""", unsafe_allow_html=True)
# tech support section
with st.sidebar.form(key='tech_support'):
st.title("Contact")
st.markdown("Get help with any technical issue you might experience.")
mention(
label="Website",
icon="💻",
url="https://restb.ai/",
write="Website"
)
mention(
label="Twitter",
icon="🐤",
url="https://twitter.com/restb_ai?lang=en",
write="Twitter"
)
mention(
label="GitHub",
icon="⚙️",
url="https://www.github.com/diaa-shalaby/HackUPC2023",
write="GitHub"
)
# create a submit button
if st.form_submit_button("Contact us", type="secondary", use_container_width=True):
st.write("Submitted!")
st.sidebar.image("images/logo.png", use_column_width=True)
components.html("""
<html>
<head>
</head>
<iframe height="700" style="width: 100%;" scrolling="no" title="Spain OpenStreetMap" src="https://codepen.io/nqueby/embed/dygKrdm?default-tab=result" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
See the Pen <a href="https://codepen.io/nqueby/pen/dygKrdm">
Spain OpenStreetMap</a> by Nathanya Queby Satriani (<a href="https://codepen.io/nqueby">@nqueby</a>)
on <a href="https://codepen.io">CodePen</a>.
</iframe>
</html>
""",
height=700,
scrolling=True
)