Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Age calculator app solution using Next.js and Tailwind CSS.

@stay-js

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I appreciate any feedback! I know the bottom right border radius is a bit off on mobile... I don't know why, but the root error in react-hook-form is always undefined, and errors[""] is the root error, but it's always defined even when there are field errors, so i had to do an ugly temp fix. Also I couldn't use z.coerce.number() since JS casts empty string to 0, therefore I can't display the required error message when the field is empty.

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord