Skip to content

je-jo/tip-calculator-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Description

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

The results are updated live, as values are entered. Number of persons is assumed to be 1, unless other number is entered.

Reset button is disabled until at least one value is entered.

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Grid
  • Flexbox
  • Mobile-first workflow
  • JavaScript

Observations

This was a fun challenge! The percentage "buttons" are actually hidden radio buttons, with their labels styled as buttons. I've tried to keep it accessible.

Useful resources

Author