Skip to content

AyllaChristinne/tip-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Tip calculator app

This is a solution to the Tip calculator app challenge on Frontend Mentor.

Table of contents

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

desktop-screenshot mobile-screenshot mobile-screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • CSS custom properties
  • Desktop-first workflow

What I learned

  • HTML DOM classList Property
  • Element.closest() Method
  • document.querySelector() Method

Author

Acknowledgments

Got some inspiration from abdo-kotb's solution