Workout Plan Generator

Workout Plan

Category Exercise Duration Date Actions

Workout Plan Generator Documentation

The Workout Plan Generator allows users to create customized workout plans based on their fitness goals. Users can add various exercises categorized into different types such as Strength Training, Cardio, Flexibility, Balance, Endurance, and HIIT. The application also provides suggestions for exercises and generates a PDF report of the workout plan.

Features

  • Add multiple categories of exercises such as Strength Training, Cardio, Flexibility, Balance, Endurance, and HIIT.
  • Input fields for exercise name, duration (in minutes), and date.
  • Exercise name suggestions based on common exercises.
  • Displays exercise details in a table with options to add, edit, and delete entries.
  • Generates a pie chart visualization of the workout plan by categories.
  • Automatically clears input fields after adding an exercise.
  • Generates a PDF report with the workout plan, including a random motivational quote and summary information.
  • Responsive design and dark theme interface for improved user experience.

Usage Instructions

  1. Select a category from the dropdown menu.
  2. Enter the exercise name or choose from the suggestions.
  3. Input the duration of the exercise in minutes.
  4. Select the date of the exercise.
  5. Click the "Add Exercise" button to add the exercise to the table.
  6. Repeat steps 1-5 to add more exercises.
  7. View the workout plan in the table and pie chart visualization.
  8. Click the "Download as PDF" button to generate a PDF report of the workout plan.

Use Cases

This Workout Plan Generator is useful for individuals who want to create a structured workout plan tailored to their fitness goals. It can be used by:

  • Fitness enthusiasts looking to track their workouts.
  • Personal trainers creating workout plans for clients.
  • Individuals preparing for specific fitness goals, such as marathons or bodybuilding competitions.
  • Anyone looking to maintain a balanced and diverse workout routine.

Formulas and Calculations

The total duration of workouts is calculated by summing up the duration of each exercise. The pie chart represents the distribution of workout categories based on the total duration of exercises in each category.

Total Duration = Sum of durations of all exercises

The PDF report includes a motivational quote, the list of exercises with their details, and the total duration of the workout plan.

Developer Information

Developed by Sourav Chhimpa

Contact: souravchhimpa1@gmail.com

GitHub: https://github.com/souravhere

Acknowledgments

  • Chart.js - for interactive chart visualizations.
  • pdfmake - for generating PDF documents from HTML content.
  • Tailwind CSS - for responsive and customizable UI components.