Upload 11 files
Browse files- .streamlit/config.toml +3 -0
- app.py +53 -0
- data/1.png +0 -0
- data/2.png +0 -0
- data/3.png +0 -0
- data/4.png +0 -0
- data/5.png +0 -0
- data/favicon.png +0 -0
- data/msdark.png +0 -0
- data/style.css +26 -0
- requirements.txt +2 -0
.streamlit/config.toml
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
[theme]
|
2 |
+
base="light"
|
3 |
+
primaryColor="#b99de4"
|
app.py
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st # pip install streamlit
|
2 |
+
import streamlit.components.v1 as components
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
st.set_page_config(page_title="Mohamed El Soudy Arena", page_icon="data/favicon.png", layout="centered")
|
7 |
+
st.logo("data/msdark.png")
|
8 |
+
|
9 |
+
st.sidebar.markdown("Reach me on social media!")
|
10 |
+
st.header('''***:rainbow[Write to] :violet[Mohamed El Soudy]***''')
|
11 |
+
|
12 |
+
from st_social_media_links import SocialMediaIcons
|
13 |
+
|
14 |
+
social_media_links = [
|
15 |
+
"https://www.facebook.com/profile.php?id=100092398476667",
|
16 |
+
"https://www.instagram.com/s0udy_4",
|
17 |
+
"https://www.linkedin.com/in/mohamed-el-soudy-1a3246256",
|
18 |
+
]
|
19 |
+
|
20 |
+
social_media_icons = SocialMediaIcons(social_media_links)
|
21 |
+
social_media_icons.render(sidebar=True)
|
22 |
+
|
23 |
+
|
24 |
+
contact_form = """
|
25 |
+
<form action="https://formsubmit.co/[email protected]" method="POST">
|
26 |
+
<textarea name="message" placeholder="drop some lines here"></textarea>
|
27 |
+
<input type="hidden" name="_captcha" value="false">
|
28 |
+
<button type="submit">SEND</button>
|
29 |
+
</form>
|
30 |
+
"""
|
31 |
+
|
32 |
+
st.markdown(contact_form, unsafe_allow_html=True)
|
33 |
+
|
34 |
+
# Use Local CSS File
|
35 |
+
def local_css(file_name):
|
36 |
+
with open(file_name) as f:
|
37 |
+
st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
|
38 |
+
|
39 |
+
|
40 |
+
local_css("data/style.css")
|
41 |
+
st.divider()
|
42 |
+
col1, col2, col3, col4, col5= st.columns(5)
|
43 |
+
with col1:
|
44 |
+
st.image("data/1.png")
|
45 |
+
with col2:
|
46 |
+
st.image("data/2.png")
|
47 |
+
with col3:
|
48 |
+
st.image("data/3.png")
|
49 |
+
with col4:
|
50 |
+
st.image("data/4.png")
|
51 |
+
with col5:
|
52 |
+
st.image("data/5.png")
|
53 |
+
|
data/1.png
ADDED
![]() |
data/2.png
ADDED
![]() |
data/3.png
ADDED
![]() |
data/4.png
ADDED
![]() |
data/5.png
ADDED
![]() |
data/favicon.png
ADDED
![]() |
data/msdark.png
ADDED
![]() |
data/style.css
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Style inputs with type="text", type="email"and textareas */
|
2 |
+
input[type=text], textarea {
|
3 |
+
width: 100%; /* Full width */
|
4 |
+
padding: 12px; /* Some padding */
|
5 |
+
border: 1px solid #ccc; /* Gray border */
|
6 |
+
border-radius: 4px; /* Rounded borders */
|
7 |
+
box-sizing: border-box; /* Make sure that padding and width stays in place */
|
8 |
+
margin-top: 6px; /* Add a top margin */
|
9 |
+
margin-bottom: 16px; /* Bottom margin */
|
10 |
+
resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
|
11 |
+
}
|
12 |
+
|
13 |
+
/* Style the submit button with a specific background color etc */
|
14 |
+
button[type=submit] {
|
15 |
+
background-color: #b99de4;
|
16 |
+
color: white;
|
17 |
+
padding: 12px 20px;
|
18 |
+
border: none;
|
19 |
+
border-radius: 4px;
|
20 |
+
cursor: pointer;
|
21 |
+
}
|
22 |
+
|
23 |
+
/* When moving the mouse over the submit button, add a darker green color */
|
24 |
+
button[type=submit]:hover {
|
25 |
+
background-color: #582b9d;
|
26 |
+
}
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
streamlit==1.35
|
2 |
+
st_social_media_links
|