๐Blogr-landing-page | SASS | JS animations | Mobile-first workflow๐

Solution retrospective
Hi everyone! i managed to complete this challenge!
My only concern is that the dropdown menu part has a lot of code to make it fit both the mobile and the desktop views, so it looks like there is something i'm missing
Is there any way to achieve the menu part with less code? do you recommend a framework like bootstrap to make this easier to tweak with?
Thank you all for the support!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @9CB5
Great work. It almost matches the design perfectly!
As for your question, the code in your nav isn't that bad. There's naturally going to be a lot more code than a typical nav since this one has multiple dropdowns with lots of children inside. But you can really trim down your markup if you use a front-end framework like Vue for example and using list rendering with
v-for
for the dropdowns. You may also use tailwind to reduce code in your stylesheet.Going through your solution, I have noticed a few minor issues which I will highlight below:
- The animation takes too long on the dropdowns and the fact that it starts off fast then slows down makes it feel clunky. You should aim to minimise waiting times for better UX.
- The layout breaks on some screen widths. For example, when viewed on the iPad mini (768px), the header has a white gap on the right hand side, and on the surface duo (540px) some images are off-centered and there are some overlapping elements.
Marked as helpful - @tolabigboy
Great work bro. Keep it upโฆ You need to work on your site responsiveness. While shrinking your site page from desktop view to mobile view, I can see overflows in the page and also the buttons are not stable. This has more to do with your media query, I guess
Marked as helpful
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