Skip to content

Barata-Ribeiro/dio_carbon-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Carbon Calculator - Brazil

A small, browser-based CO₂ emissions calculator for trips in Brazil. It lets you pick origin/destination (Brazilian state capitals), auto-fills the distance, and estimates total CO₂ emissions based on the chosen transport mode. It also shows environmental equivalents and a simple impact analysis with recommendations.

📚 Features

  • Select origin and destination from all Brazilian capitals
  • Auto-calculates distance (with a road-distance approximation and specific route overrides)
  • Transport-mode emission factors (g/km) driven by a single configuration file
  • Calculates total CO₂ emissions (supports round trip and monthly frequency)
  • Shows environmental equivalents (trees, smartphone charges, kWh, and “average car km”)
  • Impact analysis (Low/Medium/High) with recommendations

🚀 Built With

  • HTML5
  • CSS3 (responsive layout + design tokens via CSS variables)
  • Vanilla JavaScript (ES Modules)

🛠️ Project Setup

This is a static project (no build step required).

Option A — Open directly:

  1. Open index.html in your browser.

Option B — Run with a local server (recommended):

  1. Use any local server (for example, the VS Code extension “Live Server”).
  2. Start the server from the project root and open the provided local URL.

🤝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page if you want to contribute.

📜 License

This project is free software available under the MIT license.

About

Vibe coded project from the DIO Bootcamp "GitHub Copilot - Código na Prática"

Topics

Resources

License

Stars

Watchers

Forks

Contributors