diff --git a/app.py b/app.py index 06e3932..2f8d37c 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,55 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") # --- Custom CSS for Toggle Button --- diff --git a/css/styles.py b/css/styles.py index ffb9989..68e00e4 100644 --- a/css/styles.py +++ b/css/styles.py @@ -10,13 +10,13 @@ def apply_custom_css(): from core.theme import get_current_theme theme_config = get_current_theme() theme_overrides = { - 'primary': '#6366f1', - 'primary_light': '#818cf8', - 'primary_dark': '#4f46e5', + 'primary': '#ff7096', + 'primary_light': '#ff99ac', + 'primary_dark': '#ff477e', 'secondary': '#ec4899', 'success': '#10b981', - 'warning': '#f59e0b', - 'danger': '#ef4444', + 'warning': '#ff0a54', + 'danger': '#c9184a', 'surface': 'rgba(255,255,255,0.14)', 'surface_alt': 'rgba(25,25,46,0.23)', 'text_primary': '#fff', diff --git a/pages/About.py b/pages/About.py index ec6f660..bfa903d 100644 --- a/pages/About.py +++ b/pages/About.py @@ -35,6 +35,11 @@ def set_background(image_path): background-color: rgba(0, 0, 0, 0); }} + h1 {{ + color: rgb(214, 51, 108) !important; + text-shadow: 1px 1px 2px rgba(0,0,0,0.2); + }} + /* Hide left/right arrow at sidebar bottom */ button[title="Close sidebar"], button[title="Open sidebar"] {{ @@ -46,7 +51,7 @@ def set_background(image_path): ) # ✅ Set your background image -set_background("static_files/mint.png") +set_background("static_files/pink.png") # ------------ About Page Content ------------ st.title("About TalkHeal") diff --git a/pages/AppOverview.py b/pages/AppOverview.py index ff925c7..9f12111 100644 --- a/pages/AppOverview.py +++ b/pages/AppOverview.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show_app_overview(): diff --git a/pages/Blog.py b/pages/Blog.py index 096be09..41295b9 100644 --- a/pages/Blog.py +++ b/pages/Blog.py @@ -1,12 +1,70 @@ import streamlit as st +import base64 from datetime import datetime import json import math +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + # --- Blog Data --- # In a real app, this might come from a database or a CMS. # For now, we'll store it as a list of dictionaries. + +BLOG_POSTS = [ + { + "id": 1, + "title": "How to Start Your Healing Journey: A Beginner's Guide", + "author": "Team Talkheal", + "date": datetime(2025, 9, 19), + "excerpt": "Healing is not a destination, but a gentle, ongoing process of returning to yourself. This guide offers five simple yet powerful first steps you can take today...", + "featured_image": "static_files/Yoga_Pink.png", + "content": ''' +

Healing is a personal and often non-linear journey. It's about progress, not perfection. If you're feeling lost and don't know where to begin, remember that the smallest step in the right direction can make the biggest difference. Here are five simple yet powerful first steps you can take today.

+ def load_blog_posts(): with open('data/blog_posts.json', 'r') as f: posts = json.load(f) @@ -14,6 +72,7 @@ def load_blog_posts(): post['date'] = datetime.strptime(post['date'], '%Y-%m-%d') return posts + BLOG_POSTS = load_blog_posts() @@ -25,6 +84,83 @@ def get_reading_time(content): return "1 min read" return f"{minutes} min read" +

4. Connect with Nature

+

Nature has a profound ability to soothe and heal. If you can, spend 10-15 minutes outdoors. It doesn't have to be a strenuous hike; a simple walk in a local park, sitting on a bench, or even just paying attention to the sky from your window can help. Focus on the sensory details—the feeling of the sun on your skin, the sound of birds, the smell of rain. This helps pull you out of your internal world and into the calming presence of the natural world.

+ +

5. Reach Out for Support

+

Healing doesn't have to be a solitary journey. Reaching out is a sign of strength, not weakness. This could mean talking to a trusted friend or family member, or simply starting a conversation with your AI companion here at TalkHeal. Sharing your experience can lessen the burden and remind you that you are not alone.

+
+

Remember, your healing journey is uniquely yours. Be patient and compassionate with yourself. Every step, no matter how small, is a victory.

+ ''' + }, + { + "id": 2, + "title": "Your Mood is a Map: How Tracking Your Emotions Can Guide You", + "author": "Team Talkheal", + "date": datetime(2025, 9, 22), + "excerpt": "Our feelings can seem chaotic, but they hold valuable clues to our well-being. Discover how the simple act of tracking your mood can serve as a personal map, guiding you toward greater self-awareness and emotional balance...", + "featured_image": "static_files/Tools_Pink.png", + "content": ''' +

Our emotions can often feel like unpredictable weather—stormy one moment, sunny the next. But what if you had a way to navigate this internal landscape? Mood tracking is that compass. It's the simple practice of noting how you feel each day, and it's a powerful tool for self-discovery.

+ +

1. Why Track Your Mood?

+

Awareness is the first step to change. By consistently checking in with yourself, you move from being reactive to your emotions to being proactive. Tracking helps you see beyond the immediate feeling and understand the bigger picture of your emotional health. It provides a baseline, allowing you to notice when things are off and celebrate when you're feeling good.

+ +

2. How to Start: The Art of the Daily Check-in

+

Getting started is easy. Use the Mood Dashboard feature in TalkHeal to log how you're feeling. Was it a 'Happy' day or a 'Stressed' one? You don't need to write a novel. A simple, honest label is enough. The goal is to create a consistent habit of pausing and acknowledging your internal state without judgment.

+ +

3. Connect the Dots: Identify Your Patterns

+

After a week or two of tracking, you'll have a valuable set of data. Now you can become a detective in your own life. Look for patterns: +

+ These connections, which might seem obvious in hindsight, are often hidden in the noise of daily life. Seeing them written down makes them tangible and actionable.

+ +

4. From Insight to Action

+

Your mood map isn't just for observation; it's for navigation. Once you identify a pattern, you can make small, intentional changes. If you notice that a morning walk boosts your mood, you can prioritize it. If you find that scrolling social media before bed correlates with anxiety, you can create a new wind-down routine. Your data empowers you to make informed decisions that genuinely support your well-being.

+
+

Your feelings are valid, and they are valuable sources of information. Start tracking your mood today and discover the power of your own emotional map.

+ ''' + }, + { + "id": 3, + "title": "The Science of Small Wins: Building Healthy Habits That Stick", + "author": "Team Talkheal", + "date": datetime(2025, 9, 22), + "excerpt": "Big life changes often start with the smallest steps. We explore the science behind how habits are formed and offer practical, gentle strategies to help you build positive routines that last, one small win at a time...", + "featured_image": "static_files/Home_Pink.png", + "content": ''' +

Have you ever set a huge goal—like meditating for 30 minutes every day—only to give up after a few attempts? You're not alone. The secret to lasting change isn't about massive bursts of effort; it's about the quiet, consistent power of small, positive habits.

+ +

1. The Habit Loop: Cue, Routine, Reward

+

Scientists who study behavior have identified a simple neurological loop at the core of every habit. It consists of three parts: +

+ To build a new habit, you need to make this loop work for you, not against you.

+ +

2. Start 'Too Small to Fail'

+

The biggest mistake we make is starting too big. Instead, make your new habit so easy that you can't say no. Want to start journaling? Don't commit to writing three pages; commit to writing one sentence. Want to meditate? Start with one minute. These 'small wins' release dopamine in your brain, creating a positive feedback loop that builds momentum.

+ +

3. Habit Stacking: Anchor the New to the Old

+

A powerful technique is to 'stack' your new habit on top of an existing one. The existing habit acts as the cue. For example: +

+ This anchors the new behavior to a solid foundation, making it much more likely to stick.

+ +

4. Track the Process, Not Just the Goal

+

Focus on showing up, not on the results. Use the Habit Builder in TalkHeal to track your consistency. Seeing a chain of checkmarks is a powerful reward in itself. It shifts your focus from a distant, intimidating goal to the simple, achievable act of not breaking the chain today. If you miss a day, don't panic. The rule is simple: never miss twice.

+
+

Be patient and celebrate your small wins. Lasting change is a marathon, not a sprint, and it's built one tiny, consistent step at a time.

+ ''' + } +] def show_blog_list(): """Displays the list of blog post summaries.""" @@ -131,4 +267,4 @@ def show(): else: show_blog_list() -show() \ No newline at end of file +show() diff --git a/pages/Breathing_Exercise.py b/pages/Breathing_Exercise.py index e9896d0..a5ec173 100644 --- a/pages/Breathing_Exercise.py +++ b/pages/Breathing_Exercise.py @@ -1,9 +1,60 @@ import streamlit as st +import base64 import time import datetime import json from streamlit_lottie import st_lottie +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + # --- CONFIG & CONSTANTS --- TECHNIQUES = { "Default Relaxation (4-2-4)": {"inhale": 4, "hold1": 2, "exhale": 4, "hold2": 0}, @@ -55,7 +106,7 @@ def calculate_weekly_minutes(log): # --- UI VIEWS --- def show_setup_view(): - st.markdown("

🧘 Breathing Exercise

", unsafe_allow_html=True) + st.markdown("

🧘 Breathing Exercise

", unsafe_allow_html=True) st.markdown("Use this guided exercise to relax. Select a technique, then start your session.") st.markdown("### 📊 Your Progress") @@ -79,7 +130,7 @@ def run_session_view(): inhale, hold1, exhale, hold2 = params['inhale'], params['hold1'], params['exhale'], params['hold2'] cycle_length = sum(params.values()) - st.markdown(f"

🧘 {st.session_state.breathing_technique}

", unsafe_allow_html=True) + st.markdown(f"

🧘 {st.session_state.breathing_technique}

", unsafe_allow_html=True) lottie_animation = load_lottie_animation(LOTTIE_ANIMATION_PATH) if lottie_animation: diff --git a/pages/Careers.py b/pages/Careers.py index ed0edd4..2fba161 100644 --- a/pages/Careers.py +++ b/pages/Careers.py @@ -1,4 +1,50 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") def show(): st.markdown(""" diff --git a/pages/Community.py b/pages/Community.py index ce85085..afc7a62 100644 --- a/pages/Community.py +++ b/pages/Community.py @@ -1,6 +1,53 @@ import streamlit as st +import base64 from pathlib import Path +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + + def show(): """Renders a more visually appealing Community page using tabs and icons.""" @@ -14,12 +61,12 @@ def show(): .community-header { text-align: center; padding: 2rem 1rem; - background: linear-gradient(135deg, #e6f7ff 0%, #f0f8ff 100%); + background: linear-gradient(135deg, #ffe4f0 0%, #fff 100%); border-radius: 18px; margin-bottom: 2rem; } .community-header h1 { - color: #007bff; + color: rgb(214, 51, 108); font-family: 'Baloo 2', cursive; font-size: 2.5rem; font-weight: 700; @@ -45,14 +92,17 @@ def show(): font-size: 1.5rem; margin-right: 1rem; } + """, unsafe_allow_html=True) + + with st.container(): # --- Header Section --- st.markdown("""
-

Welcome to the TalkHeal Community

+

👋Welcome to the TalkHeal Community

Connect. Share. Grow.

""", unsafe_allow_html=True) diff --git a/pages/CommunityForum.py b/pages/CommunityForum.py index 1499c6e..5649c25 100644 --- a/pages/CommunityForum.py +++ b/pages/CommunityForum.py @@ -1,10 +1,115 @@ import streamlit as st +import base64 import random import datetime -# --- Page Configuration --- -st.set_page_config(page_title="Community Forum", page_icon="🌐", layout="wide") +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + +def show(): + """Renders a more visually appealing Community page using tabs and icons.""" + st.markdown(""" + + """, unsafe_allow_html=True) + + + + with st.container(): + # --- Header Section --- + st.markdown(""" +
+

🌐Community Forum

+

Welcome! Connect, share, and support each other in a safe, AI-moderated environment.

+
+ """, unsafe_allow_html=True) + +if __name__ == "__main__": + show() + # --- Helper Functions --- # List of fun anonymous names @@ -105,9 +210,6 @@ def show_posts(): initialize_state() -st.title("🌐 Community Forum") -st.markdown("Welcome! Connect, share, and support each other in a safe, AI-moderated environment.") - with st.expander("📘 Forum Guidelines"): st.markdown(""" - **Be Kind & Respectful:** Treat everyone with respect. No personal attacks. @@ -131,3 +233,5 @@ def show_posts(): st.markdown("---") st.info("This is a prototype. Posts are cleared when you close the browser tab.") + + diff --git a/pages/ContactUs.py b/pages/ContactUs.py index 2aaff5f..be198a1 100644 --- a/pages/ContactUs.py +++ b/pages/ContactUs.py @@ -1,30 +1,111 @@ import streamlit as st +import base64 -def show(): - # Inject CSS to style the container - st.markdown(""" +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + + +def show(): + """Renders a more visually appealing Community page using tabs and icons.""" + + st.markdown(""" + """, unsafe_allow_html=True) - # Use a markdown div to apply the custom class - st.markdown("
", unsafe_allow_html=True) + + + with st.container(): + # --- Header Section --- + st.markdown(""" +
+

📞Contact Us

+

We'd love to hear from you! Please fill out the form below or reach out to us via email.

+
+ """, unsafe_allow_html=True) - st.markdown("

Contact Us

", unsafe_allow_html=True) - st.write("We'd love to hear from you! Please fill out the form below or reach out to us via email.") - st.write("") # Add a little space # --- Interactive Contact Form --- with st.form("contact_form", clear_on_submit=True): diff --git a/pages/CookiePolicy.py b/pages/CookiePolicy.py index ee6b8de..63d0c61 100644 --- a/pages/CookiePolicy.py +++ b/pages/CookiePolicy.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show(): st.markdown(""" diff --git a/pages/CopyrightNotice.py b/pages/CopyrightNotice.py index 9bb0830..7172a0d 100644 --- a/pages/CopyrightNotice.py +++ b/pages/CopyrightNotice.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def render_page(): """ diff --git a/pages/Disclaimer.py b/pages/Disclaimer.py index 5c7e955..c309375 100644 --- a/pages/Disclaimer.py +++ b/pages/Disclaimer.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show(): st.markdown(""" diff --git a/pages/FAQs.py b/pages/FAQs.py index 752c60d..8673d32 100644 --- a/pages/FAQs.py +++ b/pages/FAQs.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + # Page title st.markdown(""" diff --git a/pages/Habit_Builder.py b/pages/Habit_Builder.py index 311c446..ef6b621 100644 --- a/pages/Habit_Builder.py +++ b/pages/Habit_Builder.py @@ -1,4 +1,5 @@ import streamlit as st +import base64 import datetime import random import json @@ -9,6 +10,52 @@ from plotly.subplots import make_subplots import pandas as pd +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + + @dataclass class Habit: name: str diff --git a/pages/HelpCenter.py b/pages/HelpCenter.py index 1e4c41d..22ec648 100644 --- a/pages/HelpCenter.py +++ b/pages/HelpCenter.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show(): # Page title diff --git a/pages/Journaling.py b/pages/Journaling.py index fc3e556..ea2b03f 100644 --- a/pages/Journaling.py +++ b/pages/Journaling.py @@ -5,6 +5,51 @@ from datetime import date from core.utils import require_authentication +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + # Centralized Authentication Check if "authenticated" not in st.session_state: st.session_state.authenticated = False diff --git a/pages/NewsletterSignup.py b/pages/NewsletterSignup.py index 2f324ac..4df9dbc 100644 --- a/pages/NewsletterSignup.py +++ b/pages/NewsletterSignup.py @@ -1,6 +1,57 @@ import streamlit as st +import base64 import re +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def newsletter_signup_form(): """Displays the newsletter signup form and handles submission.""" @@ -30,7 +81,7 @@ def newsletter_signup_form(): else: st.error("Please enter a valid email address.") - st.markdown("

We respect your privacy and will never share your email.

", unsafe_allow_html=True) + st.markdown("

We respect your privacy and will never share your email.

", unsafe_allow_html=True) def show(): """Renders the Newsletter Signup page.""" diff --git a/pages/Pinned_msg.py b/pages/Pinned_msg.py index a76760c..5106717 100644 --- a/pages/Pinned_msg.py +++ b/pages/Pinned_msg.py @@ -50,14 +50,66 @@ def set_background(image_path): ) # Set your background image -set_background("static_files/lavender.png") +set_background("static_files/pink.png") + +def show(): + """Renders a more visually appealing Community page using tabs and icons.""" + + st.markdown(""" + + """, unsafe_allow_html=True) + -def render_pinned_messages_page(): - """Render the pinned messages page""" - st.title("📌 Pinned Messages") - inject_custom_css() # load same chat bubble styles + with st.container(): + + st.markdown(""" +
+

📌 Pinned Messages

+
+ """, unsafe_allow_html=True) + +if __name__ == "__main__": + show() +def render_pinned_messages_page(): + # Initialize pinned messages if not exists if "pinned_messages" not in st.session_state: st.session_state.pinned_messages = [] diff --git a/pages/PrivacyPolicy.py b/pages/PrivacyPolicy.py index a60cd66..4a1a8fd 100644 --- a/pages/PrivacyPolicy.py +++ b/pages/PrivacyPolicy.py @@ -1,4 +1,51 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show(): st.markdown(""" diff --git a/pages/QnA.py b/pages/QnA.py index e4df658..6120fd6 100644 --- a/pages/QnA.py +++ b/pages/QnA.py @@ -1,23 +1,117 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") def show(): - # Page Header + """Renders a more visually appealing Community page using tabs and icons.""" + st.markdown(""" -
-

Expert-Led Q&A Sessions

-

- Connect with licensed mental health professionals, gain valuable insights, and get your questions answered in our expert-led sessions. -

-
+ """, unsafe_allow_html=True) + + + with st.container(): + + st.markdown(""" +
+

Expert-Led Q&A Sessions

+

Connect with licensed mental health professionals, gain valuable insights, and get your questions answered in our expert-led sessions.

+
+ """, unsafe_allow_html=True) + st.markdown("---") # Meet our Experts Section st.markdown("

Meet Our Experts

", unsafe_allow_html=True) col1, col2, col3 = st.columns(3) with col1: - st.image("static_files/pink.png", width=150) + st.image("static_files/blue.png", width=150) st.markdown("

Dr. Rahul Kumar
Clinical Psychologist

", unsafe_allow_html=True) with col2: st.image("static_files/mint.png", width=150) diff --git a/pages/SocialMedia.py b/pages/SocialMedia.py index 10d4d40..bfced9d 100644 --- a/pages/SocialMedia.py +++ b/pages/SocialMedia.py @@ -1,6 +1,52 @@ import streamlit as st +import base64 +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show(): st.markdown("""
diff --git a/pages/TermsOfService.py b/pages/TermsOfService.py index 512176f..1271165 100644 --- a/pages/TermsOfService.py +++ b/pages/TermsOfService.py @@ -1,5 +1,52 @@ import streamlit as st +import base64 + +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + def show(): st.markdown(""" diff --git a/pages/WellnessResourceHub.py b/pages/WellnessResourceHub.py index f476f8c..86ef65b 100644 --- a/pages/WellnessResourceHub.py +++ b/pages/WellnessResourceHub.py @@ -1,9 +1,61 @@ import streamlit as st +import base64 import random import pandas as pd from datetime import datetime import uuid +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + + st.set_page_config(page_title="Wellness Resource Hub", layout="wide") # --- Sidebar Navigation --- diff --git a/pages/Yoga.py b/pages/Yoga.py index bfd050d..9d49b56 100644 --- a/pages/Yoga.py +++ b/pages/Yoga.py @@ -38,7 +38,7 @@ def get_base64_of_bin_file(bin_file): except FileNotFoundError: yoga_data = {} -background_image_path = "static_files/lavender.png" +background_image_path = "static_files/pink.png" base64_background_image = get_base64_of_bin_file(background_image_path) st.markdown(f""" @@ -80,8 +80,13 @@ def get_base64_of_bin_file(bin_file): border: none !important; }} -h1, h2, h3, h4, h5, h6, p, span, strong, div, label {{ - color: #4a148c !important; +h1 {{ + color: rgb(214, 51, 108) !important; + text-shadow: 1px 1px 2px rgba(0,0,0,0.2); +}} + +h2, h3, h4, h5, h6, p, span, strong, div, label {{ + color: rgba(49, 51, 63, 0.8) !important; text-shadow: 1px 1px 2px rgba(0,0,0,0.2); }} @@ -157,7 +162,7 @@ def get_base64_of_bin_file(bin_file): }} div[data-baseweb="popover"] li {{ - color: #4a148c !important; + color: rgba(49, 51, 63, 0.8) !important; font-weight: 500; transition: background-color 0.2s ease; }} @@ -231,7 +236,7 @@ def get_base64_of_bin_file(bin_file): div[data-testid="stButton"] > button {{ background: linear-gradient(to bottom, #ffffff, #f0f0f0); - color: #4a148c !important; + color: rgba(49, 51, 63, 0.8) !important; border: 1px solid #cccccc !important; border-radius: 12px !important; font-weight: bold !important; diff --git a/pages/doctor_spec.py b/pages/doctor_spec.py index 2d8bb8a..27594c6 100644 --- a/pages/doctor_spec.py +++ b/pages/doctor_spec.py @@ -1,4 +1,5 @@ import streamlit as st +import base64 import pandas as pd import os from collections import Counter @@ -9,6 +10,51 @@ from sklearn.naive_bayes import GaussianNB from sklearn.neighbors import KNeighborsClassifier +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + # Force your own page config st.set_page_config( page_title="Disease Predictor & Doctor Specialist Recommender", diff --git a/pages/reset.py b/pages/reset.py index e60d04d..e4f4630 100644 --- a/pages/reset.py +++ b/pages/reset.py @@ -1,6 +1,52 @@ import streamlit as st +import base64 from components.reset_page import show_reset_password_page +def set_background(image_path): + with open(image_path, "rb") as image_file: + encoded_string = base64.b64encode(image_file.read()).decode() + + st.markdown( + f""" + + """, + unsafe_allow_html=True + ) + +# ✅ Set your background image +set_background("static_files/pink.png") + # --- Grab token from URL --- reset_token = st.query_params.get("token") diff --git a/pages/selfHelpTools.py b/pages/selfHelpTools.py index 3c4dc8b..11a5b70 100644 --- a/pages/selfHelpTools.py +++ b/pages/selfHelpTools.py @@ -41,6 +41,11 @@ def set_background(image_path): [data-testid="stHeader"] { background-color: rgba(0, 0, 0, 0); } + + h1 { + color: rgb(214, 51, 108) !important; + text-shadow: 1px 1px 2px rgba(0,0,0,0.2); + } /* Hide left/right arrow at sidebar bottom */ button[title="Close sidebar"], @@ -65,7 +70,7 @@ def set_background(image_path): # ✅ Set your background image -set_background("static_files/lavender.png") +set_background("static_files/pink.png") # --- Structured Emergency Resources --- diff --git a/static_files/Tools_Pink.png b/static_files/Tools_Pink.png new file mode 100644 index 0000000..1c29c70 Binary files /dev/null and b/static_files/Tools_Pink.png differ diff --git a/static_files/Yoga_Pink.png b/static_files/Yoga_Pink.png new file mode 100644 index 0000000..907e8d5 Binary files /dev/null and b/static_files/Yoga_Pink.png differ