import streamlit as st from client.pages.user__info_perso import info_perso from client.pages.user__mealplan import mealplan from client.pages.user__course_list import course_list # from client.pages.user__favoris import favoris # Appliquer le style personnalisé aux headers st.markdown( """ """, unsafe_allow_html=True, ) # Affichage du message de bienvenue st.markdown( f"""

Bienvenue sur NutriGénie {st.session_state['user']} 🍽️!

""", unsafe_allow_html=True, ) # Définition des onglets horizontaux tabs = st.tabs( [ "🧑‍💼 Informations personnelles ", "🍽️ Meal Plan", "🛒 Liste des courses", # "⭐ Favoris", ] ) # Onglet 1 : Informations personnelles with tabs[0]: st.markdown( '

🧑‍💼 Informations personnelles

', unsafe_allow_html=True, ) info_perso() # Charger la page `info_perso.py` # Onglet 2 : Meal Plan with tabs[1]: st.markdown('

🍽️ Meal Plan

', unsafe_allow_html=True) mealplan() # Charger la page `mealplan.py` # Onglet 3 : Liste des courses with tabs[2]: st.markdown('

🛒 Liste des courses

', unsafe_allow_html=True) course_list() # Charger la page `course_list.py` # Onglet 4 : Favoris # with tabs[3]: # st.markdown('

⭐ Favoris

', unsafe_allow_html=True) # favoris() # Charger la page `favoris.py`