Fitness & Nutrition System — Bahar Tehranian
← Selected work

Case Study 04 · Personal Project · Responsive web app · 2026

I put the safety rule where the decision happens: in the check before each workout.

I replaced a static workout and nutrition PDF with a responsive web app: seven workout day cards, a daily log, a week plan, recipes, a grocery list, and a prep guide. It runs on explicit rules. Nothing in it uses AI to make decisions.

ROLESole designer & builder
STATUSLive · personal project
STACKNext.js · React · Vercel · AI-assisted development
THE DECISION I LEAD WITH

The readiness check carries the pain rule, in three bands.

Before a workout, the readiness check asks for sleep, energy, soreness, and pain. Pain maps to one of three bands, each with a single instruction. A plain go/no-go switch would have collapsed the middle case into either pushing through or skipping the session, so the middle band says what to change instead.

  1. 0–2Continue
  2. 3–4Reduce load or range
  3. 5+, sharp, or radiatingStop

The hypothesis

The first version was a polished PDF nutrition and workout guide. It looked complete but broke on a one-page display, separated guidance from the act of logging, and only ever showed a fraction of the workout system at once. I believed the actual problem wasn't the content — it was that a static document can't hold a coaching system. So I rebuilt it as a responsive product where the guidance and the log live on the same screen, on any device.

The actual screens

A portfolio rebuild of the live product’s daily tracker, using its stat cards, form fields, and colors (#162c53 navy, #16814b green). Try the buttons: it’s a working interaction, not a picture of one. For the full product, open the live link above.

Daily tracker
Log food and training
Today's calories
1,240
logged today
Today's protein
92 g
logged today
Exercises logged
2
today
01 · NUTRITION

Add food

Food or meal
Chicken quinoa bowl
✓ Added — calories and protein updated
02 · TRAINING

Add exercise

Exercise
Matrix chest press
✓ Logged — exercise count updated

Exercise logging · motion prototype

From workout plan to saved set

Proposed portfolio prototype · based on the live exercise form · sample data

In the live app, you open the exercise log from the workout plan, and a saved entry is stored in your browser. This prototype proposes three additions: the plan fills in the form, a confirmation appears the moment you save, and the new entry moves into the history list so you can see where it went.

Workout planDumbbell row3 sets · 8 reps

Log exercise

Exercise history

Your entries will appear here.

    MotionA saved entry rises into the list over 260 ms, and a green highlight fades over 680 ms to connect it to the form you just submitted.
    ConfirmationThe confirmation text appears right away in a status message that screen readers announce. Focus stays where you submitted.
    Reduced motionThe same entry and confirmation, with no movement.
    What’s live vs. proposedLive: the entry point from the plan, the form fields, saving, and local storage. Proposed here: prefill, motion, and the confirmation.

    Recipe discovery · ranked recommendations

    Rank recipes by what’s in the fridge, and say when nothing fits

    Portfolio reconstruction · the app’s 9 recipes · ranking runs in your browser

    I designed recipe matching that ranks the recipe library against the ingredients you have. Ranking uses TF-IDF and cosine similarity, so a rare ingredient like salmon counts for more than a common one like vegetables. The design problem was confidence: a ranked list always has a “top result,” even when it’s a poor fit. Like the rest of the app, matching only suggests; it never changes your plan.

    Pick what you have

      Or try:

        DecisionShow why each recipe ranked: the ingredients it shares with you and the ones you’d still need. A score alone reads as more certain than it is.
        FallbackBelow a minimum similarity, the list is replaced by a plain “No reliable match,” plus a next step, instead of a weak top result.
        Labels“Strong match” and “Partial match” come from fixed score bands, and the meter mirrors the score. Color is never the only signal.
        Not claimedThis is a personal-project prototype. I evaluated function, clarity, and the failure states, not consumer usage at scale.

        The coaching logic

        The rules are explicit and visible. The app applies them to what I log and never changes the plan on its own.

        READINESS FIRST
        Input: Sleep, energy, soreness, and pain, rated before the workout.
        Rule: The check comes before the session, not after it.
        Outcome: The instruction applies before the first set, when it can still change what happens.
        REDUCE, DON’T QUIT
        Input: Pain rated 3 during a set.
        Rule: 3–4 falls in the middle band: reduce load or range.
        Outcome: The session continues in a lighter form instead of turning into a binary go/no-go.
        STOP
        Input: Pain rated 5 or higher, or pain that is sharp or radiating.
        Rule: Stop the exercise.
        Outcome: The app says stop, plainly, with no option to push through.
        7Full workout day cards, not one representative sample
        6Connected sections: workouts, log, week plan, recipes, grocery, prep
        1Live, public web app
        0Analytics or usage data — not claimed, not available yet

        The honest limitation

        This is a shipped personal project, not a commercial product with verified adoption — there's no analytics, active-user count, or health-outcome data to cite, only the working product itself. Data currently lives in the local browser only: no accounts, no cloud sync, no cross-device history. The next upgrade is account-based sync. If I add suggestions later, they stay suggestions: nothing changes the plan without my approval.

        "A coaching system only earns trust when its rules are visible next to the log they act on — a plan you can't act on in the moment is just a document again."

        ← Back to selected workBack to the first case: Chemia →