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

Tip Calculator App Challenge w/ NextJS

@nocturne-dev

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


What did you find difficult while building the project?

One of the biggest challenges was creating number-only inputs. I wasn't too familiar with Regex, but with a bit of trial and error, I believe the expressions I implemented work well enough.

Which areas of your code are you unsure of?

My implementation for responsive styling could use a bit of work. I think I was trying to account for too many viewports, and I ended up getting lost in my own code. What is currently there seems OK, but I think I could have found better solutions.

The other area I'm not sure of is displaying the values for the total and tip values per person. Large numbers will lead to overflow, and I wasn't sure if I wanted to decrease the font size in accordance to the amount of numbers in the string, or just add trailing ellipses.

Do you have any questions about best practices?

How would you tackle responsive layouts? Would you consider display width only, or display height as well?

Community feedback

@nocturne-dev

Posted

Currently, it does not look as close to the design as I would have liked it to be. That's something that I'll take more into consideration for future challenges. Maybe I will revisit this challenge again provide a better solution closer to what the design looks like.

0

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