Set and track habits related to productivity, self-care, and well-being.
Habits:
{generate_habit_list()}
""",
unsafe_allow_html=True,
)
if st.button("Add Habit"):
habit = st.text_input("Habit")
if habit:
add_habit(habit)
def generate_habit_list():
habit_list = ""
for index, habit in enumerate(habits):
habit_list += f'
Get personalized recommendations for managing ADHD based on your responses.
""",
unsafe_allow_html=True,
)
age = st.number_input("What is your age?", min_value=1, max_value=100, value=25, step=1)
occupation = st.text_input("What is your occupation?")
challenges = st.text_area("What are the main challenges you face with ADHD?")
if st.button("Get Personalized Recommendations"):
prompt = f"I am {age} years old, working as a {occupation}. The main challenges I face with ADHD are: {challenges}. Can you provide personalized recommendations for managing ADHD in my daily life and work?"
recommendations = get_chatgpt_response(prompt)
st.markdown(
f"""
Personalized Recommendations:
{recommendations}
""",
unsafe_allow_html=True,
)
def main():
st.set_page_config(page_title="ADHD Toolkit", layout="wide")
# Define color scheme
primary_color = "#1E88E5"
secondary_color = "#90CAF9"
text_color = "#FFFFFF"
# Set up sidebar
st.markdown(
f"""
""",
unsafe_allow_html=True,
)
menu = ["Home", "Task Management", "Time Management", "Habit Tracking", "Workplace Strategies", "Resources", "Personalization"]
choice = st.sidebar.selectbox("Select a section", menu)
# Set up main content area
st.markdown(
f"""
""",
unsafe_allow_html=True,
)
if choice == "Home":
st.markdown(
f"""
Welcome to the ADHD Toolkit!
This app provides tools and resources to help manage ADHD.