Design comparison
SolutionDesign
Solution retrospective
Ok, I'm fed up with the responsive design...
Community feedback
- @AGutierrezRPosted over 1 year ago
Hello there 👋. Good job on completing the challenge!
I have some suggestions about your code that might interest you.
- To avoid content being fluid horizontally, you could use a
max-width: 1150px
andmargin-inline: auto
on themain .hero .hero-container .content
selector. - You could do the same for the
main nav .nav-container
selector, but in this case, it is wider than the content. - You have two selectors with the same target with the same properties (
main .hero .hero-container .content
inheader.scss
and.hero .hero-container .content
inhero.scss
) you could refactor that and remove one of them. - To avoid elements from stretching vertically (like in the
main .hero .hero-container .content .left-content .sponsores
selector) you should addalign-items: center
, this will keep elements from stretching vertically and will center them vertically
I hope you find this helpful 😁. Most importantly, your submitted solution is fantastic!
Happy coding!
Marked as helpful1@AliMahmoud21Posted over 1 year agoOh man, thanks I agree with you, especially the first point and the third one I don't know why I insisted on using an extra selector and not using "max-width". I'll modify them as soon as possible and I'll try to fix the Responsive Design as well.
0 - To avoid content being fluid horizontally, you could use a
Please log in to post a comment
Log in with GitHubJoin 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