Skip to content

An app that calculates the difference between inputed time and current time

Notifications You must be signed in to change notification settings

KamilLazarczyk1/age-calc-app

Repository files navigation

Frontend Mentor - Age calculator app solution

This is a solution to the Age 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 an age in years, months, and days after submitting a valid date through the form
  • Receive validation errors if:
    • Any field is empty when the form is submitted
    • The day number is not between 1-31
    • The month number is not between 1-12
    • The year is in the future
    • The date is invalid e.g. 31/04/1991 (there are 30 days in April)
  • 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

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • Sass
  • Flexbox
  • Mobile-first workflow
  • React - JS library
  • Luxon.js

What I learned

By doing this challange I got to know React more and I experienced working with Luxon.js - a JavaScript library that simplifies dealing with dates and times in JavaScript.

Continued development

I need to improve the cleanliness of my code and learn React more.

Useful resources

Author

About

An app that calculates the difference between inputed time and current time

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published