Skip to content

A simple app that can convert length, volume, and mass units from metric to imperial - built with HTML, CSS, and JavaScript

Notifications You must be signed in to change notification settings

amir-the6th/Unit-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit Conversion App

  • This is my solution to a solo project in Scrimba JavaScript course.
  • This app offers a simple solution to the problem of converting length, volume, and mass units from metric to imperial or vice versa.
  • Just type the number you want to convert, and the app will show all of the conversions at once.
  • I built this project from scratch and added more functionalities than what was asked such as responsiveness and different UI for desktop and mobile.
  • Hope you like it! 🙌🏼

Table of contents

Overview

Links

  • Solution URL: Link
  • Live Site URL: Link

Demo

demo gif

Screenshot

Desktop

desktop screenshot

Mobile

mobile screenshot

My process

Built with

  • HTML5 markup
  • Pure CSS
  • Vanilla JavaScript

What I learned

The only difficult part of this challenge was adding responsiveness.

I struggled to set the width of the columns to 100% on tablets and mobiles.

During learning how to fix this, I learned about these definitions:

  • flex-grow
  • flex-shrink
  • flex-basis
  • width: max-content

Overall, I enjoyed my time working on this project. CSS can become quite challenging, but when learned the right way, any challenge can be tackled easily.

Author

Acknowledgments

I want to give a shout-out to the Scrimba CEO and professor, Per Harald Borgen(@perborgen). I recently finished the HTML and CSS course on Scrimba and am currently doing the follow-up course, Learn JavaScript for Free.

About

A simple app that can convert length, volume, and mass units from metric to imperial - built with HTML, CSS, and JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published