File size: 4,529 Bytes
43b467c | 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 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | import streamlit as st
from streamlit_lottie import st_lottie
import requests
# Set page config
st.set_page_config(page_title="AI Mentor", page_icon="π€", layout="wide")
# Load Lottie animation
def load_lottieurl(url: str):
r = requests.get(url)
if r.status_code != 200:
return None
return r.json()
lottie_data_analysis = load_lottieurl("https://lottie.host/571aba1a-4b17-422d-a872-94bd6f4cfdcf/kQf4QzPvsF.json")
# Custom Styling
st.markdown("""
<style>
html, body, [class*="css"] {
font-family: 'Segoe UI', sans-serif;
background-color: #0f172a;
color: #e2e8f0;
}
.main-title {
font-size: 36px;
font-weight: 700;
color: #38bdf8;
text-align: center;
margin-bottom: 10px;
}
.subheader {
font-size: 22px;
font-weight: 600;
color: #7dd3fc;
margin-top: 20px;
margin-bottom: 10px;
}
.box {
background-color: #1e293b;
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
}
.glow-button {
background-color: #38bdf8;
border: none;
color: #0f172a;
padding: 10px 20px;
border-radius: 8px;
font-weight: 600;
transition: 0.3s;
}
.glow-button:hover {
background-color: #0ea5e9;
color: white;
}
</style>
""", unsafe_allow_html=True)
# Title & Animation
st.markdown('<div class="main-title">π€ AI Mentor β Learn Smarter, Not Harder</div>', unsafe_allow_html=True)
st_lottie(lottie_data_analysis, height=180, key="data_analysis")
# Tabs
tab1, tab2, tab3 = st.tabs(["π Home", "π§ Mentors", "π Contact"])
# Home Tab
with tab1:
st.markdown('<div class="subheader">Welcome to AI Mentor</div>', unsafe_allow_html=True)
st.markdown('<div class="box">', unsafe_allow_html=True)
st.write("""
AI Mentor is your all-in-one intelligent learning assistant. Whether you're writing Python code,
building ML models, or querying databases, our expert mentors guide you step-by-step β anytime you need.
""")
st.markdown('</div>', unsafe_allow_html=True)
with st.expander("π About the Creator"):
st.markdown('<div class="box">', unsafe_allow_html=True)
st.write("""
I'm a developer passionate about making tech education more accessible.
I created AI Mentor to help learners master complex concepts with ease β powered by clarity, not confusion.
""")
st.markdown('</div>', unsafe_allow_html=True)
# Mentors Tab
with tab2:
st.markdown('<div class="subheader">Meet Your Mentors</div>', unsafe_allow_html=True)
st.markdown('<div class="box">', unsafe_allow_html=True)
mentor_list = {
"π Python Mentor": "Learn clean code, logic building, and solve real-world problems.",
"π€ Machine Learning Mentor": "Understand core ML concepts, models, and workflows.",
"π§ Deep Learning Mentor": "Master CNNs, RNNs, and transformers for deep neural networks.",
"π Data Analytics Mentor": "Explore, clean, visualize, and explain your data with confidence.",
"π Statistics Mentor": "Build strong intuition for distributions, hypothesis testing & probability.",
"π’οΈ SQL & Power BI Mentor": "Query data smartly and build dashboards that deliver insight."
}
for title, desc in mentor_list.items():
st.markdown(f"**{title}** β {desc}")
st.markdown('</div>', unsafe_allow_html=True)
# Contact Tab
with tab3:
st.markdown('<div class="subheader">Letβs Connect</div>', unsafe_allow_html=True)
st.markdown('<div class="box">', unsafe_allow_html=True)
st.write("Feel free to reach out or explore my work!")
col1, col2, col3 = st.columns(3)
with col1:
st.markdown(
'<a href="https://www.linkedin.com/in/uday-kiran-bandi/" target="_blank">'
'<button class="glow-button">LinkedIn</button></a>',
unsafe_allow_html=True,
)
with col2:
st.markdown(
'<a href="https://github.com/Udaykiran-bandi" target="_blank">'
'<button class="glow-button">GitHub</button></a>',
unsafe_allow_html=True,
)
with col3:
st.markdown(
'<a href="mailto:udaykiranbandii@gmail.com">'
'<button class="glow-button">Email</button></a>',
unsafe_allow_html=True,
)
st.markdown('</div>', unsafe_allow_html=True)
|