Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Mozilla campus club challenge: Resolved navigation bar issue #96 #204

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

Ram-Aditya
Copy link

Resolved Issue #96

Description

The navigation bar will now appear as:
Activities | Club's Corner | About

where under "Club's Corner" the following sub-pages will be displayed:
Get Started | Resources | Connect | Report | FAQ

  • When the main navigation bar is not collapsed, upon hovering over "Club's Corner" a new navigation bar will be displayed.
  • When the main navigation bar is collapsed, then a drop-down menu will appear when "Club' Corner" is clicked.

Implementation Details

  • Apart from HTML code, I have also added a Js script and two CSS class definitons. The script contains the event handlers when cursor clicks or hovers over "Club's Corner". The latter is for styling the drop-down menu and drop-down menu items.

  • When the main navigation bar is not collapsed, then I have added event handlers which upon hovering over "Club's Corner" will fill in an empty "<div>" section with HTML code to display a new navigation bar below the main one and set the 'hidden' attribute to 'false' for the tag that displays the drop-down menu on clicking on "Club's Corner".

  • When the main navigation bar is collapsed, then I have set the 'hidden' attribute to 'true' for the tag that displays the drop-down menu on clicking on "Club's Corner".

  • *Note: The drop-down menu cannot be formed to the left of "Club's Corner" as it is embedded within a "nav-bar". This issue has been resolved in the latest version of Bootstrap.

Screenshots

beforecrop
Screenshot-1: When main navigation bar is not collapsed.


aftercrop
Screenshot-2: When main navigation bar is not collapsed and mouse has hovered over "Club's Corner".


before2crop
Screenshot-3: When main navigation bar is collapsed.


after2crop
Screenshot-4: When main navigation bar is collapsed and cursor has clicked on "Club's Corner".

How to run

Build the project as usual and the new header will be added to all the web-pages automatically.

Checklist

  • Site builds.
  • Changes are tested.
  • Followed the Contributing guidelines.
  • Checked for merge conflicts.

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

Successfully merging this pull request may close these issues.

1 participant