Skip to content

yash20010/tip-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Tip calculator app solution - Yash Parekh

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.

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

Video

Tip.calculator.app.mp4

Screenshot

desktop screenshot mobile screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Vanilla JavaScript

What I learned

Learnt about CSS outline property for input HTML elements

.people input:focus {
  outline: none;
  border: 2px solid var(--strong-cyan);
}

Continued development

  • Clean javascript to reduce redundant code
  • Update it to OOP style form functional style

Useful resources

  • MDN - This helped me with HTML, CSS and Javascript.
  • Favicon.io - This helped me create favicon quickly, for multiple devices and for free.
  • Stack Overflow - This helped me lookup a lot of tiny things with one google search.

Author

Acknowledgments

  • My wife and my daughter (for all their support)
  • Leon Noel (who taught me everything about full stack web development)

About

Calculates amount per person including tips

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published