Inspiration
Often, people aren't drinking enough water throughout the day, which can cause them to become dehydrated and lead to health issues. I decided to make a website that helps people learn how much water they should drink per day to help them stay healthy.
What it does
I built a website that allows the user to input their weight and the amount of exercise they do per day to calculate how many cups of water they should be drinking per day.
How I built it
I built the website using HTML, CSS, and JavaScript.
Challenges I ran into
One of the difficult parts of the project was performing the water intake calculation in JavaScript. I had to make sure I got the order of operations and rounding correct.
Accomplishments that I'm proud of
I am proud of myself for creating a website that helps people be healthier.
What I learned
I learned how to work with HTML forms to collect user input and then dynamically add HTML elements to display the response.
What's next for Daily Water Intake Calculator
To further develop the site, it would be cool to add more health metrics, such as calculating how many calories one should eat or how many hours of sleep they should get. It would also be great to include some information about the health effects associated with dehydration so that people can be informed and motivated to be healthier.
Log in or sign up for Devpost to join the conversation.