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

Responsive landing page with react and tailwind

@Efobi-Francis

Desktop design screenshot for the Intro section with dropdown navigation coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


At first glance, the project looks simple, but implementing the sidebar and dropdown menu and managing the different states respectively was an excellent challenge.

Please check it out and help me with corrections.

Community feedback

P

@KehindeDaniels

Posted

I love how you were running away from the image growing smaller @1439px 😂. Mine went too small.

I've been looking into the issue of the site expanding excessively, and I believe one of the potential solutions is to check and adjust the width and max-width properties of the main container. This should help control the layout and prevent content from overflowing beyond the viewport.

Personally, I use grid for my general layout, even before I add any content, this way, I can determine the entire space and layout it would take.

This challenge for instance, my overall layout was

grid-template-column: 1fr repeat(10, minmax(min-content, 14rem)) min 1fr PS 10px as my root element

This way, my entire content will never exceed 1400px (and it could be adjusted as needed). The minmax function will give room for individual individual column to expand as needed, but not beyond 14rem (140px)

The 2 (1frs) are for extra plate 😆, but this way, there are 12 columns, and I have catered for more than 100px without media query

And for the button in the navigation of the mobile view, if a max-width is applied to it, it will prevent it from expanding excessively

Thank you

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