Skip to content

Conversation

@Shaily-62
Copy link
Contributor

@Shaily-62 Shaily-62 commented Oct 27, 2025

Issues: Unit Converter — length, temperature, and weight (bi-directional) #164

✨ Summary

Added a responsive unit converter web app supporting Length, Temperature, and Weight conversions with instant bi-directional updates.


🧩 Details / Implementation

  • Added category selector with options:
    • Length: m, km, mi, ft
    • Temperature: °C, °F, K
    • Weight: g, kg, lb, oz
  • Implemented dual synchronized input fields
  • Added Swap Units button for direction reversal
  • Applied rounding to max 6 decimals (trims trailing zeros)
  • Designed a mobile-friendly, responsive layout using flex
  • Included modular conversion utility functions

📁 Files Changed

  • projects/unit-converter/index.html
  • projects/unit-converter/styles.css
  • projects/unit-converter/main.js

✅ Acceptance Criteria

Criteria Status
Length (m, km, mi, ft) conversions work
Temperature (C, F, K) conversions work
Weight (g, kg, lb, oz) conversions work
Swap button reverses direction correctly
Proper rounding and trailing zero trimming
Mobile-friendly and responsive layout

Check each item once verified before merging.


🧪 How to Test

  1. Open index.html in a browser.
  2. Select a category (Length, Temperature, or Weight).
  3. Enter a value in either input and confirm the other updates.
  4. Use the “Swap” button and verify values flip correctly.
  5. Test on mobile or smaller screens to confirm responsiveness.

📸 Screenshots

Screenshot 2025-10-27 155955 Screenshot 2025-10-27 160006

📸 Demo

Unit.Converter.and.2.more.pages.-.Personal.-.Microsoft_.Edge.2025-10-27.15-57-29.1.mp4

@vercel
Copy link

vercel bot commented Oct 27, 2025

@Shaily-62 is attempting to deploy a commit to the hrishikesh-dalal's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Hrishikesh-Dalal Hrishikesh-Dalal merged commit febc03f into commitra:main Oct 27, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants