Skip to content

[ENHANCEMENT] Dynamically updating navbar  #8

@SethCram

Description

@SethCram

Is your feature request related to a problem? Please describe.

  • Yes, the navbar is static and only highlights what's been pressed

Describe the solution you'd like

  • Dynamically updating navbar based on where someone is in the website

Development

  • Research if possible with merely scrolling

    • ...
  • make sure the footer buttons also change the nav bar

    • added an event listener for everytime hashcode changes to set local var in nav comp
  • completely remove usage of empty hashcode "#" to navigate to top of page

    • replaced # with scroll to top of page React code
    • but the nav bar doesnt change since the comp listening to change in hashcode
    • could try checking if hashcode was something, and now it's cleared so local var should be set to "#" or default val ""
    • changed the window scrolling to navigating to the header comp's id instead
      • so no longer href w/o a hashcode link here

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions