Spaces:
Running
Running
File size: 2,542 Bytes
5141864 aa87cd8 c87a29a 5141864 db8952e aa87cd8 db8952e c43f38c db8952e aa87cd8 db8952e 5141864 5e632a8 daa2513 5e632a8 daa2513 5e632a8 aa87cd8 db8952e aa87cd8 b1f29c1 aa87cd8 3406586 aa87cd8 4863d26 aa87cd8 4863d26 aa87cd8 4863d26 aa87cd8 4863d26 |
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 79 80 81 82 83 84 85 86 87 88 89 90 91 |
import streamlit as st
# Set page config
st.set_page_config(page_title="MentorMinds Bot", layout="centered")
# Inject custom CSS for background and buttons
st.markdown("""
<style>
.main {
background-color: #8B0000;
padding: 20px;
}
.stButton>button {
background-color: #B76F27;
color: #8B0000;
border: 2px solid #8B0000;
border-radius: 10px;
padding: 10px 20px;
font-size: 18px;
font-weight: bold;
width: 100%;
transition: 0.3s ease-in-out;
}
.stButton>button:hover {
background-color: #8B0000;
color: #ffffff;
border: 2px solid white;
}
h1, h3, p {
color: white;
}
</style>
""", unsafe_allow_html=True)
#----------------------------------------------------------
from streamlit_lottie import st_lottie
import requests
# Load Lottie animation from URL
def load_lottie_url(url):
r = requests.get(url)
if r.status_code != 200:
return None
return r.json()
lottie_url = "https://lottie.host/1f0a9697-c698-4c89-8c10-3d505a5c99ca/kHiz6bHsZD.json"
lottie_animation = load_lottie_url(lottie_url)
# Title and Lottie animation side by side
left_col, right_col = st.columns([2, 1])
with left_col:
st.title("MentorMinds Bot")
st.markdown("### π Welcome to the MentorMinds Bot!")
st.markdown("This dashboard will guide you through your doubts in various modules.")
st.markdown("## In which module do you have doubt?")
with right_col:
st_lottie(lottie_animation, speed=1, height=250, key="mentorminds")
#----------------------------------------------------------
# # Title and intro
# st.title("MentorMinds Bot")
# st.markdown("### π Welcome to the MentorMinds Bot!")
# st.markdown("This dashboard will guide you through your doubts in various modules.")
# st.markdown("## In which module do you have doubt?")
# Button layout - 2 per row
col1, col2 = st.columns(2)
with col1:
if st.button("Python"):
st.switch_page("pages/python.py")
with col2:
if st.button("Machine Learning"):
st.switch_page("pages/machine_learning.py")
col3, col4 = st.columns(2)
with col3:
if st.button("Deep Learning"):
st.switch_page("pages/deep_learning.py")
with col4:
if st.button("Statistics"):
st.switch_page("pages/statistics.py")
col5, col6 = st.columns(2)
with col5:
if st.button("Excel"):
st.switch_page("pages/excel.py")
with col6:
if st.button("SQL"):
st.switch_page("pages/sql.py")
|