From 142c8fe64e60c6325efcbb8e4d7502bda31798f8 Mon Sep 17 00:00:00 2001 From: Shrinjali Kumar Date: Mon, 4 Aug 2025 22:30:38 +0530 Subject: [PATCH 1/2] Added Feel-Good Zone page with pink theme, music, videos, and mental exercises --- TalkHeal.py | 9 +---- pages/feelgoodzone.py | 87 ++++++++++++++++++++++++++++++++++++++++++ users.db | Bin 16384 -> 16384 bytes 3 files changed, 88 insertions(+), 8 deletions(-) create mode 100644 pages/feelgoodzone.py diff --git a/TalkHeal.py b/TalkHeal.py index 9744f1c..27bd350 100644 --- a/TalkHeal.py +++ b/TalkHeal.py @@ -1,3 +1,4 @@ +from gzip import READ import streamlit as st from auth.auth_utils import init_db from components.login_page import show_login_page @@ -52,16 +53,8 @@ from components.header import render_header from components.sidebar import render_sidebar from components.chat_interface import render_chat_interface, handle_chat_input -<<<<<<< HEAD from components.mood_dashboard import render_mood_dashboard -# from components.emergency_page import render_emergency_page from components.focus_session import render_focus_session -======= - -# from components.emergency_page import render_emergency_page -from components.focus_session import render_focus_session - ->>>>>>> ce9c257abbf52a8ccf45e12292c64c36660656d0 from components.emergency_page import render_emergency_page from components.profile import apply_global_font_size diff --git a/pages/feelgoodzone.py b/pages/feelgoodzone.py new file mode 100644 index 0000000..4671812 --- /dev/null +++ b/pages/feelgoodzone.py @@ -0,0 +1,87 @@ +import streamlit as st +import time + +# Page Config +st.set_page_config(page_title="Feel-Good Zone", page_icon="πŸ’–") + +# Custom CSS for pink theme +st.markdown( + """ + + """, + unsafe_allow_html=True, +) + +# Title +st.title("πŸ’– Feel-Good Zone") +st.write("Welcome to your safe space! Relax, recharge, and have fun with music, videos, and light exercises.") + +# Section: Calming Music +st.header("🎡 Calming Music") +st.write("Unwind with relaxing playlists:") +st.video("https://www.youtube.com/watch?v=2OEL4P1Rz04") + +# Section: Motivational Videos +st.header("πŸŽ₯ Motivational Videos") +st.write("Boost your mood with these inspiring clips:") +st.video("https://www.youtube.com/watch?v=mgmVOuLgFB0") + +# Section: Mental Light Exercises +st.header("🧠 Mental Light Exercises") + +# Breathing Exercise +with st.container(): + st.markdown("
", unsafe_allow_html=True) + st.subheader("Breathing Exercise 🌬️") + if st.button("Start Breathing Exercise"): + st.write("Inhale... 🫁") + time.sleep(2) + st.write("Hold...") + time.sleep(2) + st.write("Exhale... 🌬️") + time.sleep(2) + st.success("Great job! You are calmer already.") + st.markdown("
", unsafe_allow_html=True) + +# Mood Quiz +with st.container(): + st.markdown("
", unsafe_allow_html=True) + st.subheader("Quick Mood Quiz 🎯") + mood = st.radio("How are you feeling today?", ["😊 Happy", "😌 Relaxed", "πŸ˜” Stressed", "😴 Tired"]) + if st.button("Get Mood Boost"): + if mood == "😊 Happy": + st.success("Keep shining bright! 🌟") + elif mood == "😌 Relaxed": + st.info("That's wonderful! Maintain this calm energy.") + elif mood == "πŸ˜” Stressed": + st.warning("Take a deep breath. You’re stronger than you think!") + elif mood == "😴 Tired": + st.error("Time for a short break. Maybe some music?") + st.markdown("
", unsafe_allow_html=True) diff --git a/users.db b/users.db index 1931765848cb489d53d33d07a6ff7138341f9456..c35b0e841066b2d343604eb86719eadc0267f531 100644 GIT binary patch delta 320 zcmZo@U~Fh$oFL7}F;T{um4iVqnQ>#v0)9SLJ|hPH+5EPAANeNo8EtG-;H!^iV`C7t zZe%UaC@KZw%)G3`oXqUf+{7Y>^xVYEoaFpm6{92-LnDV?(c~#Pl!|kK_QC6#w)RLrXv3z^cmBI94_Wd1J8g5Tg-xfX#P6 zvcSN}GP1xcs>nUexYR8tG&9x2)w?LwFSH=gBhe_>#KqaPEWp`6D%0eK34ut2L8SLOZhwbkMTd+ET~Y?1qJ{vc8jrOpbrWI4)FjFn-4t>@v|Wy;|{a&9uolu Y0}s6b552PvAbSsykT|owFG3Ij1d8wzx&QzG From c7335e539cd588f6d031b466ca2b70b9f44827ba Mon Sep 17 00:00:00 2001 From: Sagnik Chakraborty Date: Fri, 5 Sep 2025 20:19:48 +0530 Subject: [PATCH 2/2] Delete users.db --- users.db | Bin 16384 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 users.db diff --git a/users.db b/users.db deleted file mode 100644 index c35b0e841066b2d343604eb86719eadc0267f531..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI(J8#-R902fh9NZ*QaHT3@h^l(XkSGzsm=K~UQVf`Y0h@<;s%>PzfP;D2I3a9N zr;MFDx8I^`w|%=O3gGl!ma%;pO7DCrF*At}O%kYh5rM4Hc4n50l)_<|xQB-}eK zNXpJ!kLj$8B9s+Il5rGLsrh=XtLnzAK|xAn3&Jz)2C8LU^v%ZnSoc$HZ7ooqBM*V} zUPBw--nwd!`cC=OxtCMc$w&-6-QS~C94@yX(Vyre_fPjnd>5Q zBw0M*&n8CKuH|<{D_G=Mv8uL;fp|R=ZOE+=dmyE=lS}Qri$ZTWXZYFB4|6;n-xofp z48*E=QsnHIQP8!3kTf-^Fv!MLe?Ab6?44&K@|n_L)#l`)SuRG0Mo?VD%U`>4v3@Qv zjoY0~UW4@#4a`gVar zuP}vLt6QdSwMRM|@^QZX*+RV!5{YCa)~#mqlTMZEPcp;Uxiw&AEo@cUST0~I^^#Vt z$?;I<#3v0>!<>)5EJf-Bh1U5iSAI71?F=n@FjCnN_va)^IT@BElil^Ey`@q>uE~bp z){ORqKWF!OO)TYF*@74q>t4}2QpT$8k7n~L_=&pcYeavgKhxLrH~I&B$w2@FKmY_l z00ck)1V8`;KmY_l00jP-z&d$IJREh*9j8zpl6zEle+=SUBG-uN8OEa1`R^wX3$ICj x`T4Vh>F@sp{R`n2BoF`r5C8!X009sH0T2KI5C8!X0D=EWV3{C2g!4ZD>Ni86F1G*x