Responsive Landing Page with Tailwind CSS & React

Solution retrospective
It came out okay-ish.
I'm happy it's responsive, though—definitely getting better at Tailwind CSS. For my next implementation, I’d love to experiment with SASS and Chakra UI.
Adjusting the Image Height for Mobile:
At first, I had trouble adjusting the image height for mobile. I ended up setting its height to the div containing the image so that it just inherits it and covers the space.
Making the Navbar Responsive:
I wanted to use plain vanilla JavaScript for the navbar, but it proved to be a challenge. In the end, I decided to use useEffect
in React to make it responsive.
Making the site responsive for tablet:
I tend to use md:
and lg:
a lot, and I think I might be making my code chunkier than necessary. Any solutions?
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Elai5'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