A sleek, lightweight browser app for converting between metric and imperial units.
Unit Converter is a simple frontend project built to help users quickly convert common measurements without installing any dependencies or running a complex app setup.
It supports fast conversions for:
- Length: meters ↔ feet
- Volume: liters ↔ gallons
- Mass: kilograms ↔ pounds
- Clean, modern interface
- Easy numeric input
- Instant conversions for multiple category types
- Responsive layout for desktop and mobile screens
- No build step required
Unit-Converter/
├── index.html
├── style.css
├── index.js
├── README.md
└── .gitignore
git clone https://github.com/yourusername/Unit-Converter.git
cd Unit-ConverterOpen index.html directly in the browser, or serve it locally:
cd "C:\Dev\Practice\Frontend practice\Unit-Converter"
python -m http.server 8000Then visit:
http://localhost:8000
- Enter a value in the input box.
- Click the Convert button.
- View the converted results for length, volume, and mass.
If you enter 10, the app calculates conversions such as:
- 10 meters = 32.808 feet
- 10 liters = 2.640 gallons
- 10 kilograms = 22.046 pounds
- HTML5 for structure
- CSS3 for styling and layout
- JavaScript for conversion logic and DOM updates
- Add temperature conversions
- Add speed and distance conversions
- Improve input validation and error handling
- Add dark mode
- Create a more advanced dashboard-style UI
This project is open-source and available for educational and personal use.
Built as a frontend practice project focused on clean UI design, JavaScript logic, and functional utility development.