Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Create Mobile Toggle Menu with JavaScript #9

Open
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

Ol-create
Copy link
Owner

@Ol-create Ol-create commented Mar 8, 2022

  • Initialize toggle menu in dom.js
  • Create a show function for the toggle menu.
  • Create hide function for toggle menu.
  • Link menu option to a specific section on the portfolio page.
  • Add a close button icon.
  • Add eventListeners to close and openMenu buttons.

Copy link

@thecodechaser thecodechaser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STATUS: CHANGES REQUIRED ♻️

Hi @Ol-create 👋,

Good job so far!
There are some issues that you still need to work on to go to the next project but you are almost there!

To Highlight 🎉

  • No linter errors. ✔️
  • GitHub flow is followed. ✔️
  • Professional README file. ✔️
  • PR has a good title and summary. ✔️

Required Changes ♻️

Check the comments under the review.

Optional suggestions

Every comment with the [OPTIONAL] prefix is not crucial enough to stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better.

You can also consider:
N/A

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

Comment on lines 31 to 33
<nav id="navbar">
<p id="profileName"><a href="#"> Paul, Oluyemi</a></p>
<ul id="desktop-nav">
Copy link

@thecodechaser thecodechaser Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • You did a good job on the project, but there is a little issue. You are supposed to the figma design as much as possible, Right now your header doesn't contain 100% of the width and there is white space to the right side, Please make sure your header contains 100% of the width and it matches the design on the template.

Your design

image

Figma design

image

Comment on lines 31 to 33
<nav id="navbar">
<p id="profileName"><a href="#"> Paul, Oluyemi</a></p>
<ul id="desktop-nav">
Copy link

@thecodechaser thecodechaser Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Your mobile-menu pop-up have some margin from the bottom and from the right, Please make sure it contains 100% width and height of the window and matches the design on the template.

Your design

image

Figma design

image

Comment on lines 31 to 33
<nav id="navbar">
<p id="profileName"><a href="#"> Paul, Oluyemi</a></p>
<ul id="desktop-nav">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Your close X button color is different from the design, Please make sure you apply the correct color and it matches the design.
  • Your mobile menu options should be bold as on the design, Please use bold font for your mobile menu options and make sure it matches the design on the template.

Your design

image

Figma design

image

Comment on lines 31 to 33
<nav id="navbar">
<p id="profileName"><a href="#"> Paul, Oluyemi</a></p>
<ul id="desktop-nav">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • When I open the mobile menu and switch to the desktop screen the mobile menu is still on the screen it should disappear. Please make sure when we switch the screen from mobile to desktop the mobile menu should disappear.
  • You can use media queries for that if the screen cross the min-width you can set your mobile menu display: none

See the image for reference

image

Copy link

@elmar8287 elmar8287 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @Ol-create.

Great work on making the changes requested by a previous reviewer 👏
You've done well implementing some of the requested changes, but there are still some which aren't addressed yet.

Required Changes ♻️

  • Check the comments under the review.

Optional suggestions

  • N/A

Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

style.css Outdated
Comment on lines 59 to 70
#toggle-menu {
display: none;
position: fixed;
z-index: 2;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background-color: white;
border: 1px solid #6f6c6b;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please, consider that your mobile menu still does not cover Figma design requirements, as was mentioned by the previous reviewer, but you are one step away from the finish line 👍 Here you can see, that the menu is not cover the whole page and you can see how is the background page content is scrolling:
    2022-03-11 16 14 13

  • My first suggestion is to give 100% for the height and go-go with your own modifying to be closer to Figma design 👍

Copy link

@gemmen29 gemmen29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Ol-create,

Your project is complete! There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Optional suggestions

Cheers and Happy coding!👏👏👏

Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants