Skip to content

Grapava00/tip-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tip-calculator

Table of contents

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

image image

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Mobile-first workflow
  • React - JS library

What I learned

Use this section to recap over some of your major learnings while working through this project. Writing these out and providing code samples of areas you want to highlight is a great way to reinforce your own knowledge.

To see how you can add code snippets, see below:

input:focus {
  outline: 2px solid var(--Strong-cyan);
  caret-color: var(--Strong-cyan);
}
}

news :

  • caret-color property.
 function handleChange(event) {
    const { value, name, maxLength } = event.target;
    setData((prevData) => ({
      ...prevData,
      [name]: Number.isInteger(value)
        ? parseInt(value.slice(0, maxLength), 10)
        : parseFloat(value.slice(0, maxLength))
    }));
  }

News :

  • Number object
  • isInteger function

Author

Acknowledgments

I would like to express my special thanks to my mentor Beka Zandukeli, who provided me with valuable help.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages