Our project was created for the sustainability challenge, and we were inspired the current movement to lower one's own carbon footprint. We believe that awareness is a big part of confronting global warming and created a quiz for people's approximate contributions to carbon emissions per year as a result of the food they consume.
We created a website with a quiz asks how many times a week the user eats each specific food in our quiz (the foods that contribute to carbon emissions the most, including the most popular meats, carbohydrates, etc.). Based on our research, we calculated approximately how many servings of each food that meant that user ate per week, and how many kilograms of carbon emissions that led to every year. After taking the quiz, the user is informed approximately how many kilograms of carbon emissions their diet contributes to per year, and how that compares to the average American taking this quiz (which we calculated using the average American's consumption of each food that we included in the quiz, getting around 1050 kilograms.)
We built this project using HTML, CSS, and JavaScript. The quiz portion of the website was made using JavaScript, and mainly performs calculations using the user's input to figure out the user's food carbon footprint.
Challenges we ran into included us not knowing how to code in any of HTML, CSS, and JavaScript, so that meant it took a while to figure out even basic parts of the code. Another challenge we faced was the fact that many of the statistics we found online were slightly different and in different units, which made the research for this project take a long time because it took a lot of conversions and separate calculations to have usable data to put into our code.
We are proud that we were able to make a functional quiz and website. We learned a basic use of HTML, CSS, and JavaScript.
In the future, we would like to have a more appealing-looking website and be able to have the quiz as a part of a website page instead of as a pop-up. We would also like to make the quiz even more specific and have as accurate statistics as possible.
Log in or sign up for Devpost to join the conversation.