Psychological_Chatbot / homepage.py
sravyaa02's picture
Upload 10 files
b3391d7 verified
import streamlit as st
# Homepage content
def display_homepage():
st.markdown(
"""
<div style="text-align: center; margin-top: 50px; font-size: 60px; font-weight: bold; color: #2c3e50; margin-left: auto; margin-right: auto;">
Your personal AI Therapist
</div>
""", unsafe_allow_html=True
)
st.markdown(
"""
<div style="text-align: center; font-size: 20px; color: #000000; margin-top: 20px; max-width: 700px; margin-left: auto; margin-right: auto;">
This is your healthcare chatbot that streamlines outpatient care, solves routine queries 24/7, and effortlessly automates appointment bookings, prescriptions, and reports. Let AI help you with your mental health journey.
</div>
""", unsafe_allow_html=True
)
st.markdown(
"""
<style>
.stApp {
background-image: url('https://images.pexels.com/photos/2680270/pexels-photo-2680270.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100vh;
color: white;
}
.stButton>button {
background-color: #2980b9;
color: white;
font-size: 18px;
font-weight: bold;
padding: 15px 30px;
border-radius: 8px;
border: none;
box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: background-color 0.3s ease;
}
.stButton>button:hover {
background-color: #3498db;
}
</style>
""", unsafe_allow_html=True
)
col1, col2 = st.columns([1, 1])
with col1:
if st.button("Start Chat", key="start_chat_button"):
st.session_state.page = "chat"
st.experimental_rerun() # Trigger page change
with col2:
if st.button("Predict Stress", key="predict_stress_button"):
st.session_state.page = "stress"
st.experimental_rerun() # Trigger page change