Skip to content

vdsbenoit/css_exo-frontend_mentor

Repository files navigation

Frontend Mentor - Mortgage repayment calculator solution

This is a solution to the Mortgage repayment calculator challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • Input mortgage information and see monthly repayment and total repayment amounts after submitting the form
  • See form validation messages if any field is incomplete
  • Complete the form only using their keyboard
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page

Screenshots

Desktop

Mobile

Links

My process

Built with

  • Semantic HTML5 markup
  • Tailwind
  • Vue 3 (composition API)
  • Nuxt 3
  • Prettier validation enforced

What I learned

There isn't any native ways to format an input field of type number. In order to have a , separator every 3 digit (e.g. currencies), one needs to write some javascript code to format the input element, then cast the value back to a number again for further processing.

Author

About

CSS exercice from Frontend Mentor to practice Tailwind

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published