Skip to content

This project is a solution to the Frontend Mentor Tip Calculator challenge. Built with TypeScript and styled using SCSS, it offers accessible features including keyboard navigation and smooth animations. This app efficiently handles tip calculations and provides a visually engaging user experience. It is also thoroughly tested with Jest unit test

Notifications You must be signed in to change notification settings

TedJenkler/Tip-calculator-Typescript-SCSS

Repository files navigation

Frontend Mentor - Tip Calculator App Solution

This is my solution to the Tip Calculator App challenge on Frontend Mentor. The challenge helped me enhance my skills in building practical applications and improve my frontend development abilities.

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
  • Extra Test using Jest: Ensure app works using Jest

Screenshot

Screenshot of the Tip Calculator App

Links

My Process

Built With

  • Vite - A frontend build tool for fast development with a modern workflow.
  • React - A JavaScript library for building user interfaces.
  • SCSS - For advanced styling and creating flexible, maintainable stylesheets.
  • TypeScript - For adding type safety and enhancing the development experience with static types.
  • Jest - A testing framework for ensuring the correctness of JavaScript and TypeScript code with features like test runners, assertions, and mocking.

What I Learned

During this project, I gained more experience in the following areas:

  • SCSS: Enhanced understanding of SCSS features like mixins, maps, variables, and responsive design.
  • TypeScript: Improved skills in TypeScript, including type definitions, interfaces, and generics for better type safety and code quality.
  • Custom Hooks: Developed and utilized custom React hooks for better code organization and reusability.
  • Animations: Gained experience in creating smooth and interactive animations to enhance the user interface and overall user experience.
  • Jest: Acquired proficiency in using Jest for testing JavaScript and TypeScript applications

Continued Development

  • Plan to implement the tip calculation using Three.js for a fun and interactive 3D experience.

Useful Resources

  • SCSS Documentation - For comprehensive details on SCSS syntax and features.
  • TypeScript Documentation - For learning TypeScript syntax, features, and best practices.
  • Vite Documentation - For understanding and configuring Vite as a build tool and development server.
  • Jest Documentation - For learning how to use Jest for testing JavaScript and TypeScript applications, including setup, configuration, and best practices.

Author

About

This project is a solution to the Frontend Mentor Tip Calculator challenge. Built with TypeScript and styled using SCSS, it offers accessible features including keyboard navigation and smooth animations. This app efficiently handles tip calculations and provides a visually engaging user experience. It is also thoroughly tested with Jest unit test

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published