Skip to content

ammaramin17/UnitConversions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Unit Conversion Website

This is a responsive and interactive website that allows users to easily convert between:

  • Celsius and Fahrenheit
  • Kilograms and Pounds
  • Kilometers and Miles

Built with HTML, CSS (Bootstrap & custom styling), and JavaScript, this tool is ideal for quick unit conversions and includes helpful conversion formulas for learning.


🚀 Features

  • Clean UI: Built with Bootstrap 5 for a modern, responsive layout
  • Live Conversion: Converts values instantly as you type
  • Three Conversion Tools:
    • 🔥 Temperature: Celsius ↔ Fahrenheit
    • ⚖️ Weight: Kilograms ↔ Pounds
    • 🛣️ Distance: Kilometers ↔ Miles
  • Educational Side Notes: Each section includes formulas for manual calculation
  • Hover Effects: Interactive styling enhances usability and feedback

📁 Project Structure

.
├── converter.html   # Main HTML file with structure and layout
├── converter.css    # Custom styles for visual enhancement
└── converter.js     # JavaScript logic for real-time conversions

🧠 How It Works

Temperature Conversion

(C × 9/5) + 32 = F
(F  32) × 5/9 = C

Weight Conversion

kg × 2.205 = lb
lb / 2.205 = kg

Distance Conversion

km ÷ 1.609 = mi
mi × 1.609 = km

Conversions are handled dynamically using oninput events.


📦 How to Use

  1. Clone or download the repository.
  2. Open converter.html in your web browser.
  3. Enter values in any field — the corresponding unit will be auto-calculated.

🖼️ Preview

Screenshot 2025-08-06 at 04-29-42 Unit Conversions rgtgtgtg

📌 Dependencies


📄 License

This project is open-source and free to use.
© 2025 Ammar Amin

About

A simple single-page website that converts Ceisuis\Fahrenheit, Kilograms\Pounds and Miles\Kilometers using HTML, CSS and JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors