/tip-calculator

Tip calculator (React, Sass)

Primary LanguageJavaScriptMIT LicenseMIT

Frontend Mentor - Tip calculator app solution

This is a solution to the Tip calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Overview

The challenge

Users should be able to:

  • View the optimal layout for the app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • Calculate the correct tip and total cost of the bill per person

Screenshot

Links

My process

Built with

  • React (JavaScript)
  • Sass

What I learned

I had to use "text" input instead of "number" because "number" doesn't fire onChange event if the input is wrong.

Continued development

I will learn more Sass features and TypeScript.

Useful resources

  • w3schools' CSS Grid - This helped me with CSS Grid because I almost always forget the syntax.

Author