Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,32 +3,42 @@ import streamlit as st
|
|
3 |
# Set page config
|
4 |
st.set_page_config(page_title="Innomatics Online Trainer Bot", layout="centered")
|
5 |
|
6 |
-
#
|
7 |
-
st.markdown(
|
8 |
-
"""
|
9 |
<style>
|
10 |
.main {
|
11 |
-
background-color: #8B0000;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
}
|
13 |
h1, h3, p {
|
14 |
color: white;
|
15 |
}
|
16 |
</style>
|
17 |
-
|
18 |
-
unsafe_allow_html=True
|
19 |
-
)
|
20 |
|
21 |
-
# Title
|
22 |
st.title("Innomatics Online Trainer Bot")
|
23 |
-
|
24 |
-
# Introduction
|
25 |
st.markdown("### 👋 Welcome to the Innomatics Online Trainer Bot!")
|
26 |
st.markdown("This dashboard will guide you through your doubts in various modules.")
|
27 |
-
|
28 |
-
# Prompt
|
29 |
st.markdown("## In which module do you have doubt?")
|
30 |
|
31 |
-
#
|
32 |
col1, col2 = st.columns(2)
|
33 |
with col1:
|
34 |
if st.button("Python"):
|
|
|
3 |
# Set page config
|
4 |
st.set_page_config(page_title="Innomatics Online Trainer Bot", layout="centered")
|
5 |
|
6 |
+
# Inject custom CSS for background and buttons
|
7 |
+
st.markdown("""
|
|
|
8 |
<style>
|
9 |
.main {
|
10 |
+
background-color: #8B0000;
|
11 |
+
padding: 20px;
|
12 |
+
}
|
13 |
+
.stButton>button {
|
14 |
+
background-color: #ffffff;
|
15 |
+
color: #8B0000;
|
16 |
+
border: 2px solid #8B0000;
|
17 |
+
border-radius: 10px;
|
18 |
+
padding: 10px 20px;
|
19 |
+
font-size: 18px;
|
20 |
+
font-weight: bold;
|
21 |
+
width: 100%;
|
22 |
+
transition: 0.3s ease-in-out;
|
23 |
+
}
|
24 |
+
.stButton>button:hover {
|
25 |
+
background-color: #8B0000;
|
26 |
+
color: #ffffff;
|
27 |
+
border: 2px solid white;
|
28 |
}
|
29 |
h1, h3, p {
|
30 |
color: white;
|
31 |
}
|
32 |
</style>
|
33 |
+
""", unsafe_allow_html=True)
|
|
|
|
|
34 |
|
35 |
+
# Title and intro
|
36 |
st.title("Innomatics Online Trainer Bot")
|
|
|
|
|
37 |
st.markdown("### 👋 Welcome to the Innomatics Online Trainer Bot!")
|
38 |
st.markdown("This dashboard will guide you through your doubts in various modules.")
|
|
|
|
|
39 |
st.markdown("## In which module do you have doubt?")
|
40 |
|
41 |
+
# Button layout - 2 per row
|
42 |
col1, col2 = st.columns(2)
|
43 |
with col1:
|
44 |
if st.button("Python"):
|