Skip to content

chrisdzasc/Tip-Calculator-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

44 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ธ Tip Calculator App

Tip-Calculator Demo

A responsive billing interface featuring dynamic tip calculations ๐Ÿงฎ, preset and custom tip percentage inputs โŒจ๏ธ, real-time bill splitting between multiple people ๐Ÿ‘ฅ, and input validation with visual error feedback โœจ.

Overview

This project was developed as a high-fidelity implementation of a Figma design ๐ŸŽจ focusing on creating a precise and interactive billing interface across mobile ๐Ÿ“ฑ, tablet ๐Ÿ“ฒ, and desktop ๐Ÿ’ป environments.

Key focus areas included building a flexible CSS Flexbox and Grid architecture ๐Ÿ—๏ธ to manage the calculator's layout, implementing real-time input validation โš ๏ธ to handle edge cases (like zero-value, negative values inputs), and employing JavaScript DOM manipulation โšก to dynamically calculate and display tip amounts and totals as the user types ๐Ÿ“„.

๐Ÿ”— Live Demo

Live Demo

๐ŸŽจ Visual Design

State ๐ŸŽ›๏ธ Mobile ๐Ÿ“ฑ Tablet ๐Ÿ“ฒ Desktop ๐Ÿ’ป
โœจ Default
๐Ÿ”ข Active
โš ๏ธ Error

๐ŸŽฏ The Challenge

The challenge was to build out this tip calculator app ๐Ÿ’ธ and get it looking as close to the design as possible, ensuring all mathematical logic was accurate and responsive.

๐Ÿง‘โ€๐Ÿ’ป Users should be able to:

  • ๐Ÿงฎ Calculate the correct tip and total cost of the bill per person dynamically.

  • ๐Ÿ“ฑ View the optimal layout for the app depending on their device's screen size.

  • ๐Ÿ–ฑ๏ธ See hover and focus states for all interactive elements on the page.

  • โš ๏ธ Receive visual feedback (error states) when entering invalid data.

๐Ÿ› ๏ธ Built with

HTML5 CSS3 JavaScript Git GitHub Figma Netlify Markdown

๐Ÿš€ Features

  • ๐Ÿงฎ Real-Time Calculations: Instantly computes tip amount and total cost per person as users input their bill, tip percentage, and number of people.

  • ๐ŸŽ›๏ธ Flexible Tip Selection: Offers preset tip percentages (5%, 10%, 15%, 25%, 50%) plus a custom input field for any desired amount.

  • ๐Ÿšซ Input Validation: Displays dynamic error messages for invalid entries, with visual feedback on input fields to guide the user.

  • ๐Ÿ“ Responsive Architecture: Employs a mobile.first approach with media queries to create a fluid layout that adapts seamlessly to mobile, tablet, and desktop screens.

  • โœจ Polished User Experience: Features smooth hover and focus states across all interactive elements, plus a reset button to clear all fields instantly.

๐Ÿ‘ค Author

Christian Diaz

About

๐Ÿ’ธ A responsive billing interface featuring dynamic tip calculations, custom percentage inputs, and real-time bill splitting. Built with a mobile-first approach and focused on precise input validation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors