import streamlit as st
import streamlit.components.v1 as components
st.set_page_config(page_title="FitPlan AI Elite", page_icon="💎", layout="wide")
# =============================
# FULL PREMIUM STYLING
# =============================
st.markdown("""
""", unsafe_allow_html=True)
# =============================
# HERO
# =============================
st.markdown("
💎 FitPlan AI Elite
", unsafe_allow_html=True)
st.markdown("Train Smart. Perform Elite.
", unsafe_allow_html=True)
# =============================
# FEATURE SECTION
# =============================
components.html("""
🔥 Next-Gen AI Fitness Intelligence
Smart BMI • AI Plans • Optimized Progression
""", height=420)
# =============================
# FORM
# =============================
name = st.text_input("Full Name")
col1, col2, col3 = st.columns(3)
with col1:
age = st.number_input("Age", min_value=15, max_value=60, step=1)
with col2:
height_cm = st.number_input("Height (cm)", min_value=0, step=1)
with col3:
weight_kg = st.number_input("Weight (kg)", min_value=0)
goal = st.selectbox("Goal",
["Build Muscle", "Weight Loss", "Strength Gain", "Abs Building", "Flexible"]
)
level = st.selectbox("Level",
["Beginner", "Intermediate", "Advanced"]
)
equipment = st.multiselect("Equipment",
["Dumbbells", "Resistance Band", "Yoga Mat", "Bench", "Pullup Bar"]
)
generate = st.button("Generate Elite Plan 🚀")
# =============================
# REDIRECT TO WORKOUT PAGE
# =============================
if generate:
if name and age and height_cm > 0 and weight_kg > 0:
st.session_state.user_data = {
"name": name,
"age": age,
"height": height_cm,
"weight": weight_kg,
"goal": goal,
"level": level,
"equipment": equipment
}
st.switch_page("pages/1_Workout_Plan.py")
else:
st.error("Please fill all required fields.")