close

DEV Community

Sam Keb
Sam Keb

Posted on

Earth Day Edition

DEV Weekend Challenge: Earth Day

This is a submission for Weekend Challenge: Earth Day Edition

What I Built

EcoTrack AI is a lightweight, interactive web app that calculates a personalized daily carbon footprint score. Users enter values for car travel, meat consumption, and electricity use, and the app instantly provides a “Green Score” with feedback messages. The goal is to raise awareness of everyday choices and encourage sustainable habits in a simple, engaging way.

Demo
Live demo: EcoTrack AI (samkebz-y.github.io in Bing)

Quick walkthrough: Enter sample values → click Calculate My Impact → see your score and eco‑feedback displayed instantly.

Code
GitHub repository: EcoTrack AI (github.com in Bing)

The repo includes the HTML, CSS, and JavaScript powering the calculator, with deployment via GitHub Pages.

How I Built It

  • Built with vanilla HTML, CSS, and JavaScript for simplicity and accessibility.
  • Logic in script.js calculates the score and injects results directly into the page.
  • Hosted on GitHub Pages for easy sharing and public access.
  • Focused on clarity and usability — minimal inputs, clear button, and direct feedback messages.
  • Future expansion: add categories like public transport, recycling, and water usage, plus visual feedback (progress bars, charts).

Prize Categories

  • Best Use of GitHub Copilot: Assisted in debugging and refining the JavaScript logic.
  • (Optional) Best Use of Solana: Future plan to integrate eco‑impact tracking with blockchain transparency.
  • Adjust/remove categories depending on which ones you want to target.

Top comments (0)