Skip to content

AceGK/tip-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanilla JS Tip Calculator

View Site

A tip calculator that evaluates a tip based on the bill amount, chosen %, and # of people. Results display the tip-per-person and the total-per-person.


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.

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

Links


My process

Built with

  • HTML5
  • CSS
  • JavaScript
  • Flexbox
  • CSS Grid

Features

  • Simple math
  • Custom tip %
  • Reset button
  • Active states
  • USD formatting
  • Light/Dark Modes (based on browser preference)

To-do

  • Error states
  • Improve mobile styling
  • Add icons to input fields
  • better font
  • dark/light mode toggle

About

A vanilla JS tip calculator that evaluates cost per person based on bill amount and tip %

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published