Recently, I realized that as a freelance developer and entrepreneur, it is really important to have at least some basic design skills. After reading this excellent article about improving your design skills, I was inspired to follow exercise 2 and do some copywork.
That led me to a Dribbble (yes, with 3 b’s) bucket containing a collection of inspiring designs to copy. I chose to recreate this design by Claudio Guglieri and convert it into working code using my go-to frontend stack of Next.js and Tailwind CSS.
This is a quick post describing some of my development decisions and where I plan to go from here.
As I mentioned before, my overall tech stack for the project included:
I decided to use Next.js and Tailwind CSS for the frontend mostly because they are fun to use, but also because they are very powerful. If you are new to frontend development and haven't heard of them yet, allow me to introduce you.
On top of Next.js, I used Tailwind CSS for the styles. This also helped move fast without requiring me to write a single line of CSS. I had to modify the Tailwind config file a bit more than I normally do, but overall, getting all the styling done with Tailwind was a very straight-forward experience.
What helped the most for this app was using the
react-select library for the dropdown menus.
Most people will not bother creating custom dropdown menus because it's nearly impossible to style them with plain CSS. For this app, I wanted to make the dropdowns match the design as closely as possible, so I had to find a solution.
After looking through a few Stack Overflow posts and reading through this post on styling dropdowns by CSS Tricks, I realized that using normal styling would not be worth the trouble. So I did what you should do when you want to build something quick: I looked for a library.
That's how I came across
react-select is a library that makes it easy to create completely custom dropdown menus. All I had to do was pass in some custom styles into the style object and I was able to make the dropdowns look almost exactly like the design!
The main takeaway from building this app is that open-source libraries are incredible. They made making this app a quick and almost completely painless process. On top of that, the code should be very readable for even beginner frontend developers.
Another takeaway is that the next time I need a custom dropdown menu, I am definitely turning to
react-select. Using it was smooth as your hands are after washing them thoroughly for at least 20 seconds to avoid spreading the Coronavirus.
From here on out, I plan to use this same stack to completely recreate applications that you or someone you know is using every day. If you are interested in learning more, join the email list to get updates on the process!
And like always, I would love to hear your thoughts on the article, so do not hesitate to reach out on Twitter!
You're one click away
Level up every day