A modern and smart CO₂ Calculator built with HTML, CSS, and JavaScript.
It helps users see how much CO₂ emissions and fuel costs they save by biking instead of driving.
The app features a clean UI, celebratory feedback, customizable fuel cost input, and clear weekly, monthly, and yearly savings estimates.
- 🚲 Input biked miles per day
- 🚗 Choose your car’s average emissions (compact, average, SUV)
- ⛽ Enter your local fuel cost per gallon
- ⚡ Instant calculation of daily, weekly, monthly, and yearly savings
- 🌍 CO₂ avoided shown in kg
- ⛽ Gasoline avoided shown in liters
- 💵 Money saved shown in USD
- 🥇 Motivational congratulations banner with gold/silver/green messages
- 📱 Responsive design for desktop and mobile
- 🎨 Dashboard‑style results with icons and grid layout
- HTML5 — semantic structure
- CSS3 — responsive grid, custom styling, animations
- Vanilla JavaScript — calculations, interactivity, dynamic DOM updates
- Vercel — deployment and hosting
- Clone the repository:
git clone https://github.com/moustyb/co2-calculator.git cd co2-calculator
This project is open source and available under the MIT License.
Created by [moustyb]
- Email: [[email protected]]