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 DROP DOWN MENU USING HTML,CSS,AND JAVASCR

@blessingOluwapelumi

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


What did you find difficult while building the project? I was not able to use the arrow icon beside the main menu. I couldn't get how to make it change to the arrow down on hover.

Which areas of your code are you unsure of? The media queries

Do you have any questions about best practices? Please, how do I make use of the arrow down and arrow up icon and also make it interchange on HOVER?

Community feedback

mubizzy 1,520

@mubizzy

Posted

nice work @blessingOluwapelumi you did a great job. about the hover features, you need to rotate the icon using CSS properties for Example.

.dropdown:hover .dropdown__icon {
  transform: rotate(180deg);
}

.dropdown__icon {
  transition: .5s;
}

hope it helps :)

0

@blessingOluwapelumi

Posted

@mubizzy Thanks for your response I tried this but both the "Features" text and the icon is affected. I mean, both the text and icon rotates on HOVER

0
mubizzy 1,520

@mubizzy

Posted

@blessingOluwapelumi then you need to rearrange your HTML.

0
mubizzy 1,520

@mubizzy

Posted

@blessingOluwapelumi i will send you a js snippet of mine if that still doesn't work.

const menu-item= document.querySelectorAll('.menu-item');   

function linkAction(){
  /*Active link*/
  menu-item.forEach(n => n.classList.remove('active'));
  this.classList.add('active');
}
navLink.forEach(n => n.addEventListener('click', linkAction));
0

@OlaOluwalekan

Posted

Hi Blessing!

I've gone through your work and it's such a nice one. I love your transitions - they are smoothly done. However, when I opened your live site, it takes time to load the main image. I don't know why. Also, on your GitHub link to the project, you don't have readme.md to hint visitors on what your work is about, the images you used, etc.

But overall, its a nice one 👍. Keep it up

0

@blessingOluwapelumi

Posted

@OlaOluwalekan Thanks for this feedback. What do you advise I do to make the hero image load faster?

0

@OlaOluwalekan

Posted

@blessingOluwapelumi

👍

Depending on the size, you could actually edit/resize the image without it losing quality. There are some online editors that can help

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