Skip to content

Pull Request: Added the BMI Calculator feature #30#34

Open
anuva0904 wants to merge 3 commits intoBDutta18:mainfrom
anuva0904:feature/bmi-calculator
Open

Pull Request: Added the BMI Calculator feature #30#34
anuva0904 wants to merge 3 commits intoBDutta18:mainfrom
anuva0904:feature/bmi-calculator

Conversation

@anuva0904
Copy link

This pull request introduces a new BMI Calculator tool as a dedicated section . It allows users to calculate their Body Mass Index based on their weight and height. The feature is integrated directly into the site’s existing layout and navigation, maintaining visual and functional consistency.

Created a new section with ID #bmi-calculator, styled using existing CSS variables and design patterns.
Built a responsive BMI form with input validation for height and weight.
Implemented JavaScript logic to:
• Prevent default form submission
• Validate numeric input using isNaN
• Calculate BMI using the standard formula
• Display BMI value and health category (Underweight, Normal, Overweight, Obese)
• Included smooth UX updates such as input error messages and result formatting.

This enhancement provides a practical, user-focused feature that supports health-conscious users in tracking their fitness progress directly on the platform, aligning well with the overall goal of promoting wellness and education.

Screenshot 2025-07-29 at 2 51 35 PM Screenshot 2025-07-29 at 2 52 56 PM Screenshot 2025-07-29 at 2 52 30 PM Screenshot 2025-07-29 at 2 52 09 PM

@BDutta18 BDutta18 added GSSoC '25 Find Bugs Create Issue Create Pull Request. Easy labels Jul 29, 2025
@anuva0904
Copy link
Author

Kindly review and merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Easy GSSoC '25 Find Bugs Create Issue Create Pull Request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants