Skip to content
Submitted almost 2 years ago

Password Generator [React - Next.js - Tailwind CSS - TypeScript]

accessibility, next, react, tailwind-css, typescript
LVL 3
@DeyanTopalov
A solution to the Password generator app challenge

Solution retrospective


What are you most proud of, and what would you do differently next time?

In general, I am happy how the solution turned out. I though this will be tops 1 hour to build, but it turned out there are some tricky parts which was very interesting to tackle.

Built with

  • React / Next.js 14 / Typescript
  • useCopyToClipboard custom hook
  • Custom Range Slider
  • Switch component from Shadcn/ui instead of the design checkbox
  • Mobile first approach
  • Tailwind CSS
  • Responsive design with Mobile, Tablet & Desktop view
What challenges did you encounter, and how did you overcome them?

There are many excellent range slider components through the existing libraries but for practice I decided to build one from scratch. The tricky part to be honest was the styling. Also I have quite the Prop drilling in my code (instead of using context for state mgmt), but this was intentional so I can practice passing props while using typescript.

The logic for generating the password was also something I had to brainstorm a bit and do some googling and asking AI chatbots, but I think it turned out fine.

What specific areas of your project would you like help with?

Any and all feedbacks are welcome!

I would much appreciate any tips & tricks about:

  • Improving my TypeScript usage
Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on DeyanTopalov’s solution.

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